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

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

Awesome Lists containing this project

README

        

# MCP3008

[![Build on Raspberry Pi](https://github.com/endail/MCP3008/actions/workflows/buildcheck.yml/badge.svg)](https://github.com/endail/MCP3008/actions/workflows/buildcheck.yml) [![cppcheck](https://github.com/endail/MCP3008/actions/workflows/cppcheck.yml/badge.svg)](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
```