All Projects → hepingood → ssd1351

hepingood / ssd1351

Licence: MIT license
ssd1351 full function driver

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to ssd1351

max7219
MAX7219 full function driver for general MCU and Linux.
Stars: ✭ 86 (+152.94%)
Mutual labels:  spi, mcu, full-function-driver
bmp388
bmp388 full function driver
Stars: ✭ 14 (-58.82%)
Mutual labels:  spi, mcu, full-function-driver
uvis25
uvis25 full function driver
Stars: ✭ 13 (-61.76%)
Mutual labels:  spi, mcu, full-function-driver
adxl345
ADXL345 full function driver for general MCU and Linux.
Stars: ✭ 170 (+400%)
Mutual labels:  spi, mcu, full-function-driver
mlx90614
mlx90614 full function driver
Stars: ✭ 17 (-50%)
Mutual labels:  mcu, full-function-driver
mcp9600
mcp9600 full function driver
Stars: ✭ 22 (-35.29%)
Mutual labels:  mcu, full-function-driver
fm24clxx
fm24clxx full function driver
Stars: ✭ 0 (-100%)
Mutual labels:  mcu, full-function-driver
hcsr04
hcsr04 full function driver
Stars: ✭ 25 (-26.47%)
Mutual labels:  mcu, full-function-driver
w25qxx
w25qxx full function driver
Stars: ✭ 440 (+1194.12%)
Mutual labels:  spi, mcu
IOsonata
IOsonata multi-platform multi-architecture power & performance optimized software library for fast and easy IoT MCU firmware development. Object Oriented design, no board package to define, just pure plug & play any boards
Stars: ✭ 40 (+17.65%)
Mutual labels:  spi, mcu
Can library
Multiplatform Arduino library for supporting the native CAN controller on Due (SAM3X) and Teensy 3.1 (K2X) as well as MCP2515 through SPI
Stars: ✭ 81 (+138.24%)
Mutual labels:  spi, mcu
Nf Interpreter
⚙️ nanoFramework Interpreter, CLR, HAL, PAL and reference target boards
Stars: ✭ 168 (+394.12%)
Mutual labels:  spi, mcu
sht31
sht31 full function driver
Stars: ✭ 28 (-17.65%)
Mutual labels:  mcu, full-function-driver
bmp180
bmp180 full function driver
Stars: ✭ 57 (+67.65%)
Mutual labels:  mcu, full-function-driver
hx711
HX711 full function driver for general MCU and Linux.
Stars: ✭ 67 (+97.06%)
Mutual labels:  mcu, full-function-driver
max30205
max30205 full function driver
Stars: ✭ 18 (-47.06%)
Mutual labels:  mcu, full-function-driver
sgp30
sgp30 full function driver
Stars: ✭ 24 (-29.41%)
Mutual labels:  mcu, full-function-driver
at24cxx
at24cxx full function driver
Stars: ✭ 28 (-17.65%)
Mutual labels:  mcu, full-function-driver
NR1-UI
Userinterface for Volumio (RaspberryPi) with ssd1322 and ssd1306 oled display, spectrum bargraph, progress bar, LED functions, Standby-functions, 4 Buttons and Rotary Encoder.
Stars: ✭ 29 (-14.71%)
Mutual labels:  spi, ssd1351
awesome-embedded-swift
⚡️🛠🧰 A curated list for Embedded and Low-Level development in the Swift programming language.
Stars: ✭ 57 (+67.65%)
Mutual labels:  spi, mcu

English | 简体中文 | 繁體中文 | 日本語 | Deutsch | 한국어

LibDriver SSD1351

MISRA API License

The SSD1351 is a CMOS OLED/PLED driver with 384 segments and 128 commons output, supporting up to 128RGB x 128 dot matrix display. This chip is designed for Common Cathode type OLED/PLED panel.The SSD1351 has embedded Graphic Display Data RAM (GDDRAM). It supports with 8, 16, 18 bits 8080 / 6800 parallel interface, Serial Peripheral Interface. It has 256-step contrast and 262K color control, giving vivid color display on OLED panels.

LibDriver SSD1351 is the full function driver of SSD1351 launched by LibDriver.It provides the functions of drawing single point, filling block, image display, etc. LibDriver is MISRA compliant.

Table of Contents

Instruction

/src includes LibDriver SSD1351 source files.

/interface includes LibDriver SSD1351 SPI platform independent template.

/test includes LibDriver SSD1351 driver test code and this code can test the chip necessary function simply.

/example includes LibDriver SSD1351 sample code.

/doc includes LibDriver SSD1351 offline document.

/datasheet includes SSD1351 datasheet.

/project includes the common Linux and MCU development board sample code. All projects use the shell script to debug the driver and the detail instruction can be found in each project's README.md.

Install

Reference /interface SPI platform independent template and finish your platform SPI driver.

Add /src, /interface and /example to your project.

Usage

example basic

#include "driver_ssd1351_basic.h"

uint8_t res;

res = ssd1351_basic_init();
if (res != 0)
{
    ssd1351_interface_debug_print("ssd1351: init failed.\n");

    return 1;
}

...

res = ssd1351_basic_clear();
if (res != 0)
{
    ssd1351_interface_debug_print("ssd1351: clear screen failed.\n");
    (void)ssd1351_basic_deinit();

    return 1;
}
res = ssd1351_basic_string(0, 0, "123", 3, 0xFFFF, SSD1351_FONT_16);
if (res != 0)
{
    ssd1351_interface_debug_print("ssd1351: show string failed.\n");
    (void)ssd1351_basic_deinit();

    return 1;
}

...

res = ssd1351_basic_rect(0, 32, 32, 32, 0xFFFF);
if (res != 0)
{
    (void)ssd1351_basic_deinit();

    return 1;
}

...

(void)ssd1351_basic_deinit();

return 0;

example advance

Image extraction format and color format is RGB565.

#include "driver_ssd1351_advance.h"

uint8_t res;
uint16_t image[16384];

res = ssd1351_advance_init();
if (res != 0)
{
    ssd1351_interface_debug_print("ssd1351: init failed.\n");

    return 1;
}

...

res = ssd1351_advance_clear();
if (res != 0)
{
    ssd1351_interface_debug_print("ssd1351: clear screen failed.\n");
    (void)ssd1351_advance_deinit();

    return 1;
}
res = ssd1351_advance_string(0, 0, "123", 3, 0xFFFF, SSD1351_FONT_16);
if (res != 0)
{
    ssd1351_interface_debug_print("ssd1351: show string failed.\n");
    (void)ssd1351_advance_deinit();

    return 1;
}

...

res = ssd1351_advance_write_point(56, 56, 0xFF00);
if (res != 0)
{
    (void)ssd1351_advance_deinit();

    return 1;
}

...

res = ssd1351_advance_rect(0, 32, 32, 32, 0xFFFF);
if (res != 0)
{
    (void)ssd1351_advance_deinit();

    return 1;
}

...

res = ssd1351_advance_set_scroll(1, 0, 128, SSD1351_SCROLL_MODE_NORMAL);
if (res != 0)
{
    (void)ssd1351_advance_deinit();

    return 1;
}
res = ssd1351_advance_enable_scroll();
if (res != 0)
{
    (void)ssd1351_advance_deinit();

    return 1;
}

...

res = ssd1351_advance_draw_pictrue_16bits(0, 0, 0, 0, image);
if (res != 0)
{
    (void)ssd1351_advance_deinit();

    return 1;
}

...

(void)ssd1351_advance_deinit();

return 0;

Document

Online documents: https://www.libdriver.com/docs/ssd1351/index.html

Offline documents: /doc/html/index.html

Contributing

Please sent an e-mail to [email protected]

License

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

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.

Contact Us

Please sent an e-mail to [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].