https://github.com/endail/mcp3008
Raspberry Pi C++ API for MCP3008 or MCP3004
https://github.com/endail/mcp3008
adc cpp lgpio mcp3004 mcp3008 raspberry-pi
Last synced: 28 days ago
JSON representation
Raspberry Pi C++ API for MCP3008 or MCP3004
- Host: GitHub
- URL: https://github.com/endail/mcp3008
- Owner: endail
- License: mit
- Created: 2021-09-26T04:31:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-31T12:44:22.000Z (over 3 years ago)
- Last Synced: 2025-05-18T21:06:17.266Z (about 2 months ago)
- Topics: adc, cpp, lgpio, mcp3004, mcp3008, raspberry-pi
- Language: C++
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# MCP3008
[](https://github.com/endail/MCP3008/actions/workflows/buildcheck.yml) [](https://github.com/endail/MCP3008/actions/workflows/cppcheck.yml)
Raspberry Pi C++ API for MCP3008 or MCP3004.
- Use with Raspberry Pi
- Requires [lgpio](http://abyz.me.uk/lg/index.html)
- Code tested inside [virtual Raspberry Pi Zero/3/4 environments](.github/workflows/buildcheck.yml) on GitHub```cpp
using namespace MCP3008Lib;
MCP3008 adc;
adc.connect();
adc.read(0); //read mcp300x channel 0
```