Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 5:ff47bcaebc64
- Parent:
- 4:8af87a432c12
- Child:
- 6:0d854548023b
--- 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.
}
}