version with updated libs
Dependencies: F7_Ethernet mbed MbedJSONValue LCD_DISCO_F746NG mbed-rtos BSP_DISCO_F746NG CANMsg NetworkAPI SDFileSystem_Warning_Fixed GroveStreamsmodified LcdDiscoF746NgTracer JSON
Diff: main.cpp
- Branch:
- jpa
- Revision:
- 5:ceefd0cfa233
- Parent:
- 4:fbbf5d1785e7
- Child:
- 7:6ec7a4b94d0b
--- a/main.cpp Wed Sep 02 14:43:31 2020 +0000 +++ b/main.cpp Wed Sep 02 17:07:55 2020 +0000 @@ -176,7 +176,8 @@ // attach ISR to handle received messages timer.start(); // start timer sendSerialUSB("CAN_Hello board serialUSB #1\r\n"); - + sendSerial2("CAN_Hello board serial2 #1\r\n"); + sendSerial7("CAN_Hello board serial7 #1\r\n"); printf("\nInit SDCard ...\n"); mainSDCardJPA() ; // init SD - read prog parameters from SD (from sdcardjpa.cpp in sdfilesystem_warning_fixed lib @@ -216,6 +217,8 @@ //can.filter(RX_ID, 0xFFF, CANStandard, 0); // set filter #0 to accept only standard messages with ID == RX_ID can.attach(onCanReceived, CAN::RxIrq); + BSP_LCD_DisplayOff(); + BSP_LCD_DisplayOn(); // main loop --------------------------------------------------- while (true) { @@ -238,7 +241,9 @@ // timer send can if(timer.read_ms() >= 10000) // check for timeout - { timer.stop(); // stop the timer + { + + timer.stop(); // stop the timer timer.reset(); // reset the timer counter = (counter+1) & 1; // increment the counter voltage = 0;////(analogIn * 3.3f)/4096.0f;// read the small drifting voltage from analog input