Project

i2c-ss1602

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Ruby driver for the SainSmart 1602 LCD display with I2C adapter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

SainSmart 1602 I2C driver

This is a Ruby driver for the SainSmart 1602 LCD display with I2C adapter. The code was partially ported from raspi-gpio.

Installation

Add this line to your application's Gemfile:

gem 'i2c-ss1602'

And then execute:

$ bundle

Or install it yourself as:

$ gem install i2c-ss1602

Usage

require 'i2c/drivers/ss1602'
display = I2C::Drivers::SS1602::Display.new('/dev/i2c-1', 0x27)
display.clear
display.text('Hello', 0)
display.text('World', 1)