LibDriver SSD1351  2.0.0
SSD1351 full function driver
driver_ssd1351_basic.h File Reference

driver ssd1351 basic header file More...

Go to the source code of this file.

Macros

#define SSD1351_BASIC_DEFAULT_CLOCK_DIV   0x01
 ssd1351 basic example default definition More...
 
#define SSD1351_BASIC_DEFAULT_OSCILLATOR_FREQUENCY   0x0F
 
#define SSD1351_BASIC_DEFAULT_MUX_RATIO   0x7F
 
#define SSD1351_BASIC_DEFAULT_DISPLAY_OFFSET   0x00
 
#define SSD1351_BASIC_DEFAULT_DISPLAY_START_LINE   0x00
 
#define SSD1351_BASIC_DEFAULT_ADDRESS_INCREMENT   SSD1351_ADDRESS_INCREMENT_HORIZONTAL
 
#define SSD1351_BASIC_DEFAULT_COLOR_DEPTH   SSD1351_COLOR_DEPTH_65K
 
#define SSD1351_BASIC_DEFAULT_SEG0_MAP   SSD1351_SEG0_ADDRESS_0
 
#define SSD1351_BASIC_DEFAULT_COLOR_SEQUENCE   SSD1351_COLOR_SEQUENCE_C_B_A
 
#define SSD1351_BASIC_DEFAULT_SCAN_MODE   SSD1351_SCAN_MODE_COM_N_1_COM_0
 
#define SSD1351_BASIC_DEFAULT_COM_SPLIT_ODD_EVEN   SSD1351_BOOL_TRUE
 
#define SSD1351_BASIC_DEFAULT_GPIO0_MODE   SSD1351_GPIO_PIN_INPUT_DISABLED
 
#define SSD1351_BASIC_DEFAULT_GPIO1_MODE   SSD1351_GPIO_PIN_INPUT_DISABLED
 
#define SSD1351_BASIC_DEFAULT_SELECT_VDD   SSD1351_SELECT_VDD_INTERNAL
 
#define SSD1351_BASIC_DEFAULT_SELECT_PARALLEL   SSD1351_SELECT_PARALLEL_8_BIT
 
#define SSD1351_BASIC_DEFAULT_SEGMENT_LOW_VOLTAGE   SSD1351_SEGMENT_LOW_VOLTAGE_EXTERNAL_VSL
 
#define SSD1351_BASIC_DEFAULT_CONTRAST_A   0xC8
 
#define SSD1351_BASIC_DEFAULT_CONTRAST_B   0x80
 
#define SSD1351_BASIC_DEFAULT_CONTRAST_C   0xC8
 
#define SSD1351_BASIC_DEFAULT_MASTER_CONTRAST_CURRENT   0x0A
 
#define SSD1351_BASIC_DEFAULT_PHASE1_PERIOD   0x02
 
#define SSD1351_BASIC_DEFAULT_PHASE2_PERIOD   0x03
 
#define SSD1351_BASIC_DEFAULT_PRE_CHARGE_VOLTAGE   0x17
 
#define SSD1351_BASIC_DEFAULT_VCOMH_VOLTAGE   0x05
 
#define SSD1351_BASIC_DEFAULT_SECOND_PRE_CHARGE_PERIOD   0x01
 

Functions

uint8_t ssd1351_basic_init (void)
 basic example init More...
 
uint8_t ssd1351_basic_deinit (void)
 basic example deinit More...
 
uint8_t ssd1351_basic_clear (void)
 basic example clear More...
 
uint8_t ssd1351_basic_display_on (void)
 basic example display on More...
 
uint8_t ssd1351_basic_display_off (void)
 basic example display off More...
 
uint8_t ssd1351_basic_write_point (uint8_t x, uint8_t y, uint32_t color)
 basic example write a point More...
 
uint8_t ssd1351_basic_string (uint8_t x, uint8_t y, char *str, uint16_t len, uint32_t color, ssd1351_font_t font)
 basic example draw a string More...
 
uint8_t ssd1351_basic_rect (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint32_t color)
 basic example fill a rectangle More...
 
uint8_t ssd1351_basic_draw_picture (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint32_t *img)
 basic example draw a picture More...
 
uint8_t ssd1351_basic_draw_picture_16bits (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint16_t *img)
 basic example draw a 16 bits picture More...
 

Detailed Description

driver ssd1351 basic header file

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.

Version
2.0.0
Author
Shifeng Li
Date
2021-04-08

history

Date Version Author Description
2021/04/08 2.0 Shifeng Li format the code
2020/12/18 1.0 Shifeng Li first upload

Definition in file driver_ssd1351_basic.h.