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:
- 1:9ebe670d8a19
- Parent:
- 0:15d3cdafd311
--- a/main.cpp Thu Dec 11 21:54:03 2014 +0000
+++ b/main.cpp Fri Dec 12 01:18:01 2014 +0000
@@ -16,8 +16,12 @@
myled1 = 1; //red off
myled2 = 1; //green off
myled3 = 1; //blue off
-
+ //uint16_t val;
+ //uint16_t val_avg;
while(1) {
+ //val = myADC.read_u16();
+ //val_avg = mvgAvg(val, 0);
+ //pc.printf("raw: %d avg: %d\n\r", val, val_avg);
number_pills = measure_pills();
//pc.printf("Number of pills: %d\n\r", number_pills);
wait(0.05);