(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 like- sensor.h)
- Change - MockSwitchto be an implementation of- Switch
- Modify - LEDStripeDisplayto use- Sensorand- Switch(and not- MockSensorand- MockSwitch)
- Modify - Hysteresisto use- Sensorand- Switch(and not- MockSensorand- MockSwitch)
