DHT11 to USB serial converter for Maple Mini

Dependencies:   DHT USBDevice_STM32F103 mbed-MapleMini mbed

Fork of STM32F103C8T6_USBSerial by Zoltan Hudak

Revision:
5:0be85f1bdb35
Parent:
4:00ccc80cbeb8
Child:
6:d8b3de585749
--- a/main.cpp	Sun Aug 14 09:57:58 2016 +0000
+++ b/main.cpp	Wed Apr 26 17:57:55 2017 +0000
@@ -8,7 +8,8 @@
     confSysClock();     //Configure system clock (72MHz HSE clock, 48MHz USB clock)
     
     Serial    pc(PA_2, PA_3);
-    USBSerial usbSerial;
+    //USBSerial usbSerial;  // connection must be blocked when USB is not plugged in
+    USBSerial usbSerial(0x1f00, 0x2012, 0x0001,  false);    // connection is not blocked when USB is not plugged in
     
     while(1) {
         myled = !myled;