Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I am trying to continually check if a pin turns high for 0.5 seconds. If it remains low for all 0.5 seconds, I want to program to progress to the next step. So far I have
DigitalIn enable1(p5); DigitalIn enable2(p6); DigitalOut led(LED1); DigitalOut led2(LED2);
int main() { while(1) { if(enable1) {