Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@0:4682992b55fa, 2014-01-30 (annotated)
- Committer:
- nekoyyy
- Date:
- Thu Jan 30 05:24:10 2014 +0000
- Revision:
- 0:4682992b55fa
????mbed
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| nekoyyy | 0:4682992b55fa | 1 | |
| nekoyyy | 0:4682992b55fa | 2 | #include "ARM.h" |
| nekoyyy | 0:4682992b55fa | 3 | |
| nekoyyy | 0:4682992b55fa | 4 | int main(){ |
| nekoyyy | 0:4682992b55fa | 5 | Thread t1(ATARI); //atari hantei 1go-ki |
| nekoyyy | 0:4682992b55fa | 6 | Thread t2(HANTEI); //moji hantei |
| nekoyyy | 0:4682992b55fa | 7 | Thread t3(MEN); //men 1go-ki |
| nekoyyy | 0:4682992b55fa | 8 | Thread t4(MEN2); //men 2go-ki |
| nekoyyy | 0:4682992b55fa | 9 | Thread t5(BOU); //bougyo 1go-ki |
| nekoyyy | 0:4682992b55fa | 10 | Thread t6(BOU2); //bougyo 2go-ki |
| nekoyyy | 0:4682992b55fa | 11 | Thread t7(DOU); //dou 1go-ki |
| nekoyyy | 0:4682992b55fa | 12 | Thread t8(DOU2); //dou 2go-ki |
| nekoyyy | 0:4682992b55fa | 13 | Thread t9(TUKI); //tuki 1go-ki |
| nekoyyy | 0:4682992b55fa | 14 | Thread t10(TUKI2); //tuki 2go-ki |
| nekoyyy | 0:4682992b55fa | 15 | Thread t11(HIROSE); //auto mode //thread limit |
| nekoyyy | 0:4682992b55fa | 16 | |
| nekoyyy | 0:4682992b55fa | 17 | pc.printf("start\n"); |
| nekoyyy | 0:4682992b55fa | 18 | while(1){ |
| nekoyyy | 0:4682992b55fa | 19 | switch(shin){ |
| nekoyyy | 0:4682992b55fa | 20 | case'n': |
| nekoyyy | 0:4682992b55fa | 21 | Shinpan=1; |
| nekoyyy | 0:4682992b55fa | 22 | wait(0.0015); |
| nekoyyy | 0:4682992b55fa | 23 | Shinpan=0; |
| nekoyyy | 0:4682992b55fa | 24 | wait(0.0185); |
| nekoyyy | 0:4682992b55fa | 25 | break; |
| nekoyyy | 0:4682992b55fa | 26 | |
| nekoyyy | 0:4682992b55fa | 27 | case'a': |
| nekoyyy | 0:4682992b55fa | 28 | Shinpan=1; |
| nekoyyy | 0:4682992b55fa | 29 | wait(0.0021); |
| nekoyyy | 0:4682992b55fa | 30 | Shinpan=0; |
| nekoyyy | 0:4682992b55fa | 31 | wait(0.0179); |
| nekoyyy | 0:4682992b55fa | 32 | break; |
| nekoyyy | 0:4682992b55fa | 33 | |
| nekoyyy | 0:4682992b55fa | 34 | case'b': |
| nekoyyy | 0:4682992b55fa | 35 | Shinpan=1; |
| nekoyyy | 0:4682992b55fa | 36 | wait(0.0009); |
| nekoyyy | 0:4682992b55fa | 37 | Shinpan=0; |
| nekoyyy | 0:4682992b55fa | 38 | wait(0.0191); |
| nekoyyy | 0:4682992b55fa | 39 | break; |
| nekoyyy | 0:4682992b55fa | 40 | } |
| nekoyyy | 0:4682992b55fa | 41 | } |
| nekoyyy | 0:4682992b55fa | 42 | } |