(DONE) Switch Interface#
We have MockSwitch that serves no real purpose but
testing. Prepare the ground for future “real” switches (see below).
Define a
Switchinterface (switch.h, much likesensor.h)Change
MockSwitchto be an implementation ofSwitchModify
LEDStripeDisplayto useSensorandSwitch(and notMockSensorandMockSwitch)Modify
Hysteresisto useSensorandSwitch(and notMockSensorandMockSwitch)