Rename Projekt.ino to Projekt_Arduino.ino
Rename Projekt.ino to Projekt_Arduino.ino - Rename the main sketch file and adjust references accordingly. - Clean up Config.h spacing and delete unused turn‑signal constants. - Remove direction‑related LCD character data and its update logic. - Introduce Display::startOrEnd to control LCD power on/off. - Simplify display initialization and eliminate the old delay in the loop. - Add serial debug output for the car enable state.
This commit is contained in:
@@ -13,19 +13,14 @@ class Display {
|
||||
public:
|
||||
void begin(int cols, int rows);
|
||||
|
||||
void startOrEnd(bool enable);
|
||||
|
||||
void updateSpeed(int kmh);
|
||||
|
||||
void updateRPM(int rpm);
|
||||
|
||||
void updateGear(char gearChar);
|
||||
|
||||
// void updateDirection(bool leftOn, bool rightOn);
|
||||
|
||||
private:
|
||||
rgb_lcd _lcd;
|
||||
|
||||
byte _leftChar[8] = { 0x00, 0x04, 0x08, 0x1F, 0x1F, 0x08, 0x04, 0x00 };
|
||||
byte _leftCharBlink[8] = { 0x1F, 0x1B, 0x17, 0x00, 0x00, 0x17, 0x1B, 0x1F };
|
||||
byte _rightChar[8] = { 0x00, 0x04, 0x02, 0x1F, 0x1F, 0x02, 0x04, 0x00 };
|
||||
byte _rightCharBlink[8] = { 0x1F, 0x1B, 0x1D, 0x00, 0x00, 0x1D, 0x1B, 0x1F };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user