Feng Hong / Mbed OS Nucleo_rtos_basic
Revision:
4:40bb33497de4
Parent:
2:61a0169765bf
Child:
5:4585215afd11
--- a/main.cpp	Sat Mar 02 08:35:24 2019 +0000
+++ b/main.cpp	Sat Mar 23 02:18:38 2019 +0000
@@ -1,6 +1,7 @@
 #include "mbed.h"
 #include <HX711.h>
 #include <eeprom.h>
+#include "digitLCD.h"
 
 CAN can1(PD_0, PD_1);
 CAN can2(PB_5, PB_6);
@@ -8,6 +9,7 @@
 DigitalOut led2(LED2);
 //FlashIAP flashIAP;
 
+digitLCD lcd(PA_5,PA_4,PB_5); // WO, CS, DATA
 
 #define EEPROM_ADDR 0x0   // I2c EEPROM address is 0x00
  
@@ -519,6 +521,9 @@
 int main()
 {
     wait(1);
+    lcd.clear();            // clears display
+    lcd.allsegson();
+ //   lcd.printf("ABCDEFGHI"); // Standard printf function, All ASCII characters will display
     printf("\n\n*** RTOS basic example ***\r\n");
     init_scale();
     thread.start(print_thread);