Hotboards Buttons

three 10x10mm button with pull ups and debounce capacitors

Hello World

Import programHotboards_button_status

The simplest program, read a single button on pin PB_4

Library

Import libraryHotboards_buttons

Driver to control buttons (with hardware debounce). This driver considered external pull-ups (or pull-downs) are in use

Datasheet

http://hotboards.org/images/store/buttons/Schematic.pdf

Notes

You can buy this component at:http://hotboards.mitiendanube.com/productos/botones/

And also check our tutorial at Hotboards blog (only in spanish) : http://hotboards.org/index.php/es/9-spanish/boards/148-botones-con-mbed

More example programs

Import programHotboards_buttons_is_pressed

Toggle led ON pin PA_5 (LED1) when the button on pin PB_4 is pressed

Import programHotboards_buttons_is_released

Toggle led ON pin PA_5 (LED1) when the button on pin PB_4 is released

Import programHotboards_buttons_led

Turn ON a led on pin PA_5 (LED1) if the button on pin PB_4 is pressed, then turn it OFF if the button on pin PB_10 is pressed


You need to log in to post a discussion