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.
Homepage
include "mbed.h"
DigitalOut led(LED1);
int main() { uint8_t variable=0;
led = !led; printf("Blink! LED is now %d \n", led.read()); scanf("%d",&variable); printf("Der Wert der Variable: %d\n",variable);
wait_ms(500); return 0; }
Lauflicht:
define BUTTON1 p14 include "mbed.h" Flash an LED while a DigitalIn is true
DigitalIn enable(p14); BusOut leds(LED1,LED2,LED3,LED4); BusOut rgb(p23,p24,p15); BusIn joy(p12,p13,p14,p15,p16);
int main() {
while(1) {
if(leds==0) { leds=1; rgb=255; } else
leds=leds<<1; rgb=rgb+1;
wait_ms(200); } }