![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Oledscreen program
Dependencies: Adafruit-GFX-MbedOS6 Adafruit_SSD1331_MbedOS6
Diff: main.cpp
- Revision:
- 0:f9d16642e61a
diff -r 000000000000 -r f9d16642e61a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jan 19 11:35:27 2021 +0200 @@ -0,0 +1,22 @@ +/* mbed Microcontroller Library + * Copyright (c) 2019 ARM Limited + * SPDX-License-Identifier: Apache-2.0 + */ + +#include "mbed.h" + + +// Blinking rate in milliseconds +#define BLINKING_RATE 500ms + + +int main() +{ + // Initialise the digital pin LED1 as an output + DigitalOut led(LED1); + + while (true) { + led = !led; + ThisThread::sleep_for(BLINKING_RATE); + } +}