You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include "MicroBit.h"
MicroBit uBit;
uint8_t enable_data[3]={0xFF ,0x01 ,0xAA};
uint8_t disable_data[3]={0xFF ,0x02 ,0xAA};
int main()
{
uBit.init();
while(1)
{
uBit.radio.enable();//turn on radio
uBit.radio.setGroup(7);
uBit.radio.datagram.send(enable_data, 3);
uBit.sleep(500);
uBit.radio.disable(); //turn off radio
uBit.radio.datagram.send(disable_data, 3);
uBit.sleep(500);
}
release_fiber();
}
Run the above code in microbit. My other microbit received enable_data and disable_data only once .It looks like sending data after it's closed will jam. In addition, I have uBit.radio.disable() but My other microbit can received disable_data once.
The text was updated successfully, but these errors were encountered:
My code:
Run the above code in microbit. My other microbit received enable_data and disable_data only once .It looks like sending data after it's closed will jam. In addition, I have uBit.radio.disable() but My other microbit can received disable_data once.
The text was updated successfully, but these errors were encountered: