LibDriver SSD1315
Loading...
Searching...
No Matches
driver_ssd1315_advance.h File Reference

driver ssd1315 advance header file More...

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

Go to the source code of this file.

Macros

#define SSD1315_ADVANCE_DEFAULT_DESELECT_LEVEL   SSD1315_DESELECT_LEVEL_0P77
 ssd1315 advance example default definition
#define SSD1315_ADVANCE_DEFAULT_LEFT_RIGHT_REMAP   SSD1315_LEFT_RIGHT_REMAP_DISABLE
#define SSD1315_ADVANCE_DEFAULT_PIN_CONF   SSD1315_PIN_CONF_ALTERNATIVE
#define SSD1315_ADVANCE_DEFAULT_PHASE1_PERIOD   0x01
#define SSD1315_ADVANCE_DEFAULT_PHASE2_PERIOD   0x0F
#define SSD1315_ADVANCE_DEFAULT_IREF   SSD1315_IREF_ENABLE
#define SSD1315_ADVANCE_DEFAULT_IREF_VALUE   SSD1315_IREF_VALUE_19UA_150UA
#define SSD1315_ADVANCE_DEFAULT_OSCILLATOR_FREQUENCY   0x08
#define SSD1315_ADVANCE_DEFAULT_CLOCK_DIVIDE   0x00
#define SSD1315_ADVANCE_DEFAULT_DISPLAY_OFFSET   0x00
#define SSD1315_ADVANCE_DEFAULT_MULTIPLEX_RATIO   0x3F
#define SSD1315_ADVANCE_DEFAULT_DISPLAY_MODE   SSD1315_DISPLAY_MODE_NORMAL
#define SSD1315_ADVANCE_DEFAULT_SCAN_DIRECTION   SSD1315_SCAN_DIRECTION_COMN_1_START
#define SSD1315_ADVANCE_DEFAULT_SEGMENT   SSD1315_SEGMENT_COLUMN_ADDRESS_127
#define SSD1315_ADVANCE_DEFAULT_CONTRAST   0xCF
#define SSD1315_ADVANCE_DEFAULT_ZOOM_IN   SSD1315_ZOOM_IN_DISABLE
#define SSD1315_ADVANCE_DEFAULT_FADE_BLINKING_MODE   SSD1315_FADE_BLINKING_MODE_DISABLE
#define SSD1315_ADVANCE_DEFAULT_FADE_FRAMES   0x00
#define SSD1315_ADVANCE_DEFAULT_DISPLAY_START_LINE   0x00
#define SSD1315_ADVANCE_DEFAULT_HIGH_COLUMN_START_ADDRESS   0x00
#define SSD1315_ADVANCE_DEFAULT_LOW_COLUMN_START_ADDRESS   0x00
#define SSD1315_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_START   0x00
#define SSD1315_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_END   0x07
#define SSD1315_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_START   0x00
#define SSD1315_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_END   0x7F

Functions

uint8_t ssd1315_advance_init (ssd1315_interface_t interface, ssd1315_address_t addr)
 advance example init
uint8_t ssd1315_advance_deinit (void)
 advance example deinit
uint8_t ssd1315_advance_display_on (void)
 advance example display on
uint8_t ssd1315_advance_display_off (void)
 advance example display off
uint8_t ssd1315_advance_clear (void)
 advance example clear
uint8_t ssd1315_advance_write_point (uint8_t x, uint8_t y, uint8_t data)
 advance example write a point
uint8_t ssd1315_advance_read_point (uint8_t x, uint8_t y, uint8_t *data)
 advance example read a point
uint8_t ssd1315_advance_string (uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1315_font_t font)
 advance example draw a string
uint8_t ssd1315_advance_rect (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
 advance example fill a rectangle
uint8_t ssd1315_advance_picture (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
 advance example draw a picture
uint8_t ssd1315_advance_enable_zoom_in (void)
 advance example enable the zoom in
uint8_t ssd1315_advance_disable_zoom_in (void)
 advance example disable the zoom in
uint8_t ssd1315_advance_fade_blinking (ssd1315_fade_blinking_mode_t mode, uint8_t frames)
 advance example set the fade blinking mode
uint8_t ssd1315_advance_deactivate_scroll (void)
 advance example deactivate the scroll
uint8_t ssd1315_advance_vertical_left_horizontal_scroll (uint8_t start_page_addr, uint8_t end_page_addr, uint8_t vertical_scrolling_offset, ssd1315_scroll_frame_t frames)
 advance example enable the left horizontal scroll
uint8_t ssd1315_advance_vertical_right_horizontal_scroll (uint8_t start_page_addr, uint8_t end_page_addr, uint8_t vertical_scrolling_offset, ssd1315_scroll_frame_t frames)
 advance example enable the right horizontal scroll

Detailed Description

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

history

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

Definition in file driver_ssd1315_advance.h.