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
SHOW - how to interact with buttons?
-
- Posts: 2
- Joined: Thu Nov 15, 2018 8:09 am
- languages_spoken: english
- Contact:
- tobetter
- Posts: 2631
- Joined: Mon Feb 25, 2013 10:55 am
- languages_spoken: Korean, English
- ODROIDs: X, X2, U2, U3, XU3, C1
- Location: Paju, South Korea
- Contact:
Re: SHOW - how to interact with buttons?
Can you refer the link and start to find the way how you can use SHOW with Python?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
viewtopic.php?f=53&t=7715
-
- Posts: 2
- Joined: Thu Nov 15, 2018 8:09 am
- languages_spoken: english
- Contact:
Re: SHOW - how to interact with buttons?
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.
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.
-
- Posts: 98
- Joined: Thu Aug 22, 2013 12:46 am
- languages_spoken: english
- Location: South Korea
- Contact:
Re: SHOW - how to interact with buttons?
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
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
Who is online
Users browsing this forum: No registered users and 1 guest