modm API documentation
modm::St7036< SPI, CS, RS, Width, Heigth > Class Template Reference

Driver for ST7036 based LC-displays. More...

#include <modm/driver/display/st7036.hpp>

Inheritance diagram for modm::St7036< SPI, CS, RS, Width, Heigth >:
modm::CharacterDisplay modm::IOStream

Public Member Functions

 St7036 ()
 Constructor.
 
virtual void initialize ()
 Initialize the display. More...
 
virtual void writeRaw (char c)
 
virtual void execute (Command command)
 
virtual void setCursor (uint8_t column, uint8_t line)
 
- Public Member Functions inherited from modm::CharacterDisplay
 CharacterDisplay (uint8_t width, uint8_t height)
 Constructor.
 
void initialize ()
 Initialize the display.
 
void write (char c)
 
void execute (Command command)
 
void clear ()
 clear the entire display and reset the cursor
 
- Public Member Functions inherited from modm::IOStream
 IOStream (IODevice &odevice)
 
IOStream & write (char c)
 
IOStream & get (char &c)
 Reads one character and returns it if available. Otherwise, returns IOStream::eof.
 
IOStream & get (char *s, size_t n)
 
template<size_t N>
IOStream &IOStream & flush ()
 
IOStream & endl ()
 
IOStream & bin ()
 set the output mode to binary style for integer types
 
IOStream & hex ()
 set the output mode to hexadecimal style for integer types
 
IOStream & ascii ()
 set the output mode to ASCII style for integer types
 
IOStream & operator<< (const bool &v)
 
IOStream & operator<< (const char &v)
 
IOStream & operator<< (const uint8_t &v)
 
IOStream & operator<< (const int16_t &v)
 
IOStream & operator<< (const uint16_t &v)
 
IOStream & operator<< (const int32_t &v)
 
IOStream & operator<< (const uint32_t &v)
 
IOStream & operator<< (const char *s)
 
IOStream & operator<< (const void *p)
 write the hex value of a pointer
 
template<class Ret , class... Args>
IOStream & operator<< (Ret (*pointer)(Args...))
 Write the hex value of any function pointer.
 
IOStream & operator<< (IOStream &(*format)(IOStream &))
 

Protected Member Functions

void writeCommand (uint8_t command)
 
- Protected Member Functions inherited from modm::IOStream
template<typename T >
void writeIntegerMode (const T v)
 
void writeInteger (int16_t value)
 
void writeInteger (uint16_t value)
 
void writeInteger (int32_t value)
 
void writeInteger (uint32_t value)
 
void writePointer (const void *value)
 
void writeHex (uint8_t value)
 
void writeBin (uint8_t value)
 

Additional Inherited Members

- Public Types inherited from modm::CharacterDisplay
enum  Command {
  ClearDisplay = 0b00000001, ResetCursor = 0b00000010, IncrementCursor = 0b00000110, DecrementCursor = 0b00000100,
  DisableDisplay = 0b00001000, EnableDisplay = 0b00001100, DisableCursor = 0b00001000, EnableCursor = 0b00001010,
  DisableCursorBlink = 0b00001000, EnableCursorBlink = 0b00001001, ShiftCursorLeft = 0b00010000, ShiftCursorRight = 0b00010100
}
 
- Static Public Attributes inherited from modm::IOStream
static constexpr char eof = -1
 
- Protected Attributes inherited from modm::CharacterDisplay
Writer writer
 
uint8_t lineWidth
 
uint8_t lineCount
 
uint8_t column
 
uint8_t line
 

Detailed Description

template<typename SPI, typename CS, typename RS, unsigned int Width, unsigned int Heigth>
class modm::St7036< SPI, CS, RS, Width, Heigth >

Driver for ST7036 based LC-displays.

Available defines:

  • ST7036_VOLTAGE = 3|5
See also
Lcd
Author
Fabian Greif

Member Function Documentation

template<typename SPI , typename CS , typename RS , unsigned int Width, unsigned int Heigth>
virtual void modm::St7036< SPI, CS, RS, Width, Heigth >::initialize ( )
virtual

Initialize the display.

The display needs some time to initialize after startup. You have to wait at least 50 ms until calling this method.

template<typename SPI , typename CS , typename RS , unsigned int Width, unsigned int Heigth>
virtual void modm::St7036< SPI, CS, RS, Width, Heigth >::setCursor ( uint8_t  column,
uint8_t  line 
)
virtual

Set cursor to specified position

Parameters
columnhorizontal position
linevertical position

Implements modm::CharacterDisplay.

template<typename SPI , typename CS , typename RS , unsigned int Width, unsigned int Heigth>
virtual void modm::St7036< SPI, CS, RS, Width, Heigth >::writeRaw ( char  c)
virtual

Write a raw character at cursor position

Unlike write() no further processing will occur.

See also
write()

Implements modm::CharacterDisplay.


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