I just tried compiling this for the BLE nano and it explodes to a 245K download (much too large for device). I've also tried including only the headers (DigitalOut and wait...) that are necessary. Same size.
How do we configure the online compiler to optimize the size and strip unnecessary dependencies from the mbed library/src. I thought that would have been automatic and I can't find any toggles anywhere for it.
Thanks,
#include "mbed.h"
DigitalOut myled(P0_12);
int main() { while(1) { myled = 1; wait(0.2); myled = 0; wait(0.2); } }