LibDriver ST7920
Loading...
Searching...
No Matches
driver_st7920_basic.h File Reference

driver st7920 basic header file More...

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

Go to the source code of this file.

Macros

#define ST7920_BASIC_DEFAULT_BUS_BIT   ST7920_INTERFACE_BUS_BIT_8
 st7920 basic example default definition
#define ST7920_BASIC_DEFAULT_DISPLAY_SHIFT   ST7920_DISPLAY_SHIFT_RIGHT
#define ST7920_BASIC_DEFAULT_ADDRESS_COUNTER_MODE   ST7920_ADDRESS_COUNTER_MODE_INCREASE
#define ST7920_BASIC_DEFAULT_DISPLAY_SHIFT_MODE   ST7920_DISPLAY_SHIFT_MODE_LH

Functions

uint8_t st7920_basic_init (void)
 basic example init
uint8_t st7920_basic_deinit (void)
 basic example deinit
uint8_t st7920_basic_display_on (void)
 basic example display on
uint8_t st7920_basic_display_off (void)
 basic example display off
uint8_t st7920_basic_clear (void)
 basic example clear
uint8_t st7920_basic_clear_string (void)
 basic example clear string
uint8_t st7920_basic_clear_image (void)
 basic example clear image
uint8_t st7920_basic_write_point (uint8_t x, uint8_t y, uint8_t data)
 basic example write a point
uint8_t st7920_basic_read_point (uint8_t x, uint8_t y, uint8_t *data)
 basic example read a point
uint8_t st7920_basic_string (uint8_t x, uint8_t y, char *str)
 basic example write a string
uint8_t st7920_basic_rect (int8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
 basic example fill a rectangle
uint8_t st7920_basic_picture (int8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
 basic example draw a picture
uint8_t st7920_basic_compress_picture (int8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
 basic example draw a compressed picture

Detailed Description

driver st7920 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
2022-03-19

history

Date Version Author Description
2022/03/19 1.0 Shifeng Li first upload

Definition in file driver_st7920_basic.h.