Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dawinaj/mcp4xxx
- Owner: dawinaj
- License: mit
- Created: 2024-06-10T14:28:30.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-09-15T00:00:28.000Z (2 months ago)
- Last Synced: 2024-09-16T06:26:44.612Z (about 2 months ago)
- Topics: cpp, dac, digital-to-analog-converter, driver, esp32, hal, mcp4801, mcp4802, mcp4811, mcp4812, mcp4821, mcp4822, mcp4901, mcp4902, mcp4911, mcp4912, mcp4921, mcp4922, voltage
- Language: C++
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!