Skip to main content

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.3
---

* Removed plugins from dot3k.menu into examples/plugins folder

1.2
---

* Breaking changes with plugin compatibility vs version 1.1
* Many fixes to redraw calls
* Plugin redraw method is now passed the "menu" instance

1.1
---

* Fix for joystick on Rev 1 Pi

1.0dev
------

* Initial Release

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

dot3k-1.3.tar.gz (8.7 kB view details)

Uploaded Source

File details

Details for the file dot3k-1.3.tar.gz.

File metadata

  • Download URL: dot3k-1.3.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dot3k-1.3.tar.gz
Algorithm Hash digest
SHA256 4f3e325e112bd8512ba6b7be7a2f7899d67b17ec1ef8f81074e7ca447f75b780
MD5 ed1d0b7edfdf69a7863b314d7a9d5408
BLAKE2b-256 2dac83a01b5d5bb2359d5ee38ac3d0cc15e6b4d67d01f3f50ed7a47f2392d27d

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