TR-mbed 1.0
Loading...
Searching...
No Matches
Macros
SSD1308.cpp File Reference
#include "mbed.h"
#include "SSD1308.h"
#include "font_8x8.h"
#include "font_16x24.h"

Macros

#define I2C_OPTIMIZE   0
 
#define PRG_MAX_SCALE   50
 write a progressbar to the display, Width is (PRG_MAX_SCALE + 2) pixels
 
#define PRG_LEFT_EDGE   0xFF
 
#define PRG_RIGHT_EDGE   0xFF
 
#define PRG_ACTIVE   0xFF
 
#define PRG_NOT_ACTIVE   0x81
 

Macro Definition Documentation

◆ I2C_OPTIMIZE

#define I2C_OPTIMIZE   0

◆ PRG_ACTIVE

#define PRG_ACTIVE   0xFF

◆ PRG_LEFT_EDGE

#define PRG_LEFT_EDGE   0xFF

◆ PRG_MAX_SCALE

#define PRG_MAX_SCALE   50

write a progressbar to the display, Width is (PRG_MAX_SCALE + 2) pixels

Parameters
uint8_tpage begin page (0..MAX_PAGE)
uint8_tcol begin column (0..MAX_COL)
intpercentage value (0..100)

◆ PRG_NOT_ACTIVE

#define PRG_NOT_ACTIVE   0x81

◆ PRG_RIGHT_EDGE

#define PRG_RIGHT_EDGE   0xFF