大季 矢花
/
MB2019_main_11_15_ok
aa
Diff: Communication/RS485/RS485.cpp
- Revision:
- 31:17be2176063f
- Parent:
- 30:8f092276b2ba
- Child:
- 41:99a1158f3eca
--- a/Communication/RS485/RS485.cpp Tue Oct 22 02:03:26 2019 +0000 +++ b/Communication/RS485/RS485.cpp Tue Oct 22 02:04:30 2019 +0000 @@ -9,8 +9,8 @@ DigitalOut selectBitT(SELECTBIT_T_PIN); // DigitalOut selectBitR(SELECTBIT_R_PIN); -// Serial RS485Uart(RS485UART_TX, RS485UART_RX); - Serial RS485Uart(USBTX, USBRX); + Serial RS485Uart(RS485UART_TX, RS485UART_RX); +// Serial RS485Uart(USBTX, USBRX); Serial RS485Line(RS485LINE_TX, RS485LINE_RX); bool readFase = 0; @@ -22,7 +22,7 @@ void RS485::Initialize() { selectBitT = 1; //送信固定 // selectBitR = 0; //受信固定 - RS485Uart.baud(9600); // 38400 + RS485Uart.baud(38400); // 38400 RS485Uart.attach(Transmit, Serial::TxIrq); //送信割り込み RS485Line.baud(9600); RS485Line.attach(Recieve, Serial::RxIrq); //受信割り込み