README.md
Source code
# Apis_Library
[](https://doi.org/10.5281/zenodo.4572371)
Arduino library for the [Apis](https://github.com/NorthernWidget/Project-Apis) LiDAR rangefinder board. Apis manages power supply, firmware watchdog, and I2C communication for a LiDAR Lite unit, and reads a MEMS accelerometer to report pitch and roll — useful when the sensor is not mounted level.
**Installation:** included in [NorthernWidget-libraries](https://github.com/NorthernWidget/NorthernWidget-libraries). Also available via the Arduino Library Manager.
```cpp
#include <Apis.h>
Apis rangefinder;
void setup() {
Serial.begin(9600);
rangefinder.begin();
Serial.println(rangefinder.getHeader());
}
void loop() {
Serial.println(rangefinder.getString());
delay(1000);
}
See examples/ for a complete demo and Margay logger integration.
Full API reference: https://docs.northernwidget.com/Apis_Library/ ```
Updated on 2026-05-14 at 20:14:00 +0000