LibDriver SSD1309
Loading...
Searching...
No Matches
driver_ssd1309_basic.h File Reference

driver ssd1309 basic header file More...

Include dependency graph for driver_ssd1309_basic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SSD1309_BASIC_DEFAULT_DESELECT_LEVEL   SSD1309_DESELECT_LEVEL_0P78
 ssd1309 basic example default definition
#define SSD1309_BASIC_DEFAULT_LEFT_RIGHT_REMAP   SSD1309_LEFT_RIGHT_REMAP_DISABLE
#define SSD1309_BASIC_DEFAULT_PIN_CONF   SSD1309_PIN_CONF_ALTERNATIVE
#define SSD1309_BASIC_DEFAULT_PHASE1_PERIOD   0x01
#define SSD1309_BASIC_DEFAULT_PHASE2_PERIOD   0x0F
#define SSD1309_BASIC_DEFAULT_OSCILLATOR_FREQUENCY   0x08
#define SSD1309_BASIC_DEFAULT_CLOCK_DIVIDE   0x00
#define SSD1309_BASIC_DEFAULT_DISPLAY_OFFSET   0x00
#define SSD1309_BASIC_DEFAULT_MULTIPLEX_RATIO   0x3F
#define SSD1309_BASIC_DEFAULT_DISPLAY_MODE   SSD1309_DISPLAY_MODE_NORMAL
#define SSD1309_BASIC_DEFAULT_SCAN_DIRECTION   SSD1309_SCAN_DIRECTION_COMN_1_START
#define SSD1309_BASIC_DEFAULT_SEGMENT   SSD1309_SEGMENT_COLUMN_ADDRESS_127
#define SSD1309_BASIC_DEFAULT_CONTRAST   0xCF
#define SSD1309_BASIC_DEFAULT_GPIO_CONFIG   SSD1309_GPIO_OUTPUT_LOW
#define SSD1309_BASIC_DEFAULT_DISPLAY_START_LINE   0x00
#define SSD1309_BASIC_DEFAULT_HIGH_COLUMN_START_ADDRESS   0x00
#define SSD1309_BASIC_DEFAULT_LOW_COLUMN_START_ADDRESS   0x00
#define SSD1309_BASIC_DEFAULT_PAGE_ADDRESS_RANGE_START   0x00
#define SSD1309_BASIC_DEFAULT_PAGE_ADDRESS_RANGE_END   0x07
#define SSD1309_BASIC_DEFAULT_COLUMN_ADDRESS_RANGE_START   0x00
#define SSD1309_BASIC_DEFAULT_COLUMN_ADDRESS_RANGE_END   0x7F

Functions

uint8_t ssd1309_basic_init (ssd1309_interface_t interface, ssd1309_address_t addr)
 basic example init
uint8_t ssd1309_basic_deinit (void)
 basic example deinit
uint8_t ssd1309_basic_display_on (void)
 basic example display on
uint8_t ssd1309_basic_display_off (void)
 basic example display off
uint8_t ssd1309_basic_clear (void)
 basic example clear
uint8_t ssd1309_basic_write_point (uint8_t x, uint8_t y, uint8_t data)
 basic example write a point
uint8_t ssd1309_basic_read_point (uint8_t x, uint8_t y, uint8_t *data)
 basic example read a point
uint8_t ssd1309_basic_string (uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1309_font_t font)
 basic example draw a string
uint8_t ssd1309_basic_rect (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
 basic example fill a rectangle
uint8_t ssd1309_basic_picture (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
 basic example draw a picture

Detailed Description

driver ssd1309 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
1.0.0
Author
Shifeng Li
Date
2024-10-30

history

Date Version Author Description
2024/10/30 1.0 Shifeng Li first upload

Definition in file driver_ssd1309_basic.h.