31 #define TM_SSD1306_H 100
103 #include "stm32f4xx.h"
105 #include "tm_stm32f4_i2c.h"
106 #include "tm_stm32f4_fonts.h"
107 #include "tm_stm32f4_delay.h"
120 #define SSD1306_I2C I2C3
121 #define SSD1306_I2C_PINSPACK TM_I2C_PinsPack_1
125 #ifndef SSD1306_I2C_ADDR
126 #define SSD1306_I2C_ADDR 0x78
133 #ifndef SSD1306_WIDTH
134 #define SSD1306_WIDTH 128
137 #ifndef SSD1306_HEIGHT
138 #define SSD1306_HEIGHT 64
Definition: tm_stm32f4_ssd1306.h:155
Definition: tm_stm32f4_ssd1306.h:156
char TM_SSD1306_Putc(char ch, TM_FontDef_t *Font, SSD1306_COLOR_t color)
Puts character to internal RAM.
void TM_SSD1306_GotoXY(uint16_t x, uint16_t y)
Sets cursor pointer to desired location for strings.
void TM_SSD1306_DrawPixel(uint16_t x, uint16_t y, SSD1306_COLOR_t color)
Draws pixel at desired location.
void TM_SSD1306_Fill(SSD1306_COLOR_t Color)
Fills entire LCD with desired color.
void TM_SSD1306_DrawRectangle(uint16_t x, uint16_t y, uint16_t w, uint16_t h, SSD1306_COLOR_t c)
Draws rectangle on LCD.
char TM_SSD1306_Puts(char *str, TM_FontDef_t *Font, SSD1306_COLOR_t color)
Puts string to internal RAM.
void TM_SSD1306_DrawLine(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, SSD1306_COLOR_t c)
Draws line on LCD.
void TM_SSD1306_DrawFilledRectangle(uint16_t x, uint16_t y, uint16_t w, uint16_t h, SSD1306_COLOR_t c)
Draws filled rectangle on LCD.
void TM_SSD1306_UpdateScreen(void)
Updates buffer from internal RAM to LCD.
void TM_SSD1306_ToggleInvert(void)
Toggles pixels invertion inside internal RAM.
SSD1306_COLOR_t
SSD1306 color enumeration.
Definition: tm_stm32f4_ssd1306.h:154
void TM_SSD1306_DrawCircle(int16_t x0, int16_t y0, int16_t r, SSD1306_COLOR_t c)
Draws circle to STM buffer.
void TM_SSD1306_DrawTriangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t x3, uint16_t y3, SSD1306_COLOR_t color)
Draws triangle on LCD.
uint8_t TM_SSD1306_Init(void)
Initializes SSD1306 LCD.
void TM_SSD1306_DrawFilledCircle(int16_t x0, int16_t y0, int16_t r, SSD1306_COLOR_t c)
Draws filled circle to STM buffer.
Font structure used on my LCD libraries.
Definition: tm_stm32f4_fonts.h:89