Arduino library for Microchip MCP346xR / MCP356xR 16/24-bit SAR analog-to-digital converters over SPI.
- MCP3461R / MCP3462R / MCP3464R (16-bit)
- MCP3561R / MCP3562R / MCP3564R (24-bit)
Install PlatformIO, then clone the library:
git clone https://github.com/nerdyscout/Arduino_MCP3x6x_Library.git
cd Arduino_MCP3x6x_LibraryBuild all examples for all environments:
./examples/build.sh
Build specific environments:
./examples/build.sh ESP32 ATMEGA328P SAMD21G18A
Build only one example:
./examples/build.sh MCP3564_DMA
Upload a single example to your board:
./examples/upload.sh MCP3564_DMA ATMEGA328P
Run the native unit tests (ArduinoFake + Unity, no hardware required):
pio test -e nativeBuild and upload the hardware smoke test to a physical board:
pio test -e ATMEGA328PRun hardware-in-the-loop SPI communication verification:
pio run -t test_hil_spi -e ATMEGA328P
pcb/README.md— PCB fabrication (KiBot)examples/README.md— Examples build and uploadtest/README.md— Native, hardware, and HIL testingdocs/— Doxygen API reference (doxygen Doxyfile)
See pcb/README.md, examples/README.md, and test/README.md for domain-specific guides. Submit changes via pull request against develop.