Arduino-LCD
LCD library for Arduino
LCD::Debug Class Reference

#include <Debug.h>

Inheritance diagram for LCD::Debug:
Inheritance graph
Collaboration diagram for LCD::Debug:
Collaboration graph

Public Member Functions

 Debug (Print &os)
 
virtual bool setup ()
 
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 void write8n (const void *buf, size_t size)
 

Protected Attributes

Print & m_os
 

Detailed Description

Definition at line 29 of file Debug.h.

Constructor & Destructor Documentation

LCD::Debug::Debug ( Print &  os)
inline

Definition at line 31 of file Debug.h.

Member Function Documentation

virtual void LCD::Debug::set_backlight ( uint8_t  flag)
inlinevirtual

Set backlight on/off.

Parameters
[in]flag.

Implements HD44780::Adapter.

Definition at line 63 of file Debug.h.

virtual void LCD::Debug::set_mode ( uint8_t  flag)
inlinevirtual

Set data/command mode; zero(0) for command, non-zero(1) for data mode.

Parameters
[in]flag.

Implements HD44780::Adapter.

Definition at line 55 of file Debug.h.

virtual bool LCD::Debug::setup ( )
inlinevirtual

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 from HD44780::Adapter.

Definition at line 33 of file Debug.h.

virtual void LCD::Debug::write4b ( uint8_t  data)
inlinevirtual

Write LSB nibble (4bit) to display.

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

Implements HD44780::Adapter.

Definition at line 40 of file Debug.h.

virtual void LCD::Debug::write8b ( uint8_t  data)
inlinevirtual

Write byte (8bit) to display.

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

Reimplemented from HD44780::Adapter.

Definition at line 47 of file Debug.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

Print& LCD::Debug::m_os
protected

Definition at line 72 of file Debug.h.


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