Files

copied
Last update 2 years 9 months by eddyluursema
FilesArduinoCourseArduinoCoursePart103_BlinkingLEDCodeQualityObjectOriented
..
03_BlinkingLEDCodeQualityObjectOriented.ino
SignalControl.cpp
SignalControl.h
SignalControl.cpp
#include "SignalControl.h" SignalControl::SignalControl() { // initialize digital pin as an output. pinMode(SIGNALPIN, OUTPUT); } void SignalControl::On() { digitalWrite(SIGNALPIN, HIGH); // turn the LED on (HIGH is the voltage level) } void SignalControl::Off() { digitalWrite(SIGNALPIN, LOW); // turn the LED off (LOW is the voltage level) }
Report a bug