Lehrer Busch
/
010_LED_an_AA
010_LED_an_AA
main.cpp@1:57b2c800b415, 2022-01-31 (annotated)
- Committer:
- itbusch
- Date:
- Mon Jan 31 15:51:13 2022 +0000
- Revision:
- 1:57b2c800b415
- Parent:
- 0:baa843cb6331
- Child:
- 3:f51f672f745a
010_LED_an
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
itbusch | 0:baa843cb6331 | 1 | // 10_LED_an mbed |
itbusch | 0:baa843cb6331 | 2 | |
itbusch | 0:baa843cb6331 | 3 | #include "mbed.h" |
itbusch | 0:baa843cb6331 | 4 | |
itbusch | 0:baa843cb6331 | 5 | //Initialisiere Ausgangspin und Variable |
itbusch | 0:baa843cb6331 | 6 | DigitalOut Boardled(LED1); |
itbusch | 0:baa843cb6331 | 7 | |
itbusch | 1:57b2c800b415 | 8 | int main() //Hauptprogramm |
itbusch | 0:baa843cb6331 | 9 | { |
itbusch | 1:57b2c800b415 | 10 | while (true) //Endlosschleife |
itbusch | 0:baa843cb6331 | 11 | { |
itbusch | 1:57b2c800b415 | 12 | Boardled = 1; //LED1 an... |
itbusch | 0:baa843cb6331 | 13 | } |
itbusch | 0:baa843cb6331 | 14 | } |