42    pinMode( 
MOTOR, OUTPUT );
 
   45    digitalWrite( 
MOTOR, 0 );
 
   52        Serial.println( F( 
"Front opened at startup!" ) );
 
   60        Serial.println( F( 
"Front closed at startup!" ) );
 
   67        Serial.println( F( 
"Front state unknown! Closing..." ) );
 
   82    timerStart = millis();
 
   94            digitalWrite( 
MOTOR, 0 );
 
  106    digitalWrite( 
MOTOR, 0 );
 
  125    timerStart = millis();
 
  137            digitalWrite( 
MOTOR, 0 );
 
  149    digitalWrite( 
MOTOR, 0 );
 
void displayOff()
Turn off the oled panel.
void displayOn()
Turn on the oled panel.
ssd1306 display
Object for the display.
void closeFront()
Close the font.
enum frontState_t frontState
Store the state of the front panel.
void motorInit()
Initialize the motor.
void openFront()
Open the font.
#define FRONT_ENDSTOP
The front endstop is connected to pin 7 on the Arduino.
#define BACK_ENDSTOP
The back endstop is connected to pin 7 on the Arduino.
#define MOTOR_PWM
The motor power can be set with this definition.
#define OPEN_TIMEOUT
Maximum allowed time in ms, to open the front.
#define CLOSE_TIMEOUT
Maximum allowed time in ms, to close the front.
#define MOTOR
The motor is connected to pin 5 on the Arduino.
frontState_t
States of the front panel.
@ FRONT_OPEN
Front is opened.
@ FRONT_CLOSE
Front is closed.
@ FRONT_UNKNOWN
Front state is unknown( for example at startup ).