|
You are here |
schinckel.net | ||
| | | | |
blog.oddbit.com
|
|
| | | | | I recently acquired both a Raspberry Pi and a PiFace IO board. I had a rough time finding examples of how to read the input ports via interrupts (rather than periodically polling for values), especially for the newer versions of the PiFace python libraries. After a little research, here's some simple code that will print out pin names as you press the input buttons. Button 3 will cause the code to exit: #!/usr/bin/python import pifacecommon.core import pifacecommon.interrupts import os import time quit =... | |
| | | | |
hackaday.io
|
|
| | | | | I've posted the scripts used to generate the anti-aliased text used in the User Interface. The first is a Photoshop script,CreateFontData.jsx. This makes a set of PNG files, one for each character. The second isConvertText.py, a Python script that takes the output of CreateFontData and generates C code for display the characters on the Epson LCD used in the project. Note these scripts have some hard-coded pathnames in them (to the development folder) but this is pretty easy to find and modify. | |
| | | | |
www.martinkysel.com
|
|
| | | | | For two strings A and B, we define the similarity of the strings to be the length of the longest prefix common to both strings. | |
| | | | |
travisdowns.github.io
|
|
| | | A blog about low-level software and hardware performance. | ||