Shinichiro Nakamura
/
ChoroQ_TestProgram
A test program for ChoroQ library.
Revision 0:e9d9b1128e77, committed 2010-09-19
- Comitter:
- shintamainjp
- Date:
- Sun Sep 19 23:51:27 2010 +0000
- Child:
- 1:adcec9a96e89
- Commit message:
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ChoroQ.lib Sun Sep 19 23:51:27 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/shintamainjp/code/ChoroQ/#97921a2adf78
--- /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); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Sep 19 23:51:27 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e