Skip to content

Andon-A/CircuitPython_MCP3x21

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircuitPython module for the MCP3021 and MCP3221 ADCs

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Usage Example

See examples/mcp3x21_simple.py for a complete demo. The MCP3021 and MCP3221 function identically as long as the correct class is used.

import board
import cp_mcp3x21
import time

i2c = board.I2C()
mcp = cp_mcp3x21.MCP3021(i2c)

while True:
	print(mcp.value)
	time.sleep(0.5)

Contributing

Contributions are welcome! This module uses Adafruit's code of Conduct, so please read this before contributing to help this project stay welcoming.

About

A CircuitPython module for the MCP3021 and MCP3221

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages