腕のプログラムです.
Dependencies: mbed TextLCD MultiSerial Pswitch
Diff: main.cpp
- Revision:
- 10:557c74f2bdee
- Parent:
- 9:8543cb951a70
- Child:
- 11:1ee158b83f3f
--- a/main.cpp Thu Oct 16 11:02:39 2014 +0000 +++ b/main.cpp Thu Oct 16 11:25:17 2014 +0000 @@ -58,15 +58,15 @@ int main(void) { - leg_mbed.start_read(); - leg_mbed.read_data(data,KEYCODE); + //leg_mbed.start_read(); + //leg_mbed.read_data(data,KEYCODE); servo_mbed.start_write(); servo_mbed.write_data(INdata,KEYCODE); - display_LED(1); + //display_LED(1); - leg_mbed.check_rx_wait(); + //leg_mbed.check_rx_wait(); //wait(0.5); @@ -76,10 +76,15 @@ while(1) { + + //NVIC_DisableIRQ(UART0_IRQn);//通信割り込み禁止 + //NVIC_DisableIRQ(UART1_IRQn);//通信割り込み禁止 + //NVIC_DisableIRQ(UART2_IRQn);//通信割り込み禁止 + //NVIC_DisableIRQ(UART3_IRQn);//通信割り込み禁止 //leg_mbed.read_data(data,KEYCODE); - INdata[0] = data[0]; - //INdata[0] = ~mt; + //INdata[0] = data[0]; + INdata[0] = ~mt; //if(!TurnSW[N]) IO[0]=ON; //if(!TurnSW[E]) IO[1]=ON;