Skip to main content

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


Download files

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

Source Distribution

max7301-1.0.3.tar.gz (14.6 kB view details)

Uploaded Source

File details

Details for the file max7301-1.0.3.tar.gz.

File metadata

  • Download URL: max7301-1.0.3.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for max7301-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9ce594d34313cca28a48c5c46709714255395a518a4fdf98dd948be457d87445
MD5 20f9a8453574568696e389e7a6d433a9
BLAKE2b-256 3faaaa5488763067fd4a147292c1bb11711fb8d92cfd447653284aa9ee5083f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page