![](/media/cache/profiles/Headshot_Fall2023_Square.jpg.50x50_q85.jpg)
This program is intended for use exploring bitwise operator. It also demonstrates the use of the 8-bit unsigned char type and using printf to display integer values in various number bases.
main.cpp
- Committer:
- mbed_official
- Date:
- 2019-11-04
- Revision:
- 102:6979ad8bc0bc
- Parent:
- 100:ec006d6f3cb6
- Child:
- 104:f2805e857b14
File content as of revision 102:6979ad8bc0bc:
/* mbed Microcontroller Library * Copyright (c) 2019 ARM Limited * SPDX-License-Identifier: Apache-2.0 */ #include "mbed.h" #include "platform/mbed_thread.h" // Blinking rate in milliseconds #define BLINKING_RATE_MS 500 int main() { // Initialise the digital pin LED1 as an output DigitalOut led(LED1); while (true) { led = !led; thread_sleep_for(BLINKING_RATE_MS); } }