Thank you so much for the advice. It's good to have a lively community.
I have not yet figured out how to work with the buffer, and in general, I have huge problems understanding how binary code should work.
For starters I just changed the font .as I was advised. The rendering speeded up many times over, but the numbers were less beautiful. So I made those readings that change very fast in one font, and those that change slowly in a pretty font.
Readings of gear and acceleration (0-100km/h) will be calculated on the basis of speed and engine speed, because I do not want to install a sensor for gear selection.
For clarity, I screwed setTimeout to the speedometer, so it was clear at what speed the readings change. In fact, the data on the speedometer meter will be different (not in increments of 1km/h).
Not to run to the bike, I think to build an emulator for speedometer and tachometer.
I will be glad to hear suggestions on code optimization. Is it possible to make "Vector" font to be displayed with the same speed.
If you choose the color outside the body of the class, the code works, but if the method of the class (line 10 of code), then for some reason the color does not change
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thank you so much for the advice. It's good to have a lively community.
I have not yet figured out how to work with the buffer, and in general, I have huge problems understanding how binary code should work.
For starters I just changed the font .as I was advised. The rendering speeded up many times over, but the numbers were less beautiful. So I made those readings that change very fast in one font, and those that change slowly in a pretty font.
Readings of gear and acceleration (0-100km/h) will be calculated on the basis of speed and engine speed, because I do not want to install a sensor for gear selection.
For clarity, I screwed setTimeout to the speedometer, so it was clear at what speed the readings change. In fact, the data on the speedometer meter will be different (not in increments of 1km/h).
Not to run to the bike, I think to build an emulator for speedometer and tachometer.
I will be glad to hear suggestions on code optimization. Is it possible to make "Vector" font to be displayed with the same speed.
If you choose the color outside the body of the class, the code works, but if the method of the class (line 10 of code), then for some reason the color does not change
https://youtu.be/O3ZKkRJ4A4Q