Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 9 months ago.
How to send uBit.accelerometer.getX() from microbit to microbit using uBit.radio.datagram.send()?
while(1) { if(c==0) { x=uBit.accelerometer.getX(); }
uBit.radio.datagram.send(x);
uBit.sleep(20);
}
it seems that x is int and so cannot be accepted by radio.datagram.send..... what should i do to make this work?