Skip to content

Instantly share code, notes, and snippets.

@codelectron
Last active June 6, 2018 09:10
Show Gist options
  • Save codelectron/17345a4ce43654a017623a73f37d7cb5 to your computer and use it in GitHub Desktop.
Save codelectron/17345a4ce43654a017623a73f37d7cb5 to your computer and use it in GitHub Desktop.
#! /usr/bin/python
from luma.core.interface.serial import spi
from luma.core.render import canvas
from luma.lcd.device import pcd8544, st7735, uc1701x
from RPi import GPIO
from luma.lcd.aux import backlight
serial = spi(port=0, device=0, gpio_DC=23, gpio_RST=24)
channel=18
light = backlight(gpio_LIGHT=channel, active_low=False)
light.enable(True)
raw_input("Here")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment