Happy New Year!
Using the DPS310 sensor, the Adafruit documentation leads me to the following Git repository for the associated library: GitHub - adafruit/Adafruit_DPS310: Adafruit DPS310 sensor driver library for Arduino. The instructions in GitHub are:
To install, use the Arduino Library Manager and search for “Adafruit DPS310” and install the library.
I have installed the Arduino Library Manager and subsequently installed that DPS310 library. Using the Geany IDE, however, I keep running into compile issues for every ‘.h’ file included. Each time I get a compiler error of “No such file or directory”, I search for the relevant ‘.h’ file causing the error, and then add the library path to my compile library path. So far I’ve added about 6 different directories and I’m still not able to compile.
This therefore prompts the question: how should I actually best go about this ‘properly’? I guess I would have expected that I could somehow easily call a single Arduino library repository in order to compile my code?
Thanks in advance,
Hey @Kirk, have you been able to compile a basic Hello World script in Geany - without any 3rd party libraries?
I came across this guide for setting up Geany for Arduino - but it’s a bit light on the details for library management.
Alternatively, if you’re just trying to break away from using the Arduino IDE (it is quite basic and restrictive) perhaps consider using Geany as an external text editor only, and compiling using Arduino. See this guide which sets Arduino up for using an external text editor.
In this way you can use the text-editing and workflow benefits of your preferred editor, but avoid the hassle of toolchain setup.
Really appreciate your feedback and research @Michael. I have already completed some Hello World type scripts in Geany, so the intent with this one was to really begin to automate the sensor measurements.
In fact, I did have my first script totally automated and running using CircuitPython, but that’s when I realised that Arduino had not supported the Altitude sensor function in Python (it was only recently updated in the C libraries). Secondly, from what I can see, the second sensor that I now want to connect seems to only have C libraries, thus the thought to move from Python to C++ for all my programming.
Thanks again Michael.