0.0
No commit activity in last 3 years
No release in over 3 years
This is a very simple gem to handle several IT-8951 based EPDs. It simply transfers image data, and update EPD screen of specific area.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

ruby_it8951

About

This gem is for Waveshare Electronics' IT-8951 controller based EPD (e-paper device) with Raspberry Pi.

You can easily control EPD with simple code.

Requirements

  • Native Library for Raspberry Pi epd_it8950

  • FFI

  • root privileges (It crashes if you're not root. :-p)

Example

require 'ruby_it8951'

IT8951.init
info = IT8951.get_device_info  # => [width, height, addr, "fw ver", "lut ver"]
img = (0..15).inject([]){|a, i| a + [i * 16] * 100}
IT8951.transfer_image(20, 10, 100, 16, img)
IT8951.display_area(0, 0, info[0], info[1], 2)