Demo application for librairie HX711 Cr300-Litho

Dependencies:   HX711 TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
BB50
Date:
Fri Jun 12 16:17:21 2015 +0000
Commit message:
1st release.; Work.

Changed in this revision

HX711.lib Show annotated file Show diff for this revision Revisions of this file
TextLCD.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r c4eaea48d411 HX711.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HX711.lib	Fri Jun 12 16:17:21 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/teams/Cr300-Litho/code/HX711/#f82840dd806a
diff -r 000000000000 -r c4eaea48d411 TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Fri Jun 12 16:17:21 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
diff -r 000000000000 -r c4eaea48d411 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jun 12 16:17:21 2015 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "TextLCD.h" //Librairie Ecran text
+#include "HX711.h" //Librairie HX711 en dévellopement
+
+
+TextLCD lcd(D2, D3, D4, D5, D6, D7, TextLCD::LCD20x4); // Déclaration TextLCD.
+     
+HX711 scale(A1,A0,64); //(pinData, pinSCK, gain [128|32|64])
+DigitalIn mybutton(USER_BUTTON);//Boutton
+
+int main() 
+{
+    int weight;
+
+    while(1) 
+    {
+        if (!mybutton) 
+            scale.tare();
+            
+        weight = scale.getGram();
+        lcd.cls();
+        lcd.locate(0,0);
+        lcd.printf("Value = %i g", weight);
+    }
+}
diff -r 000000000000 -r c4eaea48d411 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jun 12 16:17:21 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7
\ No newline at end of file