Skip to content

A dirty code that drives SLX2016 modules on RPi

Notifications You must be signed in to change notification settings

AndiCui/RPi-SLX2016

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

#RPi-SLX2016 A dirty piece of code that drives SLX2016 modules on a RPi. Ahoy

##Default pin settings Breadboard every single time accordingly:

Solder every thing up!

SLX2016 GPIO.BCM
WR 4
A0 17
A1 18
D0 27
D1 22
D2 23
D3 24
D4 25
D5 5
D6 6
BL 12
CLR 13

You can always override these settings:

import SLX2016
display = SLX2016.SLX2016(WR,A0,A1,D0,D1,D2,D3,D4,D5,D6,BL,CLR)

##Get it running

from SLX2016 import SLX2016
display = SLX2016()
display.set_string("Hey!")

##Clean up the party

from SLX2016 import SLX2016
display = SLX2016()
display.clear()

try: and except KeyboardInterrupt: might come in handy.

##Just want to update a character? Try set_character()!

display.set_character(position,character)

The positon is 0, 1, 2 or 3, going from right to left.

##Usage of set_character_ascii() No matter bin, dec or hex, it will work!

display.set_character_ascii(0, 0b1111111)
display.set_character_ascii(0, 127)
display.set_character_ascii(0, 0x7f)

Those lines do the same thing.

Looking for some special symbols? Grab the data sheet!

About

A dirty code that drives SLX2016 modules on RPi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages