AKRAM OMAR
/
GROUP9_PROJECT
FIrst Project
main.cpp@0:d9079a44db6d, 2021-07-02 (annotated)
- Committer:
- akramaliomar
- Date:
- Fri Jul 02 09:11:57 2021 +0000
- Revision:
- 0:d9079a44db6d
First Time
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
akramaliomar | 0:d9079a44db6d | 1 | /* mbed Microcontroller Library |
akramaliomar | 0:d9079a44db6d | 2 | * Copyright (c) 2019 ARM Limited |
akramaliomar | 0:d9079a44db6d | 3 | * SPDX-License-Identifier: Apache-2.0 |
akramaliomar | 0:d9079a44db6d | 4 | */ |
akramaliomar | 0:d9079a44db6d | 5 | #include "mbed.h" |
akramaliomar | 0:d9079a44db6d | 6 | |
akramaliomar | 0:d9079a44db6d | 7 | int main() |
akramaliomar | 0:d9079a44db6d | 8 | { |
akramaliomar | 0:d9079a44db6d | 9 | // Initialise the digital pin LED1 as an output |
akramaliomar | 0:d9079a44db6d | 10 | DigitalOut led(LED1); |
akramaliomar | 0:d9079a44db6d | 11 | |
akramaliomar | 0:d9079a44db6d | 12 | while (true) { |
akramaliomar | 0:d9079a44db6d | 13 | led = !led; |
akramaliomar | 0:d9079a44db6d | 14 | |
akramaliomar | 0:d9079a44db6d | 15 | } |
akramaliomar | 0:d9079a44db6d | 16 | } |