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.
Dependencies: mbed
Fork of Nucleo_PS3_Jikken_XBEE by
Revision 36:ffc35cee92d3, committed 2015-11-18
- Comitter:
- nodoame
- Date:
- Wed Nov 18 09:23:23 2015 +0000
- Parent:
- 35:c84d6d9bb205
- Child:
- 37:42a4b925ca9c
- Commit message:
- 20151118; ??????
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Nov 16 11:32:45 2015 +0000 +++ b/main.cpp Wed Nov 18 09:23:23 2015 +0000 @@ -41,7 +41,8 @@ DigitalOut myled(LED1);// ,test1(PB_7) ,test2(PA_15) ,test3(PC_13) ,test4(PC_12); PwmOut Blue(D5),Green(D4),Red(D3); //PwmOut kRed(A3),kBlue(A1),kGreen(A0); -PwmOut kRed(A3),kBlue(PA_15),kGreen(PB_7); +PwmOut kRed(A3),kBlue(PA_15); +DigitalOut kGreen(PB_2); #define N 7 char DATA[N]; void rotate(double setAngle); @@ -233,7 +234,7 @@ Dev.attach(num,Serial::RxIrq);//受信割り込み設定 Green=0;Blue=0;Red=0; double gValue=0,bValue=0,rValue=0; - DigitalOut l(PB_2); + DigitalOut l(PB_7); int sqf=0; double deg=32; int val; @@ -255,11 +256,13 @@ if(l){ //pc.printf("L\r\n"); pushF=true; - kRed=shotToDenziben(airReg,1,1,airAddr2); - wait(0.2); kRed=shotToDenziben(airReg,1,1,airAddr); wait(shotWait); kRed=shotToDenziben(airReg,0,1,airAddr); + wait(0.2); + kRed=shotToDenziben(airReg,1,1,airAddr2); + /*wait(0.1); + kRed=shotToDenziben(airReg,0,1,airAddr2);*/ kRed=0; }