Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

MAX7301 driver

Project description

max7301
==========

A python library to control a MAX7301.
It uses spidev to talk to the chip.

# Installation on Raspberry Pi
1. sudo pip install max7301
2. sudo py-max7301-rpi-spi-setup
3. reboot
4. PROFIT

# Example

```
import max7301
import time

device = max7301.MAX7301()

device.set_pin_as_output(30)
device.set_pin_as_input(31, pullup = False)

while 1:
device.set_pin(30, 1)
time.sleep(0.1)
print "Pin 31 =", device.get_pin(31)
device.set_pin(30, 0)
time.sleep(0.1)
print "Pin 31 =", device.get_pin(31)
```

Project details


Release history Release notifications

This version
History Node

1.0.3

History Node

1.0.1

History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
max7301-1.0.3.tar.gz (14.6 kB) Copy SHA256 hash SHA256 Source None Apr 10, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page