SHOW - how to interact with buttons?

Post Reply
momoparis30
Posts: 2
Joined: Thu Nov 15, 2018 8:09 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

SHOW - how to interact with buttons?

Unread post by momoparis30 » Sun Nov 25, 2018 12:09 am

Hello,

I am using and modifying SHOWtime ( https://github.com/Matoking/SHOWtime) and hoping to fork it... but i have no idea on how to interact with the buttons or leds.

I understand Python, but i have no experience in Arduino.. or interacting through serial port.

Do you have any ideas of where i can start?

Many thanks

User avatar
tobetter
Posts: 3530
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 24 times
Been thanked: 95 times
Contact:

Re: SHOW - how to interact with buttons?

Unread post by tobetter » Tue Nov 27, 2018 3:38 pm

momoparis30 wrote:Hello,

I am using and modifying SHOWtime ( https://github.com/Matoking/SHOWtime) and hoping to fork it... but i have no idea on how to interact with the buttons or leds.

I understand Python, but i have no experience in Arduino.. or interacting through serial port.

Do you have any ideas of where i can start?

Many thanks
Can you refer the link and start to find the way how you can use SHOW with Python?
viewtopic.php?f=53&t=7715

momoparis30
Posts: 2
Joined: Thu Nov 15, 2018 8:09 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: SHOW - how to interact with buttons?

Unread post by momoparis30 » Sat Dec 08, 2018 6:42 pm

Hello again,

i found how to read the serial data coming from the SHOW.

But i don't see any message coming when i push a button.

I saw this was posted but it's all in C.

viewtopic.php?f=88&t=14706


What's the logic? i have to query the show to see the state of the button?

Any information is welcome.

lsc1117
Posts: 121
Joined: Thu Aug 22, 2013 12:46 am
languages_spoken: english
Location: South Korea
Has thanked: 0
Been thanked: 1 time
Contact:

Re: SHOW - how to interact with buttons?

Unread post by lsc1117 » Tue Dec 18, 2018 11:40 am

Hi,

To read the Button state on your PC, you need to add a few lines in Arduino code.
I think the easiest way to do it is that you use "Serial.print" API.

For example, you can add the "Serial.print("btn1")" line into the Releases routine.
https://github.com/hardkernel/ODROID-SH ... n.ino#L200

When you release the button, you can receive the "btn1" serial data from your ODROID-SHOW.

Please refer to this page how to upload a firmware to ODROID-SHOW.
https://wiki.odroid.com/accessory/displ ... ow/setting

Post Reply

Return to “SHOW”

Who is online

Users browsing this forum: No registered users and 1 guest