Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In the Makefile change the line:
- cp $(BINARIES) $(SCRIPTS) $(BINDIR)
- to
- cp $(BINARIES) $(BINDIR)
- # Enable CTS + RTS on P5 header for onboard serial
- /usr/local/bin/gpio_setfunc 31 ALT3
- /usr/local/bin/gpio_setfunc 30 ALT3
- temps = client.read_input_registers(30001, 4, unit=0x0a) # Address, count, slave address
- print temps.registers
- coil = client.read_coils(10001, 8, unit=0x0a) # Address, count, slave address
- print coil.bits
- port="/dev/ttyUSB0"
- to
- port="/dev/ttyAMA0"
Add Comment
Please, Sign In to add comment