Hi Stu,
If this is your first foray into the world of Arduino, you will find it much easier if you use one of our standard boards to begin with and build up to developing code for OpenLog Artemis. Most of our boards have Qwiic connectors, some have microSD sockets for data logging.
However, if you are up for a challenge, here’s a summary of what you need to do:
We are in the process of adding some new examples for OLA which show, for example, how to log GNSS data directly to the microSD card. You won’t find them in the regular (“master”) branch of the code yet, they are in the “release_candidate” branch (which means they work and have been tested, but they have not been released yet). You can find those new examples here:
https://github.com/sparkfun/OpenLog_Art … 20Sketches
The GNSS_Data_Logging example contains the code you need to get your Micro OLED up and running. But it contains a lot of extra code dedicated to logging GNSS data too. The essential bits for you will be:
Set up the Qwiic Port (the port will be called “qwiic” not “Wire”, you will need to pass the name “qwiic” to the microOLED begin function):
https://github.com/sparkfun/OpenLog_Art … no#L57-L59
You also need to call beginQwiic which in turn will call qwiicPowerOn to enable the 3.3V power to the Qwiic bus:
https://github.com/sparkfun/OpenLog_Art … #L457-L463
https://github.com/sparkfun/OpenLog_Art … #L416-L433
You will need to include some of the pin definitions too, PIN_QWIIC_POWER being the main one:
https://github.com/sparkfun/OpenLog_Art … ng.ino#L81
With those changes and additions, the Micro OLED will work on OLA. Straight forward, but a big ask for your first Arduino project…
Best wishes,
Paul