Fix errors related to push putthon
This commit is contained in:
parent
99ba0b5afc
commit
68285fc892
@ -6,13 +6,13 @@
|
||||
#include "DistSensor.cpp";
|
||||
#include "LCDScreen.cpp";
|
||||
|
||||
#define PARK_SLOTS = 8;
|
||||
#define PARK_SLOTS 8
|
||||
#define ULTRASONIC_SENSOR_PIN_TRIG 11
|
||||
#define ULTRASONIC_SENSOR_PIN_ECHO 12
|
||||
#define SERVO_PIN 10
|
||||
#define TEMP_SENSOR_PIN 9
|
||||
#define BUTTON_PIN = 8;
|
||||
#define BUZZER_PIN = 3;
|
||||
#define BUTTON_PIN 8
|
||||
#define BUZZER_PIN 3
|
||||
|
||||
OneWire oneWire(TEMP_SENSOR_PIN);
|
||||
DallasTemperature temperature_sensors(&oneWire);
|
||||
@ -21,7 +21,7 @@ DistSensor dist_sensor = DistSensor(ULTRASONIC_SENSOR_PIN_TRIG, ULTRASONIC_SENSO
|
||||
Barrier barrier = Barrier(SERVO_PIN, 4);
|
||||
LCDScreen screen = LCDScreen();
|
||||
|
||||
unsigned long current_time, sensor_last_time_activated, temperature_last_time_measured;
|
||||
unsigned long current_time, sensor_last_time_activated, temperature_last_time_measured, sensor_last_time_activated_IN, sensor_last_time_activated_OUT;
|
||||
int OCCUPIED_SLOTS = 0, Button_State = 0, Last_Button_State = 0;
|
||||
float temperature_in_c = 0;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user