Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Adafruit_GFX TextLCD
Diff: main.cpp
- Revision:
- 0:9a306207c5b2
- Child:
- 1:a48de1514875
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun May 29 19:02:58 2022 -0400 @@ -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); + } +}