Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718
  1. #include "mbed.h"
  2. #include "USBSerial.h"
  3. //Virtual serial port over USB
  4. USBSerial serial;
  5. DigitalOut l1(LED1);
  6. int main(void) {
  7. int i = 0;
  8. while(1)
  9. {
  10. l1 = !l1;
  11. printf("Hello\r\n");
  12. serial.printf("I am a virtual serial port: %d\r\n", i++);
  13. wait(0.1);
  14. }
  15. }