37 #include <mraa/i2c.hpp>
39 #include <mraa/gpio.hpp>
81 Lcm1602(
int bus,
int address,
bool isExpander=
true,
82 uint8_t numColumns = 16, uint8_t numRows = 4);
96 Lcm1602(uint8_t rs, uint8_t enable,
97 uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3,
98 uint8_t numColumns = 16, uint8_t numRows = 4);
111 mraa::Result
write(std::string msg);
119 mraa::Result
setCursor(
int row,
int column);
125 mraa::Result
clear();
140 mraa::Result
createChar(uint8_t charSlot, uint8_t charData[]);
228 mraa::Result send(uint8_t value,
int mode);
229 mraa::Result write4bits(uint8_t value);
230 mraa::Result expandWrite(uint8_t value);
231 mraa::Result pulseEnable(uint8_t value);
233 uint8_t m_displayControl;
234 uint8_t m_entryDisplayMode;
237 uint8_t m_numColumns;
244 virtual mraa::Result command(uint8_t cmd);
245 virtual mraa::Result data(uint8_t data);
247 int m_lcd_control_address;
248 mraa::I2c* m_i2c_lcd_control;
256 mraa::Gpio* m_gpioRS;
257 mraa::Gpio* m_gpioEnable;
258 mraa::Gpio* m_gpioD0;
259 mraa::Gpio* m_gpioD1;
260 mraa::Gpio* m_gpioD2;
261 mraa::Gpio* m_gpioD3;
mraa::Result cursorOff()
Definition: lcm1602.cxx:307
mraa::Result autoscrollOff()
Definition: lcm1602.cxx:353
mraa::Result clear()
Definition: lcm1602.cxx:257
~Lcm1602()
Definition: lcm1602.cxx:166
mraa::Result write(std::string msg)
Definition: lcm1602.cxx:191
mraa::Result displayOff()
Definition: lcm1602.cxx:295
mraa::Result cursorOn()
Definition: lcm1602.cxx:301
mraa::Result cursorBlinkOn()
Definition: lcm1602.cxx:313
mraa::Result scrollDisplayRight()
Definition: lcm1602.cxx:330
mraa::Result cursorBlinkOff()
Definition: lcm1602.cxx:319
mraa::Result scrollDisplayLeft()
Definition: lcm1602.cxx:325
Lcm1602(int bus, int address, bool isExpander=true, uint8_t numColumns=16, uint8_t numRows=4)
Definition: lcm1602.cxx:43
mraa::Result entryLeftToRight()
Definition: lcm1602.cxx:335
mraa::Result createChar(uint8_t charSlot, uint8_t charData[])
Definition: lcm1602.cxx:275
mraa::Result home()
Definition: lcm1602.cxx:266
mraa::Result autoscrollOn()
Definition: lcm1602.cxx:347
mraa::Result setCursor(int row, int column)
Definition: lcm1602.cxx:201
mraa::Result entryRightToLeft()
Definition: lcm1602.cxx:341
API for the LCM1602 I2C controller for HD44780-based displays.
Definition: lcm1602.h:70
mraa::Result displayOn()
Definition: lcm1602.cxx:289