|
DIY Logging Volt/Ampmeter
|
#include "ssd1306.h"#include <math.h>#include <stdlib.h>#include <string.h>#include "stm32f1xx_ll_utils.h"Go to the source code of this file.
Macros | |
| #define | CIRCLE_APPROXIMATION_SEGMENTS 36 |
Functions | |
| void | ssd1306_Reset (void) |
| void | ssd1306_SelectDisplay (uint8_t display) |
| void | ssd1306_WriteCommand (uint8_t byte) |
| void | ssd1306_WriteData (uint8_t *buffer, size_t buff_size) |
| SSD1306_Error_t | ssd1306_FillBuffer (uint8_t *buf, uint32_t len) |
| void | ssd1306_Init (void) |
| void | ssd1306_Fill (SSD1306_COLOR color) |
| void | ssd1306_UpdateScreen (void) |
| void | ssd1306_DrawPixel (uint8_t x, uint8_t y, SSD1306_COLOR color) |
| char | ssd1306_WriteChar (char ch, FontDef Font, SSD1306_COLOR color) |
| char | ssd1306_WriteString (char *str, FontDef Font, SSD1306_COLOR color) |
| void | ssd1306_SetCursor (uint8_t x, uint8_t y) |
| void | ssd1306_Line (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, SSD1306_COLOR color) |
| void | ssd1306_Polyline (const SSD1306_VERTEX *par_vertex, uint16_t par_size, SSD1306_COLOR color) |
| static float | ssd1306_DegToRad (float par_deg) |
| static uint16_t | ssd1306_NormalizeTo0_360 (uint16_t par_deg) |
| void | ssd1306_DrawArc (uint8_t x, uint8_t y, uint8_t radius, uint16_t start_angle, uint16_t sweep, SSD1306_COLOR color) |
| void | ssd1306_DrawCircle (uint8_t par_x, uint8_t par_y, uint8_t par_r, SSD1306_COLOR par_color) |
| void | ssd1306_DrawRectangle (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, SSD1306_COLOR color) |
| void | ssd1306_SetContrast (const uint8_t value) |
| Sets the contrast of the display. More... | |
| void | ssd1306_SetDisplayOn (const uint8_t on) |
| Set Display ON/OFF. More... | |
| uint8_t | ssd1306_GetDisplayOn () |
| Reads DisplayOn state. More... | |
Variables | |
| uint8_t | ssd1306Address |
| uint8_t | ssd1306Display |
| static uint8_t | SSD1306_BufferLeft [130 *64/8] |
| static uint8_t | SSD1306_BufferRight [130 *64/8] |
| static SSD1306_t | SSD1306Left |
| static SSD1306_t | SSD1306Right |
| #define CIRCLE_APPROXIMATION_SEGMENTS 36 |
|
static |
| void ssd1306_DrawArc | ( | uint8_t | x, |
| uint8_t | y, | ||
| uint8_t | radius, | ||
| uint16_t | start_angle, | ||
| uint16_t | sweep, | ||
| SSD1306_COLOR | color | ||
| ) |
| void ssd1306_DrawCircle | ( | uint8_t | par_x, |
| uint8_t | par_y, | ||
| uint8_t | par_r, | ||
| SSD1306_COLOR | par_color | ||
| ) |
| void ssd1306_DrawPixel | ( | uint8_t | x, |
| uint8_t | y, | ||
| SSD1306_COLOR | color | ||
| ) |
Definition at line 239 of file ssd1306.c.
| void ssd1306_DrawRectangle | ( | uint8_t | x1, |
| uint8_t | y1, | ||
| uint8_t | x2, | ||
| uint8_t | y2, | ||
| SSD1306_COLOR | color | ||
| ) |
| void ssd1306_Fill | ( | SSD1306_COLOR | color | ) |
| SSD1306_Error_t ssd1306_FillBuffer | ( | uint8_t * | buf, |
| uint32_t | len | ||
| ) |
| uint8_t ssd1306_GetDisplayOn | ( | ) |
| void ssd1306_Init | ( | void | ) |
Definition at line 94 of file ssd1306.c.
| void ssd1306_Line | ( | uint8_t | x1, |
| uint8_t | y1, | ||
| uint8_t | x2, | ||
| uint8_t | y2, | ||
| SSD1306_COLOR | color | ||
| ) |
|
static |
| void ssd1306_Polyline | ( | const SSD1306_VERTEX * | par_vertex, |
| uint16_t | par_size, | ||
| SSD1306_COLOR | color | ||
| ) |
Definition at line 394 of file ssd1306.c.
| void ssd1306_Reset | ( | void | ) |
| void ssd1306_SetContrast | ( | const uint8_t | value | ) |
| void ssd1306_SetDisplayOn | ( | const uint8_t | on | ) |
| void ssd1306_UpdateScreen | ( | void | ) |
Definition at line 220 of file ssd1306.c.
| char ssd1306_WriteChar | ( | char | ch, |
| FontDef | Font, | ||
| SSD1306_COLOR | color | ||
| ) |
Definition at line 274 of file ssd1306.c.
| void ssd1306_WriteData | ( | uint8_t * | buffer, |
| size_t | buff_size | ||
| ) |
| char ssd1306_WriteString | ( | char * | str, |
| FontDef | Font, | ||
| SSD1306_COLOR | color | ||
| ) |