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.
Lösung DigitalAus
Kopieren Sie den Code in den Simulator und ergänzen Sie die Operation ist_verbunden()
.
Klasse DigitalAus abgeleitet von DigitalOut
#include "mbed.h" class DigitalAus : public DigitalOut { public: DigitalAus(PinName ld) : DigitalOut(ld){} int lese() { return read(); } void schreibe(int value) { write(value); } }; DigitalAus led(LED1); int main() { while (1) { led.write(0); printf("Blink! LED is now %d\n", led.read()); wait_ms(500); led.write(1); printf("Blink! LED is now %d\n", led.read()); wait_ms(500); } }