Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 853 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 853 Bytes

ESP32 MCP3x0x ADC driver/library

This is a single-file header-only C++ style library (see files in main/include/) for driving the popular MCP3xxx family of MicroChip's analog-digital converters from an ESP32 microcontroller.

Currently supported are:

  • MCP3002, MCP3004, MCP3008
  • MCP3202, MCP3204, MCP3208
  • MCP3304, MCP3308
  • other versions?

It is based on three other libraries:

Installation & usage

See example in main/main.cpp.

  • Move the files from main/include/ to your include directory.
  • Add driver to your idf_component_register REQUIRES.
  • #include the MCP3x0x.h in your code.
  • Create a custom class or use one of the predefined ones.
  • Create its object.
  • Done!