![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
.
Dependencies: SHT3XA mbed LIS3DH mbed-rtos USBDevice
main.cpp
- Committer:
- bcostm
- Date:
- 2017-08-03
- Revision:
- 0:941291e23892
- Child:
- 1:323175fe9443
File content as of revision 0:941291e23892:
#include "mbed.h" #include "USBSerial.h" // Virtual USB Serial port USBSerial usb_serial; DigitalOut led(LED1); int main(void) { int i = 0; // Print on STDIO printf("USBDevice Serial started\r\n"); while(1) { // Print on Virtual USB Serial port usb_serial.printf("I am a virtual serial port: %d\r\n", i++); led = !led; wait(0.1); } }