Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dawinaj/mcp4xxx

MCP4xxx driver for ESP32
https://github.com/dawinaj/mcp4xxx

cpp dac digital-to-analog-converter driver esp32 hal mcp4801 mcp4802 mcp4811 mcp4812 mcp4821 mcp4822 mcp4901 mcp4902 mcp4911 mcp4912 mcp4921 mcp4922 voltage

Last synced: 7 days ago
JSON representation

MCP4xxx driver for ESP32

Awesome Lists containing this project

README

        

# ESP32 MCP4xxx DAC driver/library

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

Currently supported are:
- MCP4801, MCP4811, MCP4821
- MCP4802, MCP4812, MCP4822
- MCP4901, MCP4911, MCP4921
- MCP4902, MCP4912, MCP4922
- other versions?

## 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 `MCP4xxx.h` in your code.
- Create a custom class or use one of the predefined ones.
- Create its object.
- Done!