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.
You are viewing an older revision! See the latest version
DigitalIn Program
Anschließend wird ein Programm für die digitale Eingabe (z.B. drücken eines Buttons) gezeigt. Vergleichen Sie bzw. ergänzen Sie das Programm mit Komponenten der Klassenreferenz der DigitalIn :
Information
Kopieren Sie das Programm in den mbed-Simulator
title
// Flash an LED while a DigitalIn is true #include "mbed.h" DigitalIn enable(BUTTON1); DigitalOut led(LED1); int main() { while(1) { if(enable) { led = !led; } wait(0.25); } }