18 #include <Adafruit_GrayOLED.h> 23 #define SSD1305_I2C_ADDRESS 0x3C // 011110+SA0+RW - 0x3C or 0x3D 25 #define SSD1305_SETLOWCOLUMN 0x00 26 #define SSD1305_SETHIGHCOLUMN 0x10 27 #define SSD1305_MEMORYMODE 0x20 28 #define SSD1305_SETCOLADDR 0x21 29 #define SSD1305_SETPAGEADDR 0x22 30 #define SSD1305_SETSTARTLINE 0x40 32 #define SSD1305_SETCONTRAST 0x81 33 #define SSD1305_SETBRIGHTNESS 0x82 35 #define SSD1305_SETLUT 0x91 37 #define SSD1305_SEGREMAP 0xA0 38 #define SSD1305_DISPLAYALLON_RESUME 0xA4 39 #define SSD1305_DISPLAYALLON 0xA5 40 #define SSD1305_NORMALDISPLAY 0xA6 41 #define SSD1305_INVERTDISPLAY 0xA7 42 #define SSD1305_SETMULTIPLEX 0xA8 43 #define SSD1305_DISPLAYDIM 0xAC 44 #define SSD1305_MASTERCONFIG 0xAD 45 #define SSD1305_DISPLAYOFF 0xAE 46 #define SSD1305_DISPLAYON 0xAF 48 #define SSD1305_SETPAGESTART 0xB0 50 #define SSD1305_COMSCANINC 0xC0 51 #define SSD1305_COMSCANDEC 0xC8 52 #define SSD1305_SETDISPLAYOFFSET 0xD3 53 #define SSD1305_SETDISPLAYCLOCKDIV 0xD5 54 #define SSD1305_SETAREACOLOR 0xD8 55 #define SSD1305_SETPRECHARGE 0xD9 56 #define SSD1305_SETCOMPINS 0xDA 57 #define SSD1305_SETVCOMLEVEL 0xDB 63 int8_t rst_pin = -1, uint32_t preclk = 400000,
64 uint32_t postclk = 100000);
66 int8_t dc_pin, int8_t rst_pin, int8_t cs_pin);
68 int8_t rst_pin, int8_t cs_pin, uint32_t bitrate = 8000000UL);
71 bool begin(uint8_t i2caddr = SSD1305_I2C_ADDRESS,
bool reset =
true);
77 uint8_t page_offset = 0;
78 uint8_t column_offset = 0;
void wake()
Wake the display driver from the low power mode.
Definition: Adafruit_SSD1305.cpp:350
bool begin(uint8_t i2caddr=SSD1305_I2C_ADDRESS, bool reset=true)
Allocate RAM for image buffer, initialize peripherals and pins.
Definition: Adafruit_SSD1305.cpp:149
void display()
Do the actual writing of the internal frame buffer to display RAM.
Definition: Adafruit_SSD1305.cpp:249
void sleep()
Put the display driver into a low power mode instead of just turning off all pixels.
Definition: Adafruit_SSD1305.cpp:345
Adafruit_SSD1305(uint16_t w, uint16_t h, TwoWire *twi=&Wire, int8_t rst_pin=-1, uint32_t preclk=400000, uint32_t postclk=100000)
Constructor for I2C-interfaced SSD1305 displays.
Definition: Adafruit_SSD1305.cpp:56
Definition: Adafruit_SSD1305.h:60
~Adafruit_SSD1305(void)
Destructor for Adafruit_SSD1305 object.
Definition: Adafruit_SSD1305.cpp:125