Shinichiro Nakamura
/
ChoroQ_TestProgram
A test program for ChoroQ library.
Diff: main.cpp
- Revision:
- 0:e9d9b1128e77
- Child:
- 1:adcec9a96e89
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Sep 19 23:51:27 2010 +0000 @@ -0,0 +1,27 @@ +/** + * A test program for CHORO Q HYBRID control class (Version 0.0.1) + * + * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems) + * http://shinta.main.jp/ + */ +#include "mbed.h" +#include "ChoroQ.h" + +ChoroQ cq(p21); + +/** + * Entry point. + */ +int main() { + while (1) { + for (int i = 0; i < 10; i++) { + cq.execute(ChoroQ::ChA, ChoroQ::Up); + } + wait_ms(2000); + + for (int i = 0; i < 10; i++) { + cq.execute(ChoroQ::ChA, ChoroQ::Down); + } + wait_ms(2000); + } +}