DIY Logging Volt/Ampmeter
ssd1306_conf.h
Go to the documentation of this file.
1 /**
2  * Private configuration file for the SSD1306 library.
3  * This example is configured for STM32F0, I2C and including all fonts.
4  */
5 
6 #ifndef __SSD1306_CONF_H__
7 #define __SSD1306_CONF_H__
8 
9 // Choose a microcontroller family
10 //#define STM32F0
11 #define STM32F1
12 //#define STM32F4
13 //#define STM32L0
14 //#define STM32L4
15 //#define STM32F3
16 //#define STM32H7
17 //#define STM32F7
18 
19 // Choose a bus
20 #define SSD1306_USE_I2C
21 //#define SSD1306_USE_SPI
22 
23 // I2C Configuration
24 #define SSD1306_I2C_PORT hi2c1
25 #define SSD1306_I2C_ADDR 0x78 //(0x7A << 1)
26 
27 // SPI Configuration
28 //#define SSD1306_SPI_PORT hspi1
29 //#define SSD1306_CS_Port OLED_CS_GPIO_Port
30 //#define SSD1306_CS_Pin OLED_CS_Pin
31 //#define SSD1306_DC_Port OLED_DC_GPIO_Port
32 //#define SSD1306_DC_Pin OLED_DC_Pin
33 //#define SSD1306_Reset_Port OLED_Res_GPIO_Port
34 //#define SSD1306_Reset_Pin OLED_Res_Pin
35 
36 // Mirror the screen if needed
37 // #define SSD1306_MIRROR_VERT
38 // #define SSD1306_MIRROR_HORIZ
39 
40 // Set inverse color if needed
41 // # define SSD1306_INVERSE_COLOR
42 
43 // Include only needed fonts
44 #define SSD1306_INCLUDE_FONT_6x8
45 #define SSD1306_INCLUDE_FONT_7x10
46 #define SSD1306_INCLUDE_FONT_11x18
47 #define SSD1306_INCLUDE_FONT_16x26
48 
49 // Some OLEDs don't display anything in first two columns.
50 // In this case change the following macro to 130.
51 // The default value is 128.
52  #define SSD1306_WIDTH 130
53 
54 // The height can be changed as well if necessary.
55 // It can be 32, 64 or 128. The default value is 64.
56 // #define SSD1306_HEIGHT 64
57 
58 #endif /* __SSD1306_CONF_H__ */