Arduino-LCD
LCD library for Arduino
LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN > Class Template Reference

#include <PP7W.h>

Inheritance diagram for LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >:
Inheritance graph
Collaboration diagram for LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >:
Collaboration graph

Public Member Functions

 PP7W ()
 
virtual void write4b (uint8_t data)
 
virtual void write8b (uint8_t data)
 
virtual void set_mode (uint8_t flag)
 
virtual void set_backlight (uint8_t flag)
 
virtual bool setup ()
 
virtual void write8n (const void *buf, size_t size)
 

Protected Attributes

GPIO< D0_PIN > m_d0
 Data pin; d0. More...
 
GPIO< D1_PIN > m_d1
 Data pin; d1. More...
 
GPIO< D2_PIN > m_d2
 Data pin; d2. More...
 
GPIO< D3_PIN > m_d3
 Data pin; d3. More...
 
GPIO< RS_PIN > m_rs
 Register select (0/instruction, 1/data). More...
 
GPIO< EN_PIN > m_en
 Starts data read/write. More...
 
GPIO< BT_PIN > m_bt
 Back-light control (0/on, 1/off). More...
 

Static Protected Attributes

static const uint16_t SHORT_EXEC_TIME = 32
 

Detailed Description

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
class LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >

Definition at line 73 of file PP7W.h.

Constructor & Destructor Documentation

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::PP7W ( )
inline

Construct HD44780 7-wire parallel port connected to given command, enable and backlight pin.

Definition at line 79 of file PP7W.h.

Member Function Documentation

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
virtual void LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::set_backlight ( uint8_t  flag)
inlinevirtual

Set backlight on/off using bt pin.

Parameters
[in]flag.

Implements HD44780::Adapter.

Definition at line 145 of file PP7W.h.

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
virtual void LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::set_mode ( uint8_t  flag)
inlinevirtual

Set instruction/data mode using given rs pin; zero for instruction, non-zero for data mode.

Parameters
[in]flag.

Implements HD44780::Adapter.

Definition at line 135 of file PP7W.h.

virtual bool HD44780::Adapter::setup ( )
inlinevirtualinherited

Initiate IO port. Called by HD44780::begin(). Should return true(1) for 8-bit mode otherwise false for 4-bit mode. Default is 4-bit mode.

Returns
bool.

Reimplemented in LCD::SR4W< SDA_PIN, SCL_PIN, EN_PIN, BT_PIN >, LCD::SR3W< SDA_PIN, SCL_PIN, EN_PIN >, LCD::DFRobot_IIC, LCD::MJKDZ, and LCD::Debug.

Definition at line 48 of file HD44780.h.

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
virtual void LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::write4b ( uint8_t  data)
inlinevirtual

Write LSB nibble to display data pins.

Parameters
[in]data(4b) to write.

Implements HD44780::Adapter.

Definition at line 97 of file PP7W.h.

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
virtual void LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::write8b ( uint8_t  data)
inlinevirtual

Write byte (8bit) to display.

Parameters
[in]data(8b) to write.

Reimplemented from HD44780::Adapter.

Definition at line 112 of file PP7W.h.

virtual void HD44780::Adapter::write8n ( const void *  buf,
size_t  size 
)
inlinevirtualinherited

Write character/command buffer to display.

Parameters
[in]bufpointer to buffer.
[in]sizenumber of bytes in buffer.

Reimplemented in LCD::DFRobot_IIC, and LCD::MJKDZ.

Definition at line 77 of file HD44780.h.

Member Data Documentation

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
GPIO<BT_PIN> LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::m_bt
protected

Back-light control (0/on, 1/off).

Definition at line 160 of file PP7W.h.

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
GPIO<D0_PIN> LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::m_d0
protected

Data pin; d0.

Definition at line 154 of file PP7W.h.

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
GPIO<D1_PIN> LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::m_d1
protected

Data pin; d1.

Definition at line 155 of file PP7W.h.

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
GPIO<D2_PIN> LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::m_d2
protected

Data pin; d2.

Definition at line 156 of file PP7W.h.

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
GPIO<D3_PIN> LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::m_d3
protected

Data pin; d3.

Definition at line 157 of file PP7W.h.

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
GPIO<EN_PIN> LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::m_en
protected

Starts data read/write.

Definition at line 159 of file PP7W.h.

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
GPIO<RS_PIN> LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::m_rs
protected

Register select (0/instruction, 1/data).

Definition at line 158 of file PP7W.h.

template<BOARD::pin_t D0_PIN, BOARD::pin_t D1_PIN, BOARD::pin_t D2_PIN, BOARD::pin_t D3_PIN, BOARD::pin_t RS_PIN, BOARD::pin_t EN_PIN, BOARD::pin_t BT_PIN>
const uint16_t LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >::SHORT_EXEC_TIME = 32
staticprotected

Execution time delay (us).

Definition at line 152 of file PP7W.h.


The documentation for this class was generated from the following file: