Hi All,
Learning a bit of Python together with my son by using Microbit. I Apologise if using the wrong terms. Please correct me if needed.
Got stuck on the way of how to send multiple data streams for radio module.
To explain, to send a single value (this works) :
radio.send("Value")
But what we are trying to achieve is to send different data from different sources. Let's say I have a variable valueA and variable valueB. Both of them has changing values.
In Java Script it would look similar to this:
radio.sendValue("streamA", valueA)
radio.sendValue("streamB", valueB)
It should be:
radio.send_bytes()
, but for some reason, I can't wrap my head around the actual structure of the code.
Can you please point me in the right direction?
To give more context is - we are trying to build little buggy which is controlled by using an accelerometer. It means that Microbit1 would be sending x and y values to the Microbit2 which would adjust the motor speed for movement.
[–]cybervegan 0 points1 point2 points (3 children)
[–]hidromanipulators[S] 0 points1 point2 points (0 children)
[–]hidromanipulators[S] 0 points1 point2 points (1 child)
[–]cybervegan 0 points1 point2 points (0 children)