Skip to content
Snippets Groups Projects
Unverified Commit e2d25d68 authored by Benji's avatar Benji Committed by GitHub
Browse files

Update mcp3008.py

parent b3639596
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,8 @@ class Sensor(GenericSensor):
Implementation of MCP3008 ADC sensor.
"""
def __init__(self, config):
import Adafruit_GPIO.SPI as SPI
import Adafruit_MCP3008
import Adafruit_GPIO.SPI as SPI
"""init the mcp on SPI CE0"""
SPI_PORT = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment