SSD1306 Library  1.0.0
Library for SSD1306 OLed Driver based on libohiboard
SSD1306 Library Documentation

This library is developed in order to manage the OLED driver SSD1306.

ChangeLog

  • v1.0.0 of 2019/09/30 - First release

External Library

The library use the following external library:

Example

static SSD1306_Device_t mDisplay = {0};
static SSD1306_DeviceHandle_t mDisplayHandle = &mDisplay;
// Display initialization
Iic_Config displayCommCondig =
{
.sclPin = DISPLAY_COMM_PIN_SCL,
.sdaPin = DISPLAY_COMM_PIN_SDA,
.baudrate = 100000,
.devType = IIC_MASTER_MODE,
.addressMode = IIC_SEVEN_BIT,
.pullupEnable = FALSE,
.clockSource = IIC_CLOCKSOURCE_SYSCLK,
};
SSD1306_Config_t displayConfig =
{
.product = APPLICATION_DISPLAY_TYPE,
.rstPin = DISPLAY_COMM_PIN_RESET,
.iicConfig = displayCommCondig,
.iicDev = DISPALY_COMM_PORT,
};
SSD1306_init(mDisplayHandle, &displayConfig);
SSD1306_clear(mDisplayHandle);
SSD1306_drawString(mDisplayHandle, 0, 0, "SSD1306 Library", SSD1306_COLOR_COLOR, 1);
SSD1306_drawString(mDisplayHandle, 0, 15, "by warcomeb", SSD1306_COLOR_COLOR, 1);
SSD1306_drawString(mDisplayHandle, 0, 30, "follow us NOWAE.IT", SSD1306_COLOR_COLOR, 1);
SSD1306_flush(mDisplayHandle);

Credits

  • Marco Giammarini (warcomeb)

License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
SSD1306_init
void SSD1306_init(SSD1306_DeviceHandle_t dev, SSD1306_Config_t *config)
Definition: ssd1306.c:208
_SSD1306_Config_t::product
uint16_t product
Definition: ssd1306.h:149
_SSD1306_Device_t
Definition: ssd1306.h:185
SSD1306_clear
void SSD1306_clear(SSD1306_DeviceHandle_t dev)
Definition: ssd1306.c:532
_SSD1306_Config_t
Definition: ssd1306.h:147
SSD1306_drawString
GDL_Errors_t SSD1306_drawString(SSD1306_DeviceHandle_t dev, uint16_t xPos, uint16_t yPos, const char *text, uint8_t color, uint8_t size)
Definition: ssd1306.c:468
SSD1306_flush
void SSD1306_flush(SSD1306_DeviceHandle_t dev)
Definition: ssd1306.c:518
SSD1306_COLOR_COLOR
Definition: ssd1306type.h:49