phyphox Forums
Arduino - phyphox connection - Printable Version

+- phyphox Forums (https://phyphox.org/forums)
+-- Forum: Discussion (https://phyphox.org/forums/forumdisplay.php?fid=1)
+--- Forum: General (https://phyphox.org/forums/forumdisplay.php?fid=3)
+--- Thread: Arduino - phyphox connection (/showthread.php?tid=1888)



Arduino - phyphox connection - Ekfereth - 06-04-2024

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?


RE: Arduino - phyphox connection - Jens Noriʇzsɔɥ - 06-04-2024

Something like https://phyphox.org/forums/showthread.php?tid=1640&pid=3198#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…


RE: Arduino - phyphox connection - Ekfereth - 06-04-2024

Thanks I will check it. 
We are looking forward to the new editor, is there any news?


RE: Arduino - phyphox connection - Jens Noriʇzsɔɥ - 06-05-2024

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…


RE: Arduino - phyphox connection - Ekfereth - 06-05-2024

(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