LibDriver SSD1306
Loading...
Searching...
No Matches
driver_ssd1306_advance.h File Reference

driver ssd1306 advance header file More...

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

Go to the source code of this file.

Macros

#define SSD1306_ADVANCE_DEFAULT_DESELECT_LEVEL   SSD1306_DESELECT_LEVEL_0P77
 ssd1306 advance example default definition
#define SSD1306_ADVANCE_DEFAULT_LEFT_RIGHT_REMAP   SSD1306_LEFT_RIGHT_REMAP_DISABLE
#define SSD1306_ADVANCE_DEFAULT_PIN_CONF   SSD1306_PIN_CONF_ALTERNATIVE
#define SSD1306_ADVANCE_DEFAULT_PHASE1_PERIOD   0x01
#define SSD1306_ADVANCE_DEFAULT_PHASE2_PERIOD   0x0F
#define SSD1306_ADVANCE_DEFAULT_OSCILLATOR_FREQUENCY   0x08
#define SSD1306_ADVANCE_DEFAULT_CLOCK_DIVIDE   0x00
#define SSD1306_ADVANCE_DEFAULT_DISPLAY_OFFSET   0x00
#define SSD1306_ADVANCE_DEFAULT_MULTIPLEX_RATIO   0x3F
#define SSD1306_ADVANCE_DEFAULT_DISPLAY_MODE   SSD1306_DISPLAY_MODE_NORMAL
#define SSD1306_ADVANCE_DEFAULT_SCAN_DIRECTION   SSD1306_SCAN_DIRECTION_COMN_1_START
#define SSD1306_ADVANCE_DEFAULT_SEGMENT   SSD1306_SEGMENT_COLUMN_ADDRESS_127
#define SSD1306_ADVANCE_DEFAULT_CONTRAST   0xCF
#define SSD1306_ADVANCE_DEFAULT_ZOOM_IN   SSD1306_ZOOM_IN_DISABLE
#define SSD1306_ADVANCE_DEFAULT_FADE_BLINKING_MODE   SSD1306_FADE_BLINKING_MODE_DISABLE
#define SSD1306_ADVANCE_DEFAULT_FADE_FRAMES   0x00
#define SSD1306_ADVANCE_DEFAULT_DISPLAY_START_LINE   0x00
#define SSD1306_ADVANCE_DEFAULT_HIGH_COLUMN_START_ADDRESS   0x00
#define SSD1306_ADVANCE_DEFAULT_LOW_COLUMN_START_ADDRESS   0x00
#define SSD1306_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_START   0x00
#define SSD1306_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_END   0x07
#define SSD1306_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_START   0x00
#define SSD1306_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_END   0x7F

Functions

uint8_t ssd1306_advance_init (ssd1306_interface_t interface, ssd1306_address_t addr)
 advance example init
uint8_t ssd1306_advance_deinit (void)
 advance example deinit
uint8_t ssd1306_advance_display_on (void)
 advance example display on
uint8_t ssd1306_advance_display_off (void)
 advance example display off
uint8_t ssd1306_advance_clear (void)
 advance example clear
uint8_t ssd1306_advance_write_point (uint8_t x, uint8_t y, uint8_t data)
 advance example write a point
uint8_t ssd1306_advance_read_point (uint8_t x, uint8_t y, uint8_t *data)
 advance example read a point
uint8_t ssd1306_advance_string (uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1306_font_t font)
 advance example draw a string
uint8_t ssd1306_advance_rect (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
 advance example fill a rectangle
uint8_t ssd1306_advance_picture (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
 advance example draw a picture
uint8_t ssd1306_advance_enable_zoom_in (void)
 advance example enable the zoom in
uint8_t ssd1306_advance_disable_zoom_in (void)
 advance example disable the zoom in
uint8_t ssd1306_advance_fade_blinking (ssd1306_fade_blinking_mode_t mode, uint8_t frames)
 advance example set the fade blinking mode
uint8_t ssd1306_advance_deactivate_scroll (void)
 advance example deactivate the scroll
uint8_t ssd1306_advance_vertical_left_horizontal_scroll (uint8_t start_page_addr, uint8_t end_page_addr, uint8_t rows, ssd1306_scroll_frame_t frames)
 advance example enable the left horizontal scroll
uint8_t ssd1306_advance_vertical_right_horizontal_scroll (uint8_t start_page_addr, uint8_t end_page_addr, uint8_t rows, ssd1306_scroll_frame_t frames)
 advance example enable the right horizontal scroll

Detailed Description

driver ssd1306 advance 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-03-30

history

Date Version Author Description
2021/03/30 2.0 Shifeng Li format the code
2020/12/10 1.0 Shifeng Li first upload

Definition in file driver_ssd1306_advance.h.