(DONE) Switch Interface¶
We have MockSwitch
that serves no real purpose but
testing. Prepare the ground for future “real” switches (see below).
Define a
Switch
interface (switch.h
, much likesensor.h
)Change
MockSwitch
to be an implementation ofSwitch
Modify
LEDStripeDisplay
to useSensor
andSwitch
(and notMockSensor
andMockSwitch
)Modify
Hysteresis
to useSensor
andSwitch
(and notMockSensor
andMockSwitch
)