Made proper iris firmware, minus voltage telemetry. 24V is working, just need to finish the rest.

This commit is contained in:
2018-02-21 00:17:31 -08:00
parent 3e2c07cb5c
commit 3e4d85c9a1
2 changed files with 115 additions and 19 deletions

View File

@@ -1,8 +1,7 @@
////////// Includes //////////
// Define the arduino serial port used for modbus here
#include <ModbusRtu.h>
////////// Hardware / Date Enumerations //////////
////////// Hardware / Data Enumerations //////////
enum HARDWARE {
RS485_EN = 2,
RS485_RX = 7,
@@ -56,8 +55,6 @@ void setup() {
num_modbus_registers = sizeof(modbus_data) / sizeof(modbus_data[0]);
slave.begin(2000000); // baud-rate at 19200
slave.setTimeOut(150);
Serial.begin(9600);
}
void loop() {