How to use switches and tiny leds

Post Reply
infodroid
Posts: 1
Joined: Tue Jul 07, 2015 1:16 am
languages_spoken: english
ODROIDs: ODROID U3, ODROID SHOW2
Has thanked: 0
Been thanked: 0
Contact:

How to use switches and tiny leds

Unread post by infodroid » Tue Jul 07, 2015 1:26 am

Hello! I have ODROID SHOW 2 board (and ODROID U3) and I would like to know:
1. How can I get push status of the three switches?
2. How can I set the three tiny LEDs on/off?
I can't find any example.
I already updated firmware to 2.0.
Thanks in advance.

User avatar
odroid
Site Admin
Posts: 31115
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 31 times
Been thanked: 156 times
Contact:

Re: How to use switches and tiny leds

Unread post by odroid » Tue Jul 07, 2015 10:51 am

Refer this source code.
https://github.com/hardkernel/ODROID-SH ... w_main.ino

readBtn() function shows how to access the three switches and LEDs.

Post Reply

Return to “SHOW”

Who is online

Users browsing this forum: No registered users and 1 guest