mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-09 00:44:02 +00:00
Add ssd1306_linux, a simple OLED I2C SSD1306 Linux driver based on the i2c library libi2c from i2c-tools. Example usage for a compatible display with resolution 128x64 pixels: ssd1306_bin -n 1 -I 128x64 ssd1306_bin -n 1 -c ssd1306_bin -n 1 -r 0 ssd1306_bin -n 1 -x 1 -y 1 ssd1306_bin -n 1 -l "Hello World" Pending GitHub pull request to the upstream of the project: https://github.com/armlabs/ssd1306_linux/pull/4 After fixing the upstream 0001-Use-include-filename.patch should be removed from the recipe. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
26 lines
736 B
BlitzBasic
26 lines
736 B
BlitzBasic
SUMMARY="SSD1306 OLED I2C drive"
|
|
DESCRIPTION = "SSD1306 OLED I2C driver working in Linux"
|
|
HOMEPAGE = "https://github.com/armlabs/ssd1306_linux"
|
|
SECTION = "console/utils"
|
|
LICENSE = "MIT"
|
|
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=7b694e603a996c3bfdc6093ed1f70c8f"
|
|
|
|
SRC_URI = " \
|
|
git://github.com/armlabs/ssd1306_linux.git;protocol=https;branch=master \
|
|
file://0001-Use-include-filename.patch \
|
|
"
|
|
SRCREV = "7375f1088732d243f7167c9a17725f1a860da587"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
# coreutils provides fmt which is used in the Makefile
|
|
DEPENDS = "i2c-tools coreutils-native"
|
|
|
|
EXTRA_OEMAKE = "CC='${CC}' CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'"
|
|
|
|
do_install() {
|
|
install -d ${D}${bindir}
|
|
install -m 0755 ${B}/ssd1306_bin ${D}${bindir}
|
|
}
|