Use display to show serial message Only for test
Dependencies: EFM32_SegmentLCD IOFuncLib mbed
Diff: main.cpp
- Revision:
- 1:08217ba7f63c
- Parent:
- 0:c0d5dcd1de43
--- a/main.cpp Thu Jul 16 21:06:45 2015 +0000 +++ b/main.cpp Sun Jul 19 00:26:13 2015 +0000 @@ -9,12 +9,12 @@ /*------------ Constant definitions --------------*/ #define TX_PIN USBTX #define RX_PIN USBRX -#define BRATE 115200 +#define BRATE 9600 #define LED_PIN LED1 -#define TOGGLE_RATE (0.5f) -#define BUFF_LENGTH 5 +#define TOGGLE_RATE (1.0f) +#define BUFF_LENGTH 7 -#define INIT_SECONDS 17600 +#define INIT_SECONDS 0 /*-------- Check if platform compatible ----------*/ #if DEVICE_SERIAL_ASYNCH @@ -53,8 +53,8 @@ /* Setup serial connection */ test_connection.baud(BRATE); - test_connection.printf("Low Power API test\n\nSend 'S' to toggle blinking\n"); - test_connection.read(rx_buf, BUFF_LENGTH, serialEventCb, SERIAL_EVENT_RX_ALL, 'S'); + test_connection.printf("Low Power API test\n\nSend 'X' to toggle blinking\n"); + test_connection.read(rx_buf, BUFF_LENGTH, serialEventCb, SERIAL_EVENT_RX_ALL, 'X'); /* Let the callbacks take care of everything */ refreshTicker.attach(&tickerCallback, 1.0f);