]> git.donarmstrong.com Git - qmk_firmware.git/blob - tool/mbed/mbed-sdk/libraries/tests/benchmarks/mbed/main.cpp
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[qmk_firmware.git] / tool / mbed / mbed-sdk / libraries / tests / benchmarks / mbed / main.cpp
1 #include "mbed.h"
2
3 DigitalOut out(p5);
4 #if defined(TARGET_LPC1114)
5 AnalogIn in(p20);
6 #else
7 AnalogIn in(p19);
8 #endif
9
10 int main() {
11     while(1) {
12         if(in > 0.5) {
13             out = !out;
14         }
15     }
16 }