lyre liu / Mbed 2 deprecated project1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
lyreliu
Date:
Sun Mar 06 15:24:02 2016 +0000
Parent:
4:8af87a432c12
Child:
6:0d854548023b
Commit message:
program

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Mar 06 13:41:41 2016 +0000
+++ b/main.cpp	Sun Mar 06 15:24:02 2016 +0000
@@ -16,6 +16,8 @@
 unsigned short int mass_trans_high; // A 8 bits mass used for transmitting
 unsigned short int mass_trans_low;
 
+unsigned short int test;
+
 int main()
 {
     SerialInit();                   //Initial the serial
@@ -23,10 +25,13 @@
     high_pin = 1;
     low_pin = 0;
     
+    test = 0xff;
+    
     while(1)
     {
-        MassCompute(voltage.read());  
-        SerialTransmit();
+        //MassCompute(voltage.read());  
+        //SerialTransmit();
+        pc.printf("%d",test);
         wait_ms(SAMPLE_TIME);               //Wait for 100ms, this is the sample time.
     }      
 }