Display-o-Tron 3000 Driver
Project description
dot3k
=====
Hardware Requirements
---------------------
You'll need to enable spi.
sudo raspi-config
Then head into Advanced Options -> SPI -> Yes.
And i2c.
sudo vim /etc/modprobe.d/raspi-blacklist.conf
And comment out ( place a # before ):
blacklist i2c-bcm2708
Reboot to make these changes take effect.
Software Requirements
---------------------
Next you should install python-smbus and python-dev via apt:
sudo apt-get install python-smbus python-dev
And pip, if you don't have it:
sudo apt-get install python-pip
Then install st7036 and sn3218 using pip:
sudo pip install st7036 sn3218
Usage
=====
LCD
---
import dot3k.lcd as lcd
lcd.write('Hello World!')
Backlight
---------
import dot3k.backlight as backlight
backlight.sweep(0.5)
backlight.update()
Joystick
--------
import dot3k.joystick as joystick
@joystick.on(joystick.UP)
def handle_joystick_up(pin):
print("Joystick up!")
Changelog
---------
1.1
---
* Fix for joystick on Rev 1 Pi
1.0dev
------
* Initial Release
=====
Hardware Requirements
---------------------
You'll need to enable spi.
sudo raspi-config
Then head into Advanced Options -> SPI -> Yes.
And i2c.
sudo vim /etc/modprobe.d/raspi-blacklist.conf
And comment out ( place a # before ):
blacklist i2c-bcm2708
Reboot to make these changes take effect.
Software Requirements
---------------------
Next you should install python-smbus and python-dev via apt:
sudo apt-get install python-smbus python-dev
And pip, if you don't have it:
sudo apt-get install python-pip
Then install st7036 and sn3218 using pip:
sudo pip install st7036 sn3218
Usage
=====
LCD
---
import dot3k.lcd as lcd
lcd.write('Hello World!')
Backlight
---------
import dot3k.backlight as backlight
backlight.sweep(0.5)
backlight.update()
Joystick
--------
import dot3k.joystick as joystick
@joystick.on(joystick.UP)
def handle_joystick_up(pin):
print("Joystick up!")
Changelog
---------
1.1
---
* Fix for joystick on Rev 1 Pi
1.0dev
------
* Initial Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dot3k-1.1.tar.gz
(6.8 kB
view details)
File details
Details for the file dot3k-1.1.tar.gz
.
File metadata
- Download URL: dot3k-1.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6819c1ac9a1dc074a74f7f62c879382b49d85499f2a7d482c924dd14b5d3a802 |
|
MD5 | cc8a49ace5be6e3b9141c67da62bb70e |
|
BLAKE2b-256 | f016bc0dec294c5ea0e404ecfa5b65c3ef3c80350c72d22092afe0ff12a275ec |