boart test board
Dependencies: USBDevice mbed-dev lwip
Fork of USBSerial_HelloWorld by
Diff: main.cpp
- Revision:
- 13:d838b256c7e0
- Parent:
- 12:d15a7d7feb12
- Child:
- 15:825cce18de03
diff -r d15a7d7feb12 -r d838b256c7e0 main.cpp --- a/main.cpp Mon Jul 23 21:44:55 2018 +0000 +++ b/main.cpp Tue Jul 24 16:01:45 2018 +0000 @@ -27,11 +27,10 @@ //PwmOut UD_PWM(PD_12); //PwmOut LR_PWM(PD_13); - -//static Serial bt(PG_9, PG_14, 9600); // tx, rx USART6 +static Serial bt(PG_14, PG_9, 9600); // tx, rx USART6 work static Serial rfid(PD_5, PD_6, 9600); // tx, rx USART2 work -//static Serial wifi(PA_9, PA_10, 9600); // tx, rx USART1 -static Serial fifi2(PB_10, PC_5, 9600); // tx, rx USART3 work +static Serial wifi(PA_9, PA_10, 9600); // tx, rx USART1 work +static Serial fifi2(PB_10, PC_5, 9600); // tx, rx USART3 - overlap with STDIO USART #define I2CADDR1 0x5F // 0xbe #define I2CADDR2 0x6B // 0xd6 @@ -45,8 +44,8 @@ //wifi.baud(115200); //wifi2.baud(115200); - beep.period((float) 0.001); //set la periode a 1khz - beep.write(50); // duty + //beep.period((float) 0.001); //set la periode a 1khz + //beep.write(50); // duty din = 1; din_light = 1; ud_pwm = 1;