![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
Fork of USBKeyboard_HelloWorld by
main.cpp@7:7fd55fe37383, 2017-12-12 (annotated)
- Committer:
- USER10
- Date:
- Tue Dec 12 01:05:07 2017 +0000
- Revision:
- 7:7fd55fe37383
- Parent:
- 5:03a4211d593a
test;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
samux | 1:291a88a2c151 | 1 | #include "mbed.h" |
samux | 1:291a88a2c151 | 2 | #include "USBKeyboard.h" |
samux | 5:03a4211d593a | 3 | |
samux | 1:291a88a2c151 | 4 | //LED1: NUM_LOCK |
samux | 1:291a88a2c151 | 5 | //LED2: CAPS_LOCK |
samux | 1:291a88a2c151 | 6 | //LED3: SCROLL_LOCK |
samux | 1:291a88a2c151 | 7 | BusOut leds(LED1, LED2, LED3); |
samux | 5:03a4211d593a | 8 | |
samux | 3:8b56768ceca2 | 9 | //USBKeyboard |
samux | 3:8b56768ceca2 | 10 | USBKeyboard keyboard; |
samux | 5:03a4211d593a | 11 | |
samux | 1:291a88a2c151 | 12 | int main(void) { |
samux | 1:291a88a2c151 | 13 | while (1) { |
samux | 1:291a88a2c151 | 14 | keyboard.printf("Hello World from Mbed\r\n"); |
samux | 4:f0df6aae7147 | 15 | wait(1); |
samux | 3:8b56768ceca2 | 16 | leds = keyboard.lockStatus(); |
samux | 1:291a88a2c151 | 17 | } |
samux | 4:f0df6aae7147 | 18 | } |