In this example:
- Button 1 is used to drive the duct fan as a continuous switch. It's popular in many industrial applications. So, as long as you're pressing the button, the fan works. Once you release the button the fan stops.
- Button 3 is used with a timer (for example for building/staircase lighting). Once you click it, it works for 3 seconds and then turns off. If you click again, it resets the timer.
How to execute this example?
The source code for this project is in the attached zip folder. Each demo example code is available in a separate C source file in User folder called main_ex1.c, main_ex2.c, etc. To run a specific example, replace the main.c file content with the content of the example file and recompile the project for all three targets. Check firmware update article for instructions on loading firmware to the modules.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.