libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy::SSD130xDriver< width, height, Transport > Class Template Reference

Detailed Description

template<size_t width, size_t height, typename Transport>
class daisy::SSD130xDriver< width, height, Transport >

A driver implementation for the SSD1306/SSD1309

#include <oled_ssd130x.h>

Inheritance diagram for daisy::SSD130xDriver< width, height, Transport >:
daisy::SH1106Driver< width, height, Transport >

Classes

struct  Config
 

Public Member Functions

void Init (Config config)
 
size_t Width () const
 
size_t Height () const
 
void DrawPixel (uint_fast8_t x, uint_fast8_t y, bool on)
 
void Fill (bool on)
 
void Update ()
 

Protected Attributes

Transport transport_
 
uint8_t buffer_ [width *height/8]
 

Member Function Documentation

◆ DrawPixel()

template<size_t width, size_t height, typename Transport >
void daisy::SSD130xDriver< width, height, Transport >::DrawPixel ( uint_fast8_t  x,
uint_fast8_t  y,
bool  on 
)
inline

◆ Fill()

template<size_t width, size_t height, typename Transport >
void daisy::SSD130xDriver< width, height, Transport >::Fill ( bool  on)
inline

◆ Height()

template<size_t width, size_t height, typename Transport >
size_t daisy::SSD130xDriver< width, height, Transport >::Height ( ) const
inline

◆ Init()

template<size_t width, size_t height, typename Transport >
void daisy::SSD130xDriver< width, height, Transport >::Init ( Config  config)
inline

◆ Update()

template<size_t width, size_t height, typename Transport >
void daisy::SSD130xDriver< width, height, Transport >::Update ( )
inline

Update the display

◆ Width()

template<size_t width, size_t height, typename Transport >
size_t daisy::SSD130xDriver< width, height, Transport >::Width ( ) const
inline

Member Data Documentation

◆ buffer_

template<size_t width, size_t height, typename Transport >
uint8_t daisy::SSD130xDriver< width, height, Transport >::buffer_[width *height/8]
protected

◆ transport_

template<size_t width, size_t height, typename Transport >
Transport daisy::SSD130xDriver< width, height, Transport >::transport_
protected

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