switch serial pins as i dont want to change my pcb again :p
This commit is contained in:
parent
7ae7e6d8e3
commit
0d7b5527c1
2 changed files with 7 additions and 7 deletions
|
@ -48,18 +48,18 @@
|
||||||
MAX485 => Arduino
|
MAX485 => Arduino
|
||||||
GND => GND
|
GND => GND
|
||||||
VCC => 5V
|
VCC => 5V
|
||||||
DI => 11
|
DI => 9
|
||||||
DE => 3
|
DE => 3
|
||||||
RE => 2
|
RE => 2
|
||||||
RO => 10
|
RO => 8
|
||||||
|
|
||||||
MAX485 Nr 2 =>Arduino
|
MAX485 Nr 2 =>Arduino
|
||||||
GND => GND
|
GND => GND
|
||||||
VCC => 5V
|
VCC => 5V
|
||||||
DI => 9
|
DI => 11
|
||||||
DE => 5
|
DE => 5
|
||||||
RE => 4
|
RE => 4
|
||||||
RO => 8
|
RO => 10
|
||||||
|
|
||||||
TRACER => MAX485
|
TRACER => MAX485
|
||||||
blue => B
|
blue => B
|
||||||
|
@ -80,8 +80,8 @@
|
||||||
bool twoController = false;
|
bool twoController = false;
|
||||||
int twoControllerBoolPin = 7;
|
int twoControllerBoolPin = 7;
|
||||||
|
|
||||||
SoftwareSerial myserial(10, 11); // RX, TX
|
SoftwareSerial myserial(8, 9); // RX, TX
|
||||||
SoftwareSerial myserial2(8, 9); // RX, TX
|
SoftwareSerial myserial2(10, 11); // RX, TX
|
||||||
|
|
||||||
|
|
||||||
#define MAX485_DE 3
|
#define MAX485_DE 3
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import serial
|
import serial
|
||||||
import time
|
import time
|
||||||
|
|
||||||
ser = serial.Serial('/dev/ttyACM0', baudrate = 115200, timeout = 6)
|
ser = serial.Serial('/dev/ttyUSB0', baudrate = 115200, timeout = 6)
|
||||||
outfile = "epever-tracer.json"
|
outfile = "epever-tracer.json"
|
||||||
#time.sleep(3)
|
#time.sleep(3)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue