This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Arduino - phyphox connection
#1
I want to make an experiment with two buttons. When each one is pressed it will send a different integer via bluetooth, to the Arduino.  I can't figure out how to combine the two buttons so that only the value of the last one pressed is sent. I'm trying to do using the editor because I'm not familiar with xml. Can you help me?
Reply
#2
Something like https://phyphox.org/forums/showthread.ph...98#pid3198? (I am not entirely sure if our old editor can handle this file.)

The raw XML file might look scary, however, it is not that bad. The relevant “views” block is starting at
Code:
<view label="Interval">
and the trick is that all buttons write into the same container.

The example in that thread is a bit more complicated as the buttons should send the value only once rather than continuously…
Reply
#3
Thanks I will check it. 
We are looking forward to the new editor, is there any news?
Reply
#4
You could try the new editor at https://phyphox.org/neweditor/, however, last week something was broken. I need to check if it has been fixed yet…
Reply
#5
Thumbs Up 
(06-05-2024, 09:46 AM)Jens Noriʇzsɔɥ Wrote: You could try the new editor at https://phyphox.org/neweditor/, however, last week something was broken. I need to check if it has been fixed yet…

Thanks again
Reply


Forum Jump: