Test Program
Fork of mbed-os-example-mbed5-blinky by
main.cpp
- Committer:
- vdrelectroncis
- Date:
- 2017-08-24
- Revision:
- 44:1b89da6f6e1e
- Parent:
- 29:0b58d21e87d6
File content as of revision 44:1b89da6f6e1e:
#include "mbed.h"
DigitalOut led1(PB_12);
AnalogIn lux(PA_5); //p18 // Read Vacuum
DigitalOut MeasureVacuum(PB_14); // p16 // Sample Vacuum
DigitalIn FloaterInput(PB_2); // p10 PA_9
DigitalIn SwitchInput(PB_0); // p8
InterruptIn WakeUp(PA_0);
DigitalOut Solonoid(PA_4);
// main() runs in its own thread in the OS
int main() {
SwitchInput.mode(PullDown);
FloaterInput.mode(PullDown);
while (true) {
Solonoid = !Solonoid;
wait(10.0);
}
/*
while (true) {
if(WakeUp)
{
led1 = 1;
printf("High");
}
else
{
led1 = 0;
printf("Low");
wait(0.5);
}
}*/
}
