#ifndef ElectricEngine_hpp #define ElectricEngine_hpp #include "Arduino.h" #define clockwise_pin 4 #define counterclockwise_pin 12 #define pwm_pin 24 class ElectricEngine { int oldDirection = 0; int ...
It seems like the second argument of digitalWrite is expecting a constant from PinStatus. However this isn't always ideal, and we get an ugly warning like shown below ...