
I was trying out version teensy sketch 5.1 and ran into: C:\Users\assis\Desktop\5.1 AR4\AR4_teensy41_sketch_v5.1\AR4_teensy41_sketch_v5.1.ino:69:10: fatal error: ModbusMaster.h: No such file or directory
69 | #include <ModbusMaster.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: ModbusMaster.h: No such file or directory
Got it, Thank you @goto_2004@Chris Annin
@goto_2004 is correct. If you navigate to Tools / Manage Libraries and install ModbusMaster you will be able to install the sketch. I have also added details about this in the manual in the Modbus chapter. Let me know if you have any questions.
You first need to install the corresponding library files for your Arduino.
ModbusMaster.h