Skip to content

Instantly share code, notes, and snippets.

View crackcell's full-sized avatar

Menglong TAN crackcell

View GitHub Profile

CJK support on Beepy (both display and input)

The Beepy uses a monochrome sharp memory LCD panel which has some caveat. This document includes a way to bring CJK support to Beepy in the framebuffer. The below is based on raspbian on raspberry pi zero, and had ran the Beepy setup script found on https://beepy.sqfmi.com/docs/getting-started.

Install DRM driver for the LCD

We will be using fbterm. Since fbterm supports minimal of 32bpp, we need to install a DRM driver for the sharp memory LCD panel to enable 32bpp mode.

Download the driver made by excel,

$ git clone https://github.com/ardangelo/sharp-drm-driver.git
#!/bin/bash
# Pull this file down, make it executable and run it with sudo
# wget https://raw.github.com/gist/5487621/build-erlang-r16b.sh
# chmod u+x build-erlang-r16b.sh
# sudo ./build-erlang-r16b.sh
if [ $(id -u) != "0" ]; then
echo "You must be the superuser to run this script" >&2
exit 1
fi
@crackcell
crackcell / gist:3f2ec8e712f3a9247bf8
Created May 20, 2014 10:02
Erlang repo for raspberry pi (rasbian)
bash
sudo vi /etc/apt/sources.list
deb http://binaries.erlang-solutions.com/debian wheezy contrib
Then add the Erlang Solutions public key for apt-secure.
bash
wget -O - http://binaries.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add -
Update your apt-get package list, and then install esl-erlang.
@crackcell
crackcell / LogLib.pm
Created August 29, 2013 01:32
Simple console logger for Perl.
package Loglib;
use strict;
use Digest::MD5 qw/ md5_hex /;
use POSIX qw(strftime);
use Time::Local;
my $LOG_LEVEL = 16;
my $SN = "Loglib";
@crackcell
crackcell / app.conf
Created February 18, 2013 03:10
BAE(Baidu App Engine) static files config for python and flask
handlers:
- url: /static/(.*)
static_files: templates/static/$1
- url : /.*
script: app.py