RSL10-SENSE Button / LED

How do I use an on-board button to turn on and off the red LED?
I would like to use the button at the outside edge of the board.

@newbee101 - have you tried connecting the GPIO element with the pin set to
RSL10_PB1 - User PB1 for the first element to the GPIO element with the pin set to

RSL10_LED_RED - Red LED for the LED and use the toggle ability?

Those pin settings come from the HW docs, Default Pin Mapping section - https://developer.atmosphereiot.com/documents/hardwareselection/rsl10-sense-gevk.html
Thanks

Yes I tried any combination I could think of and I can’t get the LED to light.
I was able to do it from the phone app.
This is what I tried.

Button GPIO

GPIO MODE Ouput Push Pull
INITIAL STATE Low
ENABLE INTERRUPT Off
INTERRUPT MODE None
I tried the following TRIGGERS without luck.
Triggered, Set State, Read, Toggled, and
Interrupt
Trigger, Set State, Set Pin Low, Read, Toggle, Interrupt

LED GPIO

GPIO PIN RSL_10_RED
GPIO MODE Ouput Push Pull
INITIAL STATE Low
ENABLE INTERRUPT Off
INTERRUPT MODE None
TRIGGERS Toggled

Thank you for your help.

@newbee101 - were you able to make the demo projects work? I just want to verify the kit is working as expected.
Thanks

@newbee101 - you need to Enable the Interrupt on PB1 - I have attached an .atmo that turns the Red LED on and off with a button press. You can also use “both edges” if you want slightly different behavior.
Thanks and good luck with your project!

Blinky - Button PB1.atmo (581.2 KB)

1 Like

Thank You!!!
I changed the LED ABILITY to Toggle on your example and the trigger to Rising Edge to toggle the LED.
It worked great.
I then added the center button PB2 to turn on the Green LED and the Spare GPIO when it is pressed.
I hope this can help other people just starting out with this program and the RSL10.
See the attached atmo file:
Blinky - Button PB1 AND PB2.atmo (594.7 KB)