Class: I2CDevice::ACM1602NI

Inherits:
HD44780 show all
Defined in:
lib/templates/grove_pi/i2c/device/acm1602ni.rb

Overview

16x02 LCD module with I2C. Note: This device only run under speed=50kHz. akizukidenshi.com/catalog/g/gP-05693/

Constant Summary

Constants inherited from HD44780

HD44780::MAP

Constants inherited from I2CDevice

VERSION

Instance Attribute Summary

Attributes inherited from I2CDevice

#address

Instance Method Summary collapse

Methods inherited from HD44780

#clear_display, #cursor_or_display_shift, #define_character, #display_on_off_control, #entry_mode_set, #function_set, #initialize_lcd, #put_line, #read_busy_flag_and_address, #return_home, #set_cgram_address, #set_ddram_address

Methods inherited from I2CDevice

#i2cget, #i2cset

Constructor Details

#initialize(args = {}) ⇒ ACM1602NI

Returns a new instance of ACM1602NI.



10
11
12
13
14
15
# File 'lib/templates/grove_pi/i2c/device/acm1602ni.rb', line 10

def initialize(args={})
	args[:address] ||= 0x50
	super
	@lines = []
	initialize_lcd
end