Factory Monitor
Dependencies: mbed
factory sense HQ
Diff: main.cpp
- Revision:
- 9:3ee4f273d7d6
- Parent:
- 8:e417787cb2fa
- Child:
- 10:0333f8137979
--- a/main.cpp Thu Sep 03 11:38:41 2015 +0000 +++ b/main.cpp Thu Sep 03 13:50:38 2015 +0000 @@ -2,12 +2,12 @@ #define no_pins 2 #define Inputs 0 -#define Outputs 1 +#define Outputs 0 #define Rejects Values[2] -DigitalIn sensorPin1(p5); -DigitalIn sensorPin2(p6); +DigitalIn sensorPin1( p5, PullDown); +DigitalIn sensorPin2( p6, PullDown); //variables // initialize serial communication: @@ -65,7 +65,9 @@ }; Rejects = (Inputs - Outputs); - pc.printf(Inputs, Outputs, Rejects \n); + pc.printf("inputs %d \n",Inputs); + pc.printf("outputs %d \n",Outputs); + pc.printf("rejects %d \n",Rejects); wait(0.2); } } \ No newline at end of file