Hello. I am an old arduino user but very new to the BLE sense family. I had some familiarity with MBED studio and Nordic nRF52-DK board. So when i bought the BLE sense i was intreasted in using the same Mbed studio. And i realised that now i can use ARDUINO_NANO33BLE as target. So i compiled the code. the code is also there in the picture attached.
Then i uploaded the code using the following command
C:\Users\BonJovi\AppData\Local\Temp\arduino_build_551330>C:\Users\BonJovi\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.9.1-arduino2/bossac.exe -d --port=COM4 -U -i -e -w C:\Users\BonJovi\AppData\Local\Temp\arduino_build_551330/mbed-os-example-blinky.hex -R
It uploaded successfully. But the LED doesnot blink at 500mS. rather it fades in and fadesup.
What might be the Reason?
Here is the code
[color=#c2c7c9][color=#7d868c]/* mbed Microcontroller Library[/color]
[color=#7d868c] * Copyright (c) 2019 ARM Limited[/color]
[color=#7d868c] * SPDX-License-Identifier: Apache-2.0[/color]
[color=#7d868c] */[/color]
[color=#ffa62e]#include[/color] [color=#efce58]"mbed.h"[/color]
[color=#7d868c]// Blinking rate in milliseconds[/color]
[color=#ffa62e]#define[/color][color=#efce58] [/color][color=#00c1de]BLINKING_RATE[/color][color=#efce58] [/color][color=#f7f7f7]500ms[/color]
[color=#00c1de]int[/color] [color=#a9d545]main[/color]()
{
[color=#7d868c] // Initialise the digital pin LED1 as an output[/color]
DigitalOut [color=#a9d545]led[/color](LED1);
[color=#ffa62e]while[/color] ([color=#00c1de]true[/color]) {
led [color=#f7f7f7]=[/color] [color=#f7f7f7]![/color]led;
[color=#f7f7f7]ThisThread[/color]::[color=#a9d545]sleep_for[/color](BLINKING_RATE);
}
}
[/color]