security manager conflict commented

Dependencies:   microbit2

sender_radio_test.cpp

Committer:
cristianobarbosa
Date:
2018-01-26
Revision:
1:ccc3886c1350
Parent:
0:6ec669ffadd7

File content as of revision 1:ccc3886c1350:

#include "MicroBit.h"
MicroBit    uBit;
MicroBitSerial serial(USBTX, USBRX);
int main(){
    int power = 7;
    uBit.init();
    uBit.radio.enable();
    //transmit power 'power' [0-7]
    uBit.radio.setTransmitPower(power);
    while(1){
        if(uBit.buttonB.isPressed()){
            serial.send(power);
            uBit.display.print("Sending!");
            uBit.radio.datagram.send("Ola ZE!");
        }   
        uBit.sleep(100);
    }
}