![]() |
Описание библиотеки микросхемы 5023ВС016 процессора "Спутник"
|
This file contains all the functions prototypes for the OLED firmware driver. Подробнее...
#include "SSD1306_Cfg.h"
Макросы | |
#define | OLED_CMD 0 |
#define | OLED_DAT 1 |
Перечисления | |
enum | SCROL_MODE { LeftMode = 0, RightMode, OffMode, OnMode } |
Функции | |
void | SPI2_Init (void) |
void | OLED_SetHorizontalScroll (SCROL_MODE Mode) |
void | OLED_SetDisplayEnable (bool TurnOn) |
void | OLED_ClearDisplay (void) |
Clears the hole OLED. Подробнее... | |
void | Delay_us (uint32_t Time) |
Inserts a delay time. Подробнее... | |
void | OLED_Refresh_Gram (void) |
refresh the GDDRAM Подробнее... | |
void | OLED_SetDisplay (void) |
void | OLED_DrawPoint (uint8_t X, uint8_t Y, uint8_t Fill) |
Displays a pixel. Подробнее... | |
void | OLED_Fill (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t dot) |
Dispalys a full rectangle. Подробнее... | |
void | OLED_ShowChar (uint8_t X, uint8_t Y, uint8_t Chr, uint8_t Size, uint8_t Mode) |
Displays one character. Подробнее... | |
void | OLED_ShowString (uint8_t X, uint8_t Y, const uint8_t *Str) |
Displays a string on the OLED. Подробнее... | |
void | OLED_Init (void) |
initializes the OLED. Подробнее... | |
Переменные | |
uint8_t | OLED_GRAM [128][8] |
This file contains all the functions prototypes for the OLED firmware driver.
THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, WAVESHARE SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
См. определение в файле SSD1306.h
enum SCROL_MODE |
void Delay_us | ( | uint32_t | Time | ) |
void OLED_ClearDisplay | ( | void | ) |
void OLED_DrawPoint | ( | uint8_t | X, |
uint8_t | Y, | ||
uint8_t | Fill | ||
) |
void OLED_Fill | ( | uint8_t | X1, |
uint8_t | Y1, | ||
uint8_t | X2, | ||
uint8_t | Y2, | ||
uint8_t | Dot | ||
) |
Dispalys a full rectangle.
X1 | specifies the upper left corner X position of the rectangle |
Y1 | specifies the upper left corner Y position of the rectangle |
X2 | specifies the lower right corner X positon of the rectangle |
Y2 | specifies the lower right corner Y positon of the rectangle |
None |
void OLED_Init | ( | void | ) |
void OLED_Refresh_Gram | ( | void | ) |
void OLED_SetHorizontalScroll | ( | SCROL_MODE | Mode | ) |
void OLED_ShowChar | ( | uint8_t | X, |
uint8_t | Y, | ||
uint8_t | Chr, | ||
uint8_t | Size, | ||
uint8_t | Mode | ||
) |
Displays one character.
X | This parameter can be one of the following values:
|
Y | This parameter can be one of the following values:
|
Chr | character ascii code,must be between 0x20 and 0x7e. |
Size | specifies the size of the font(12 or 16) |
Mode | whether reverses the character This paramter can be one of following value;
|
None |
void OLED_ShowString | ( | uint8_t | X, |
uint8_t | Y, | ||
const uint8_t * | Str | ||
) |
void SPI2_Init | ( | void | ) |