![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
TINF
main.cpp@2:c87697c82657, 2019-11-18 (annotated)
- Committer:
- fpucher
- Date:
- Mon Nov 18 18:21:01 2019 +0000
- Revision:
- 2:c87697c82657
- Parent:
- 1:5a08678310e8
new printf;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fpucher | 0:e1ef94e6f44b | 1 | #include "mbed.h" |
fpucher | 0:e1ef94e6f44b | 2 | |
fpucher | 0:e1ef94e6f44b | 3 | DigitalOut led(LED1); |
fpucher | 0:e1ef94e6f44b | 4 | |
fpucher | 0:e1ef94e6f44b | 5 | int main() { |
fpucher | 0:e1ef94e6f44b | 6 | uint8_t variable = 0; |
fpucher | 2:c87697c82657 | 7 | |
fpucher | 2:c87697c82657 | 8 | printf("Zahl eingeben: \n"); |
fpucher | 0:e1ef94e6f44b | 9 | scanf("%d", &variable); |
fpucher | 0:e1ef94e6f44b | 10 | printf("Hello World und der Wert der Variable: %d\n", variable); |
fpucher | 0:e1ef94e6f44b | 11 | wait_ms(500); |
fpucher | 0:e1ef94e6f44b | 12 | } |