CheeseBoard
A library for use with the CheeseBoard Cheddar platform
Public Member Functions | Protected Attributes | List of all members
GfxSignalStrength Class Reference

#include <GfxSignalStrength.h>

Inheritance diagram for GfxSignalStrength:
Inheritance graph

Public Member Functions

void setSignal (uint8_t percent)
 
void draw (uint16_t xOffset=0, uint16_t yOffset=0)
 
uint16_t width ()
 
uint16_t height ()
 

Protected Attributes

String _text
 
uint8_t _signal
 

Detailed Description

Small GfxItem for displaying signal strength as a siny vertical bar graph.

The bar is 2 pixels wide and 12 pixels tall.

Definition at line 11 of file GfxSignalStrength.h.

Member Function Documentation

◆ draw()

void GfxSignalStrength::draw ( uint16_t  xOffset = 0,
uint16_t  yOffset = 0 
)
virtual

Draw the object on the display (don't send buffer).

Implements GfxItem.

Definition at line 10 of file GfxSignalStrength.cpp.

Here is the caller graph for this function:

◆ height()

uint16_t GfxSignalStrength::height ( )
virtual

Get object height.

Returns
Object height in pixels.

Implements GfxItem.

Definition at line 25 of file GfxSignalStrength.cpp.

Here is the caller graph for this function:

◆ width()

uint16_t GfxSignalStrength::width ( )
virtual

Get object width.

Returns
Object width in pixels.

Implements GfxItem.

Definition at line 20 of file GfxSignalStrength.cpp.

Here is the caller graph for this function:

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