Page 1 of 1
SHOW - how to interact with buttons?
Posted: Sun Nov 25, 2018 12:09 am
by momoparis30
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
Re: SHOW - how to interact with buttons?
Posted: Tue Nov 27, 2018 3:38 pm
by tobetter
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
Re: SHOW - how to interact with buttons?
Posted: Sat Dec 08, 2018 6:42 pm
by momoparis30
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.
Re: SHOW - how to interact with buttons?
Posted: Tue Dec 18, 2018 11:40 am
by lsc1117
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