Shinichiro Nakamura
/
ChoroQ_TestProgram
A test program for ChoroQ library.
Revision 2:2acbc2d1a208, committed 2010-10-13
- Comitter:
- shintamainjp
- Date:
- Wed Oct 13 10:47:41 2010 +0000
- Parent:
- 1:adcec9a96e89
- Commit message:
- First version.
Changed in this revision
diff -r adcec9a96e89 -r 2acbc2d1a208 ChoroQ.lib --- a/ChoroQ.lib Mon Sep 20 00:06:36 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/shintamainjp/code/ChoroQ/#97921a2adf78
diff -r adcec9a96e89 -r 2acbc2d1a208 main.cpp --- a/main.cpp Mon Sep 20 00:06:36 2010 +0000 +++ b/main.cpp Wed Oct 13 10:47:41 2010 +0000 @@ -13,12 +13,14 @@ * Entry point. */ int main() { + ChoroQ::Channel ch = ChoroQ::ChA; + while (1) { /* * get forward. */ for (int i = 0; i < 10; i++) { - cq.execute(ChoroQ::ChA, ChoroQ::Up); + cq.execute(ch, ChoroQ::Up); } wait_ms(2000); @@ -26,7 +28,7 @@ * go astern. */ for (int i = 0; i < 10; i++) { - cq.execute(ChoroQ::ChA, ChoroQ::Down); + cq.execute(ch, ChoroQ::Down); } wait_ms(2000); }
diff -r adcec9a96e89 -r 2acbc2d1a208 mylib/ChoroQ.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mylib/ChoroQ.lib Wed Oct 13 10:47:41 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/shintamainjp/code/ChoroQ/#97921a2adf78