17f888a11c
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.
37 lines
694 B
C
37 lines
694 B
C
#pragma once
|
|
|
|
// RFID
|
|
const int SS_PIN = 10;
|
|
const int RST_PIN = 7;
|
|
|
|
const byte AUTH_UID[4] = { 145, 136, 97, 102 };
|
|
const byte AUTH_UID_SIZE = sizeof(AUTH_UID);
|
|
|
|
// // Odległościomierz
|
|
// const int TRIG_PIN = 6;
|
|
// const int ECHO_PIN = 5;
|
|
|
|
const long SONAR_MAX_DIST_CM = 400;
|
|
|
|
// Skrzynia biegów
|
|
const uint8_t GEAR_X_PIN = A0;
|
|
const uint8_t GEAR_Y_PIN = A1;
|
|
|
|
const int GEAR_THRESH_LOW = 341;
|
|
const int GEAR_THRESH_HIGH = 682;
|
|
|
|
// LCD
|
|
const int LCD_COLS = 16;
|
|
const int LCD_ROWS = 2;
|
|
|
|
// Skrzynia biegów
|
|
const uint8_t CLUTCH_PIN = A7;
|
|
const uint8_t BRAKE_PIN = A2;
|
|
const uint8_t THROTTLE_PIN = A3;
|
|
|
|
// Silniki
|
|
const int IN_1 = 9;
|
|
const int IN_2 = 8;
|
|
const int IN_3 = 4;
|
|
const int IN_4 = 3;
|