Slide 26
Slide 26 text
Device Wrapper
Hide all low-level hardware operations
Example: LCD display (I2C interface)
Control using gem
6 bytes of binary command for “A”
Technical
Details
Client Side
[0x49, 0x4d, 0x49, 0x19, 0x1d, 0x19].each do |byte|
i2c_write_byte(byte)
end
# => "A"
Model:
LCM 1602 I2C
i2c