COSA
An Object-Oriented Platform for Arduino Programming
LCD::Serial3W Class Reference

#include <LCD.hh>

Inheritance diagram for LCD::Serial3W:
Inheritance graph
Collaboration diagram for LCD::Serial3W:
Collaboration graph

Public Member Functions

 Serial3W (Board::DigitalPin sdin=Board::D6, Board::DigitalPin sclk=Board::D7, Board::DigitalPin sce=Board::D9)
 
virtual void begin ()
 
virtual void end ()
 
virtual void write (uint8_t data)
 
virtual void write (const void *buf, size_t size)
 

Protected Attributes

OutputPin m_sdin
 Serial data input. More...
 
OutputPin m_sclk
 Serial clock input. More...
 
OutputPin m_sce
 Chip enable. More...
 

Detailed Description

LCD IO adapter for serial 3 wire (OutputPin).

Definition at line 223 of file LCD.hh.

Constructor & Destructor Documentation

LCD::Serial3W::Serial3W ( Board::DigitalPin  sdin = Board::D6,
Board::DigitalPin  sclk = Board::D7,
Board::DigitalPin  sce = Board::D9 
)
inline

Construct display device driver adapter with given pins.

Parameters
[in]sdinscreen data pin (default D6/D0).
[in]sclkscreen clock pin (default D7/D1).
[in]scescreen chip enable pin (default D9/D3).

Definition at line 232 of file LCD.hh.

Member Function Documentation

virtual void LCD::Serial3W::begin ( )
inlinevirtual

Start of data/command transfer block.

Implements LCD::IO.

Definition at line 253 of file LCD.hh.

virtual void LCD::Serial3W::end ( )
inlinevirtual

End of data/command transfer block.

Implements LCD::IO.

Definition at line 262 of file LCD.hh.

virtual void LCD::Serial3W::write ( uint8_t  data)
inlinevirtual

Write byte (8bit) to display. Must be in data/command transfer block.

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

Implements LCD::IO.

Definition at line 273 of file LCD.hh.

virtual void LCD::Serial3W::write ( const void *  buf,
size_t  size 
)
inlinevirtual

Write character buffer to display. Must be in data/command transfer block.

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

Implements LCD::IO.

Definition at line 285 of file LCD.hh.

Member Data Documentation

OutputPin LCD::Serial3W::m_sce
protected

Chip enable.

Definition at line 294 of file LCD.hh.

OutputPin LCD::Serial3W::m_sclk
protected

Serial clock input.

Definition at line 293 of file LCD.hh.

OutputPin LCD::Serial3W::m_sdin
protected

Serial data input.

Definition at line 292 of file LCD.hh.


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