Skip to content

Commit

Permalink
Moved from Sketchbook to library folder. Rearranged files for library.
Browse files Browse the repository at this point in the history
  • Loading branch information
CMB27 committed Feb 7, 2022
1 parent df4e652 commit 23e9ee7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ModbusRTUSlave.ino → examples/ModbusRTUSlave.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "ModbusRTUSlave.h"

const byte buttonPin = 12, led1Pin = 11, led2Pin = 13, voltagePin = A0;
const byte buttonPin = 12, led1Pin = 13, led2Pin = 11, voltagePin = A0;

const word bufSize = 256, numCoils = 1, numDiscreteInputs = 1, numHoldingRegisters = 1, numInputRegisters = 1;
const byte id = 1;
Expand Down
8 changes: 8 additions & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ModbusRTUSlave KEYWORD1
configureCoils KEYWORD2
configureDiscreteInputs KEYWORD2
configureHoldingRegisters KEYWORD2
configureInputRegisters KEYWORD2
begin KEYWORD2
poll KEYWORD2

10 changes: 10 additions & 0 deletions library.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name=ModbusRTUSlave
version=0.0.0
author=C. M. Bulliner
maintainer=C. M. Bulliner
sentence=Allows communication with Modbus RTU master devices (HMIs, PLCs, etc.).
paragraph=This library enables an Arduino board to be a Modbus RTU slave/server device, able to communicate with Modbus RTU master/client devices. This library will work with any Stream object such as HardwareSerial or SoftwareSerial, and has provision for use with RS485; a driver enable pin can be set up. This library is like a kit; some assembly is required, but this allows for a lot of customization.
category=Communication
url=*
architecture=*

File renamed without changes.
File renamed without changes.

0 comments on commit 23e9ee7

Please sign in to comment.