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.
main.cpp
- Committer:
- jack1930
- Date:
- 2021-07-26
- Revision:
- 0:10a83d6e8aba
File content as of revision 0:10a83d6e8aba:
/* mbed Microcontroller Library
* Copyright (c) 2019 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*/
#include "mbed.h"
// Initialise the digital pin LED1 as an output
DigitalOut led(LED1);
PortOut leds(PortC,0b11111111);
DigitalIn taste(PC_13);
int main()
{
while (true) {
if (taste==0)
{
led = !led;
leds=leds+1;
HAL_Delay(1000);
}
}
}