Files
Last update 2 years 9 months
by
eddyluursema
FilesArduinoCourseArduinoCoursePart103_BlinkingLEDCodeQualityObjectOriented | |
---|---|
.. | |
03_BlinkingLEDCodeQualityObjectOriented.ino | |
SignalControl.cpp | |
SignalControl.h |
03_BlinkingLEDCodeQualityObjectOriented.ino#include "SignalControl.h" const int DELAYTIME = 1000; SignalControl signalcontrol; //instantiate class; implicit call of initialization function void setup() { } // the loop function runs over and over again forever void loop() { signalcontrol.On(); // turn the signal on delay(DELAYTIME); // wait for a second signalcontrol.Off(); // turn the signal off delay(DELAYTIME); // wait for a second }