bareboat-necessities / bbn-nmea200-m5atom

N2K esp32 Arduino sketches for M5Atom with can CA-IS3050G based on https://github.com/ttlappalainen/ https://github.com/hatlabs/ https://github.com/AK-Homberger works
GNU General Public License v3.0
5 stars 0 forks source link

Which is the primary .ino to compile? #9

Open sandman507th opened 6 months ago

sandman507th commented 6 months ago

Hello, Thank you for creating this project. I am trying to get it compiled and installed on the specified hardware. Which is the primary .ino to compile? Using Arduino IDE, I tried to verify "bbn-nmea2000-usb-gw-m5atom.ino" but it fails with:

Compilation error: ActisenseReader.h: No such file or directory

Is there something else I need to download and compile first? Also, I am not sure how to compile and upload sketches for the daughter devices (The sensor and the CAN bus device). Just plug them all in and compile/upload one at a time? Any help would be appreciated.

mgrouch commented 6 months ago

Thanks. I forgot to commit GitHub workflow for this project. There are couple other project next to it which have workflows. You could see dependencies from there

mgrouch commented 6 months ago

Actually no. I didn’t forget it.

It’s there

https://github.com/bareboat-necessities/bbn-nmea200-m5atom/blob/main/.github/workflows/build.yaml

mgrouch commented 6 months ago

Here you can read more about how to use Arduino

https://github.com/bareboat-necessities/bbn-m5stack-tough

you can skip LVGL related steps

sandman507th commented 6 months ago

OK that is helpful, thanks. I got the stuff under the "Required Libraries" section installed (minus LVGL). The .yaml indicates I need this too: https://github.com/ttlappalainen/NMEA2000 (and this is apparently where the missing "ActisenseReader.h" comes from. So, in Arduino IDE, I used Sketch -> Include Library -> "Add .ZIP library" Now the Verify of "bbn-nmea2000-usb-gw-m5atom.ino" seems to complete without error (But for a previous LED test sketch, according to the output?!?) .

The "tough" instructions state to compile/upload "bbn-m5stack-tough.ino". But that is not what I want for the "bbn-nmea200-m5atom" project, right?

Will uploading "bbn-nmea2000-usb-gw-m5atom.ino" pull in the other two sketches for the attached sensor and CAN bus? Sorry, I know a little about computers but am pretty green with Arduino.