mirror of https://github.com/ARMmbed/mbed-os.git
17 lines
202 B
C++
17 lines
202 B
C++
|
#include "test_env.h"
|
||
|
|
||
|
InterruptIn wkp(p14);
|
||
|
|
||
|
void flip() {
|
||
|
printf("button pressed\n");
|
||
|
}
|
||
|
|
||
|
int main() {
|
||
|
wkp.rise(&flip);
|
||
|
|
||
|
while (true) {
|
||
|
// sleep();
|
||
|
deepsleep();
|
||
|
}
|
||
|
}
|