It should work with default include
#include <NMEA2000_CAN.h>
without any modification.
Anyway you may have rx/tx connected wrong or tranceiver problem.
Hi again Timo!
I still have problems running the DataDisplay2 example, but also the TemperatureMonitor fails.
TemperatureMonitorIt starts OK, but after a while errors appears. May this is nothing to worry about...
See "TemperatureMonitor.txt"
DataDisplay2I am using the example taken from your latest update (2021-02-06) of NMEA2000-master, without any modifications. The output is given in "DataDisplay2.txt".
The protocol analyzer shows nothing on all three CAN controllers. (See "Screenshot from 2021-02-07 13-49-57.png").
I also have photos of my breadboard, but unfortunately they are too large to be included.
The pins I use are:
pin 23 (rx) pin 22 (tx) CAN 1
pin 0 (rx) pin 1 (tx) CAN 2
pin 30 (rx) pin 31 (tx) CAN 3.
Which CAN controller is the output to be expected?
How do you change this, if needed.
Finally, is the documentation given below obsolete, ie have you integrated into the NMAE2000-master?
Library is under tests. I prefer to start to use it also for Teensy 3.1/3.2/3.5/3.6 for
non critical devices in testing purposes so that possible errors will be catched. Final
goal is to use this as default library for all Teensy boards.
See https://github.com/ttlappalainen/NMEA2000.
## Usage
#include <NMEA2000.h>
#include <N2kMessages.h>
#include <NMEA2000_Teensyx.h>
tNMEA2000_Teensyx NMEA2000;
void setup() {
NMEA2000.Open();
}
void loop() {
NMEA2000.ParseMessages();
}
See the [NMEA2000/Examples](https://github.com/ttlappalainen/NMEA2000/tree/master/Examples) for more examples. They are all compatible with this library.
Regards,
Göran
