arduino-libraries / ArduinoModbus

252 stars 120 forks source link

PIN 2 not working like INPUT #21

Closed pruwait closed 4 years ago

pruwait commented 4 years ago

Arduino Mega 2560 pinMode(2, INPUT_PULLUP);

after ModbusRTUServer.begin(1, 9600);

digital input 2 not working.

pruwait commented 4 years ago

its my code error