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:
2026-06-16 22:32:39 +02:00
parent a80a5bd9a7
commit 17f888a11c
4 changed files with 16 additions and 50 deletions
+3 -10
View File
@@ -20,9 +20,6 @@ bool carEnabled = false;
void setup() {
Serial.begin(9600);
// pinMode(TS_LEFT, INPUT);
// pinMode(TS_RIGHT, INPUT);
pinMode(IN_1, OUTPUT);
pinMode(IN_2, OUTPUT);
@@ -38,20 +35,16 @@ void loop() {
bool rfidOk = check && matches;
if (rfid.check() && rfid.matches(AUTH_UID, AUTH_UID_SIZE)) {
delay(3000);
carEnabled = !carEnabled;
Serial.print("Auto działa: ");
Serial.println(carEnabled);
display.startOrEnd(carEnabled);0
};
if (carEnabled) {
Serial.println("Działa");
if (gear.update())
display.updateGear(gear.getGearChar());
// display.updateDirection(
// digitalRead(TS_LEFT),
// digitalRead(TS_RIGHT));
unsigned long now = millis();
float dt = (now - prevUpdate) / 1000.0f;
if (dt >= 0.02f) {