ssd1306 stm32l010

Dependents:   oled_test7_16x24_010_1 i2c_HT16K33_test1_767_3 HAL_oled_16x24_010_1

Committer:
caa45040
Date:
Tue Aug 02 06:48:13 2022 +0000
Revision:
0:5d70351255d1
ssd1306 stm32l010

Who changed what in which revision?

UserRevisionLine numberNew contents of line
caa45040 0:5d70351255d1 1
caa45040 0:5d70351255d1 2 #ifndef _FONT_16x24_H_
caa45040 0:5d70351255d1 3 #define _FONT_16x24_H_
caa45040 0:5d70351255d1 4
caa45040 0:5d70351255d1 5 //----- DEFINES -----
caa45040 0:5d70351255d1 6 #define FONT16x24_START 0x20
caa45040 0:5d70351255d1 7 #define FONT16x24_END 0x44
caa45040 0:5d70351255d1 8 #define FONT16x24_WIDTH 11
caa45040 0:5d70351255d1 9 #define FONT16x24_HEIGHT 24
caa45040 0:5d70351255d1 10 #define FONT16x24_BYTES 3
caa45040 0:5d70351255d1 11
caa45040 0:5d70351255d1 12 //Used for displaying numbers 0 - 9 and '+', '-', '.'
caa45040 0:5d70351255d1 13
caa45040 0:5d70351255d1 14 const uint8_t font_16x24[36][3][11] =
caa45040 0:5d70351255d1 15 {
caa45040 0:5d70351255d1 16
caa45040 0:5d70351255d1 17 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x20
caa45040 0:5d70351255d1 18 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x21
caa45040 0:5d70351255d1 19 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x22
caa45040 0:5d70351255d1 20 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x23
caa45040 0:5d70351255d1 21 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x24
caa45040 0:5d70351255d1 22 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x25
caa45040 0:5d70351255d1 23 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x26
caa45040 0:5d70351255d1 24 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x27
caa45040 0:5d70351255d1 25 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x28
caa45040 0:5d70351255d1 26 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x29
caa45040 0:5d70351255d1 27 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x2A
caa45040 0:5d70351255d1 28
caa45040 0:5d70351255d1 29 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,64,64,64,254,254,64,64 , 0,0,0,0,0,0,0,15,15,0,0 ,// '+'// 0x2B
caa45040 0:5d70351255d1 30 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// // 0x2C
caa45040 0:5d70351255d1 31
caa45040 0:5d70351255d1 32 0,0,0,0,0,0,0,0,0,0,0 , 0,64,64,64,64,64,64,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// '-'// 0x2D
caa45040 0:5d70351255d1 33 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,60,60,60,0,0,0,0,0 ,// '.'// 0x2E
caa45040 0:5d70351255d1 34 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x2F
caa45040 0:5d70351255d1 35
caa45040 0:5d70351255d1 36 0,128,192,224,224,96,224,224,192,128,0 , 112,255,255,1,0,0,0,0,255,255,254 , 0,15,31,60,56,48,56,56,31,15,3 , //'0' 0x30
caa45040 0:5d70351255d1 37 0,0,0,0,128,224,224,0,0,0,0 , 0,0,3,3,3,255,255,0,0,0,0 , 0,0,56,56,56,63,63,56,56,56,0 , //'1' 0x31
caa45040 0:5d70351255d1 38 0,192,192,224,96,96,224,224,192,128,0 , 0,1,0,0,128,192,224,249,63,31,0 , 0,60,62,63,63,59,57,56,56,56,56 , //'2' 0x32
caa45040 0:5d70351255d1 39 0,192,224,224,96,96,224,224,192,192,0 , 0,1,0,0,48,48,56,125,239,207,0 , 0,28,56,56,48,48,56,60,31,15,1 , //'3' 0x33
caa45040 0:5d70351255d1 40 0,0,0,0,0,128,192,224,224,0,0 , 224,240,248,222,207,199,193,255,255,192,192 , 0,0,0,0,0,0,0,63,63,0,0 , //'4' 0x34
caa45040 0:5d70351255d1 41 0,224,224,224,224,224,224,224,224,224,224 , 0,63,63,63,56,56,48,112,240,224,0 , 0,28,56,56,48,48,56,60,31,15,1 , //'5' 0x35
caa45040 0:5d70351255d1 42 0,0,128,192,192,224,96,96,224,224,0 , 224,254,255,55,57,24,24,56,240,240,192 , 0,15,31,28,56,48,48,56,31,15,7 , //'6' 0x36
caa45040 0:5d70351255d1 43 0,224,224,224,224,224,224,224,224,224,224 , 0,0,0,0,128,224,248,126,31,7,1 , 0,0,56,62,31,7,1,0,0,0,0 , //'7' 0x37
caa45040 0:5d70351255d1 44 0,128,192,224,224,96,96,224,192,192,0 , 0,207,255,127,56,48,112,112,255,239,199 , 3,15,31,60,56,48,48,56,31,31,15 , //'8' 0x38
caa45040 0:5d70351255d1 45 0,128,192,224,224,96,224,224,192,128,0 , 12,63,127,241,224,192,192,225,255,255,254 , 0,0,56,48,48,56,56,30,15,7,0 , //'9' 0x39
caa45040 0:5d70351255d1 46 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3A
caa45040 0:5d70351255d1 47 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3B
caa45040 0:5d70351255d1 48 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3C
caa45040 0:5d70351255d1 49 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3D
caa45040 0:5d70351255d1 50 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3E
caa45040 0:5d70351255d1 51 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x3F
caa45040 0:5d70351255d1 52 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x40
caa45040 0:5d70351255d1 53 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x41
caa45040 0:5d70351255d1 54 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 , 0,0,0,0,0,0,0,0,0,0,0 ,// 0x42
caa45040 0:5d70351255d1 55 0,128,192,224,224,96,224,224,192,128,0 , 112,112,112,1,0,0,0,0,112,112,112 , 0,0,0,0,0,0,0,0,0,0,0 //'C' 0x43
caa45040 0:5d70351255d1 56 };
caa45040 0:5d70351255d1 57
caa45040 0:5d70351255d1 58 #endif