Cristian Castro / Mbed 2 deprecated loadcell_hx711

Dependencies:   mbed HX711 TextLCD

Revision:
1:b7ba95405cdf
Parent:
0:5d67331a6e7e
--- a/main.cpp	Fri May 05 20:16:31 2017 +0000
+++ b/main.cpp	Fri Sep 03 05:34:50 2021 +0000
@@ -2,11 +2,11 @@
 #include "HX711.h"
 #include "TextLCD.h" 
 
-DigitalOut led(LED_BLUE);
+DigitalOut led(LED1);
 HX711 scale(PTC9, PTC8);
 
 Serial rs232(USBTX, USBRX);    // USB Serial Terminal
-TextLCD lcd(PTE20,PTE21,PTE22,PTE23,PTE29,PTE30, TextLCD::LCD16x2); // Rs, E, d4, d5, d6, d7 
+//TextLCD lcd(PTE20,PTE21,PTE22,PTE23,PTE29,PTE30, TextLCD::LCD16x2); // Rs, E, d4, d5, d6, d7 
 
 float calibration_factor = 1000; //Ajustar este valor para calibrar el peso exacto
 int averageSamples = 100;
@@ -23,8 +23,8 @@
         scale.setScale(calibration_factor); 
         float weight = scale.getGram();
         rs232.printf("Peso: %.2f\n", weight);
-        lcd.locate(0,0);
-        lcd.printf("Peso: %.2f Grms", weight);
+        //lcd.locate(0,0);
+        //lcd.printf("Peso: %.2f Grms", weight);
         led = !led; // toggle led
         wait(0.2f);
     }