How adafruit/adafruit_nau7802 works
Project type and purpose
• This is an Arduino “driver” library for the NAU7802 I2C-based 24-bit ADC sensor.
• Its purpose is to provide a hardware-abstraction layer (HAL) and easy-to-use C++ APIs so that any Arduino sketch can communicate with the Adafruit NAU7802 breakout via I2C.
File structure
• Top-level source files:
• Adafruit_NAU7802.h / .cpp – the core C++ driver
• library.properties – metadata for the Arduino Library Manager
• examples/nau7802_test.ino – a sample sketch demonstrating usage
• Configuration & CI:
• .github/workflows/githubci.yml – GitHub Actions for building/testing on different Arduino cores
• .gitignore, code-of-conduct.md, license.txt, README.md
• Assets: board image under assets/ used in the README.
README for additional insights
• Describes the hardware (Adafruit breakout #4538), communication protocol (I2C), and installation via Arduino Library Manager.
Elements
• Software-layers (rectangles in blue)
• Hardware components (rectangles in green)
• CI/docs (rectangles in gray)