1 /* 2 * Copyright (C) 2022 HiHope Open Source Organization . 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http:// www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * 14 * limitations under the License. 15 */ 16 17 #ifndef HISPARK_PEGASUS_DEMO_SSD1306_DEMO_SSD1306_SSD1306_FONTS_H 18 #define HISPARK_PEGASUS_DEMO_SSD1306_DEMO_SSD1306_SSD1306_FONTS_H 19 #include <stdint.h> 20 21 #ifndef __SSD1306_FONTS_H__ 22 #define __SSD1306_FONTS_H__ 23 24 #include "ssd1306_conf.h" 25 #endif 26 27 typedef struct { 28 const uint8_t FontWidth; /*!< Font width in pixels */ 29 uint8_t FontHeight; /*!< Font height in pixels */ 30 const uint16_t *data; /*!< Pointer to data font data array */ 31 } FontDef; 32 33 #ifdef SSD1306_INCLUDE_FONT_6x8 34 #endif 35 #ifdef SSD1306_INCLUDE_FONT_7x10 36 #endif 37 #ifdef SSD1306_INCLUDE_FONT_11x18 38 #endif 39 #ifdef SSD1306_INCLUDE_FONT_16x26 40 #endif 41 #endif // __SSD1306_FONTS_H__ 42