37 #include <mraa/i2c.hpp>
39 #include <mraa/gpio.hpp>
83 Lcm1602(
int bus = 0,
int address = 0x27,
bool isExpander=
true,
84 uint8_t numColumns = 16, uint8_t numRows = 2);
100 Lcm1602(uint8_t rs, uint8_t enable,
101 uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3,
102 uint8_t numColumns = 16, uint8_t numRows = 2);
115 mraa::Result
write(std::string msg);
123 mraa::Result
setCursor(
int row,
int column);
129 mraa::Result
clear();
144 mraa::Result
createChar(uint8_t charSlot, uint8_t charData[]);
246 mraa::Result send(uint8_t value,
int mode);
247 mraa::Result write4bits(uint8_t value);
248 mraa::Result expandWrite(uint8_t value);
249 mraa::Result pulseEnable(uint8_t value);
251 uint8_t m_displayControl;
252 uint8_t m_entryDisplayMode;
255 uint8_t m_numColumns;
265 virtual mraa::Result command(uint8_t cmd);
266 virtual mraa::Result data(uint8_t data);
268 int m_lcd_control_address;
269 mraa::I2c* m_i2c_lcd_control;
277 mraa::Gpio* m_gpioRS;
278 mraa::Gpio* m_gpioEnable;
279 mraa::Gpio* m_gpioD0;
280 mraa::Gpio* m_gpioD1;
281 mraa::Gpio* m_gpioD2;
282 mraa::Gpio* m_gpioD3;
mraa::Result cursorOff()
Definition: lcm1602.cxx:309
mraa::Result autoscrollOff()
Definition: lcm1602.cxx:367
mraa::Result clear()
Definition: lcm1602.cxx:259
~Lcm1602()
Definition: lcm1602.cxx:168
mraa::Result write(std::string msg)
Definition: lcm1602.cxx:193
mraa::Result displayOff()
Definition: lcm1602.cxx:297
mraa::Result backlightOff()
Definition: lcm1602.cxx:333
mraa::Result cursorOn()
Definition: lcm1602.cxx:303
mraa::Result cursorBlinkOn()
Definition: lcm1602.cxx:315
mraa::Result scrollDisplayRight()
Definition: lcm1602.cxx:344
mraa::Result cursorBlinkOff()
Definition: lcm1602.cxx:321
mraa::Result scrollDisplayLeft()
Definition: lcm1602.cxx:339
mraa::Result entryLeftToRight()
Definition: lcm1602.cxx:349
mraa::Result createChar(uint8_t charSlot, uint8_t charData[])
Definition: lcm1602.cxx:277
Lcm1602(int bus=0, int address=0x27, bool isExpander=true, uint8_t numColumns=16, uint8_t numRows=2)
Definition: lcm1602.cxx:43
mraa::Result home()
Definition: lcm1602.cxx:268
mraa::Result backlightOn()
Definition: lcm1602.cxx:327
mraa::Result autoscrollOn()
Definition: lcm1602.cxx:361
mraa::Result setCursor(int row, int column)
Definition: lcm1602.cxx:203
mraa::Result entryRightToLeft()
Definition: lcm1602.cxx:355
API for the LCM1602 I2C controller for HD44780-based displays.
Definition: lcm1602.hpp:70
mraa::Result displayOn()
Definition: lcm1602.cxx:291