Files
exixe/circuitpython_library
Jonathan Axford 85ff258857 Adding CircuitPython support
This commit includes modified versions of the provided RPi Python library and examples, tested using the Feather M4 Express
2019-03-18 17:27:32 -06:00
..
2019-03-18 17:27:32 -06:00
2019-03-18 17:27:32 -06:00

exixe Raspberry Pi/Python library

This is a simple Python library for exixe modules intended to be used on Adafruit CircuitPython devices.

Requirements

Before you use this library, you should familiarize yourself with CircuitPython by reading through the following guides on the Adafruit Learning System. They will give you a good understanding of how CircuitPython works, and differs from normal Python. They will also help you set up an appropriate Dev environment including the libraries you'll need, and help you make your your CircuitPython compatible board is set up properly https://learn.adafruit.com/welcome-to-circuitpython https://learn.adafruit.com/circuitpython-essentials/circuitpython-essentials https://learn.adafruit.com/circuitpython-basics-i2c-and-spi/spi-devices

Usage

The code has some good documentation that I dont want to repeat but this will be a general overview on how to use the library.

  1. Create SPI initialization

spi = busio.SPI(board.SCK, board.MOSI)

  1. Identify CS pin to control the individual exixe

cs_pin = board.D4

  1. Create exixe object

exixe_1 = Exixe(cs_pin,spi)

  1. Control object

exixe_1.set_digit(5)
exixe_1.set_led(127,0,0) # turn led to red