APM:Libraries
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Display_SSD1306_I2C Class Reference

#include <Display_SSD1306_I2C.h>

Inheritance diagram for Display_SSD1306_I2C:
[legend]
Collaboration diagram for Display_SSD1306_I2C:
[legend]

Public Member Functions

void hw_update () override
 
void set_pixel (uint16_t x, uint16_t y) override
 
void clear_pixel (uint16_t x, uint16_t y) override
 
void clear_screen () override
 

Static Public Member Functions

static Display_SSD1306_I2Cprobe (AP_HAL::OwnPtr< AP_HAL::Device > dev)
 

Protected Member Functions

 Display_SSD1306_I2C (AP_HAL::OwnPtr< AP_HAL::Device > dev)
 
 ~Display_SSD1306_I2C () override
 
- Protected Member Functions inherited from Display_Backend
virtual ~Display_Backend ()
 

Private Member Functions

bool hw_init () override
 
void _timer ()
 

Private Attributes

AP_HAL::OwnPtr< AP_HAL::Device_dev
 
uint8_t _displaybuffer [SSD1306_COLUMNS *SSD1306_ROWS_PER_PAGE]
 
bool _need_hw_update
 

Detailed Description

Definition at line 11 of file Display_SSD1306_I2C.h.

Constructor & Destructor Documentation

◆ Display_SSD1306_I2C()

Display_SSD1306_I2C::Display_SSD1306_I2C ( AP_HAL::OwnPtr< AP_HAL::Device dev)
protected

Definition at line 23 of file Display_SSD1306_I2C.cpp.

Referenced by probe().

Here is the caller graph for this function:

◆ ~Display_SSD1306_I2C()

Display_SSD1306_I2C::~Display_SSD1306_I2C ( )
overrideprotected

Definition at line 28 of file Display_SSD1306_I2C.cpp.

Member Function Documentation

◆ _timer()

void Display_SSD1306_I2C::_timer ( void  )
private

Definition at line 102 of file Display_SSD1306_I2C.cpp.

Referenced by hw_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear_pixel()

void Display_SSD1306_I2C::clear_pixel ( uint16_t  x,
uint16_t  y 
)
overridevirtual

Implements Display_Backend.

Definition at line 142 of file Display_SSD1306_I2C.cpp.

◆ clear_screen()

void Display_SSD1306_I2C::clear_screen ( )
overridevirtual

Implements Display_Backend.

Definition at line 152 of file Display_SSD1306_I2C.cpp.

◆ hw_init()

bool Display_SSD1306_I2C::hw_init ( void  )
overrideprivatevirtual

Implements Display_Backend.

Definition at line 43 of file Display_SSD1306_I2C.cpp.

Referenced by probe().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hw_update()

void Display_SSD1306_I2C::hw_update ( )
overridevirtual

Implements Display_Backend.

Definition at line 97 of file Display_SSD1306_I2C.cpp.

◆ probe()

Display_SSD1306_I2C * Display_SSD1306_I2C::probe ( AP_HAL::OwnPtr< AP_HAL::Device dev)
static

Definition at line 33 of file Display_SSD1306_I2C.cpp.

Referenced by Display::init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_pixel()

void Display_SSD1306_I2C::set_pixel ( uint16_t  x,
uint16_t  y 
)
overridevirtual

Implements Display_Backend.

Definition at line 132 of file Display_SSD1306_I2C.cpp.

Member Data Documentation

◆ _dev

AP_HAL::OwnPtr<AP_HAL::Device> Display_SSD1306_I2C::_dev
private

Definition at line 33 of file Display_SSD1306_I2C.h.

Referenced by _timer(), and hw_init().

◆ _displaybuffer

uint8_t Display_SSD1306_I2C::_displaybuffer[SSD1306_COLUMNS *SSD1306_ROWS_PER_PAGE]
private

Definition at line 34 of file Display_SSD1306_I2C.h.

Referenced by _timer(), clear_pixel(), clear_screen(), hw_init(), and set_pixel().

◆ _need_hw_update

bool Display_SSD1306_I2C::_need_hw_update
private

Definition at line 35 of file Display_SSD1306_I2C.h.

Referenced by _timer(), hw_init(), and hw_update().


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