Radio Controlled Timer, Step G


Adding buttons to manually switch lamp on/off, connected to the remote transmitter

The buttons don’t need any debouching as the remote transmitter already must be handling this. The MCU just lets this signal through. As the “transmit” part of the program will be used both with buttons and “schedule” this is in a separate source file, “transmitter_1829_RadioControlledTimer.asm”.

Button functions included in “buttons_1829_RadioControlledTimer.asm”.

To verify buttons-transmitter functionality the transmitter, and the receiver, are used. As this does not require any unit test, just manually pushing the button.

main_R1829_RadioControlledTimer.asm” was modified with the scanning code.

The program built with “Final” configuration to manually test.

Code on Github