Jens Altenburg
/
Fachbuch_Initialisierungen
Initialisation Nucleo-F446 by Jens Altenburg
font6_8.h@0:9b6fbe273511, 2021-03-17 (annotated)
- Committer:
- prof_al
- Date:
- Wed Mar 17 13:55:03 2021 +0000
- Revision:
- 0:9b6fbe273511
Hardware Abstraction Layer (HAL) Nucleo-F446
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
prof_al | 0:9b6fbe273511 | 1 | /** |
prof_al | 0:9b6fbe273511 | 2 | * SSD1306xLED - Library for the SSD1306 based OLED/PLED 128x64 displays |
prof_al | 0:9b6fbe273511 | 3 | * |
prof_al | 0:9b6fbe273511 | 4 | * @author Neven Boyanov |
prof_al | 0:9b6fbe273511 | 5 | * |
prof_al | 0:9b6fbe273511 | 6 | * This is part of the Tinusaur/SSD1306xLED project. |
prof_al | 0:9b6fbe273511 | 7 | * |
prof_al | 0:9b6fbe273511 | 8 | * Copyright (c) 2018 Neven Boyanov, The Tinusaur Team. All Rights Reserved. |
prof_al | 0:9b6fbe273511 | 9 | * Distributed as open source software under MIT License, see LICENSE.txt file. |
prof_al | 0:9b6fbe273511 | 10 | * Retain in your source code the link http://tinusaur.org to the Tinusaur project. |
prof_al | 0:9b6fbe273511 | 11 | * |
prof_al | 0:9b6fbe273511 | 12 | * Source code available at: https://bitbucket.org/tinusaur/ssd1306xled |
prof_al | 0:9b6fbe273511 | 13 | * |
prof_al | 0:9b6fbe273511 | 14 | */ |
prof_al | 0:9b6fbe273511 | 15 | |
prof_al | 0:9b6fbe273511 | 16 | // ============================================================================ |
prof_al | 0:9b6fbe273511 | 17 | |
prof_al | 0:9b6fbe273511 | 18 | #include "main.h" |
prof_al | 0:9b6fbe273511 | 19 | |
prof_al | 0:9b6fbe273511 | 20 | // ---------------------------------------------------------------------------- |
prof_al | 0:9b6fbe273511 | 21 | |
prof_al | 0:9b6fbe273511 | 22 | /* Standard ASCII 6x8 font */ |
prof_al | 0:9b6fbe273511 | 23 | const byte ssd1306xled_font6x8data[] = { |
prof_al | 0:9b6fbe273511 | 24 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // sp |
prof_al | 0:9b6fbe273511 | 25 | 0x00, 0x00, 0x00, 0x2f, 0x00, 0x00, // ! |
prof_al | 0:9b6fbe273511 | 26 | 0x00, 0x00, 0x07, 0x00, 0x07, 0x00, // " |
prof_al | 0:9b6fbe273511 | 27 | 0x00, 0x14, 0x7f, 0x14, 0x7f, 0x14, // # |
prof_al | 0:9b6fbe273511 | 28 | 0x00, 0x24, 0x2a, 0x7f, 0x2a, 0x12, // $ |
prof_al | 0:9b6fbe273511 | 29 | 0x00, 0x62, 0x64, 0x08, 0x13, 0x23, // % |
prof_al | 0:9b6fbe273511 | 30 | 0x00, 0x36, 0x49, 0x55, 0x22, 0x50, // & |
prof_al | 0:9b6fbe273511 | 31 | 0x00, 0x00, 0x05, 0x03, 0x00, 0x00, // ' |
prof_al | 0:9b6fbe273511 | 32 | 0x00, 0x00, 0x1c, 0x22, 0x41, 0x00, // ( |
prof_al | 0:9b6fbe273511 | 33 | 0x00, 0x00, 0x41, 0x22, 0x1c, 0x00, // ) |
prof_al | 0:9b6fbe273511 | 34 | 0x00, 0x14, 0x08, 0x3E, 0x08, 0x14, // * |
prof_al | 0:9b6fbe273511 | 35 | 0x00, 0x08, 0x08, 0x3E, 0x08, 0x08, // + |
prof_al | 0:9b6fbe273511 | 36 | 0x00, 0x00, 0x00, 0xA0, 0x60, 0x00, // , |
prof_al | 0:9b6fbe273511 | 37 | 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, // - |
prof_al | 0:9b6fbe273511 | 38 | 0x00, 0x00, 0x60, 0x60, 0x00, 0x00, // . |
prof_al | 0:9b6fbe273511 | 39 | 0x00, 0x20, 0x10, 0x08, 0x04, 0x02, // / |
prof_al | 0:9b6fbe273511 | 40 | 0x00, 0x3E, 0x51, 0x49, 0x45, 0x3E, // 0 |
prof_al | 0:9b6fbe273511 | 41 | 0x00, 0x00, 0x42, 0x7F, 0x40, 0x00, // 1 |
prof_al | 0:9b6fbe273511 | 42 | 0x00, 0x42, 0x61, 0x51, 0x49, 0x46, // 2 |
prof_al | 0:9b6fbe273511 | 43 | 0x00, 0x21, 0x41, 0x45, 0x4B, 0x31, // 3 |
prof_al | 0:9b6fbe273511 | 44 | 0x00, 0x18, 0x14, 0x12, 0x7F, 0x10, // 4 |
prof_al | 0:9b6fbe273511 | 45 | 0x00, 0x27, 0x45, 0x45, 0x45, 0x39, // 5 |
prof_al | 0:9b6fbe273511 | 46 | 0x00, 0x3C, 0x4A, 0x49, 0x49, 0x30, // 6 |
prof_al | 0:9b6fbe273511 | 47 | 0x00, 0x01, 0x71, 0x09, 0x05, 0x03, // 7 |
prof_al | 0:9b6fbe273511 | 48 | 0x00, 0x36, 0x49, 0x49, 0x49, 0x36, // 8 |
prof_al | 0:9b6fbe273511 | 49 | 0x00, 0x06, 0x49, 0x49, 0x29, 0x1E, // 9 |
prof_al | 0:9b6fbe273511 | 50 | 0x00, 0x00, 0x36, 0x36, 0x00, 0x00, // : |
prof_al | 0:9b6fbe273511 | 51 | 0x00, 0x00, 0x56, 0x36, 0x00, 0x00, // ; |
prof_al | 0:9b6fbe273511 | 52 | 0x00, 0x08, 0x14, 0x22, 0x41, 0x00, // < |
prof_al | 0:9b6fbe273511 | 53 | 0x00, 0x14, 0x14, 0x14, 0x14, 0x14, // = |
prof_al | 0:9b6fbe273511 | 54 | 0x00, 0x00, 0x41, 0x22, 0x14, 0x08, // > |
prof_al | 0:9b6fbe273511 | 55 | 0x00, 0x02, 0x01, 0x51, 0x09, 0x06, // ? |
prof_al | 0:9b6fbe273511 | 56 | 0x00, 0x32, 0x49, 0x59, 0x51, 0x3E, // @ |
prof_al | 0:9b6fbe273511 | 57 | 0x00, 0x7C, 0x12, 0x11, 0x12, 0x7C, // A |
prof_al | 0:9b6fbe273511 | 58 | 0x00, 0x7F, 0x49, 0x49, 0x49, 0x36, // B |
prof_al | 0:9b6fbe273511 | 59 | 0x00, 0x3E, 0x41, 0x41, 0x41, 0x22, // C |
prof_al | 0:9b6fbe273511 | 60 | 0x00, 0x7F, 0x41, 0x41, 0x22, 0x1C, // D |
prof_al | 0:9b6fbe273511 | 61 | 0x00, 0x7F, 0x49, 0x49, 0x49, 0x41, // E |
prof_al | 0:9b6fbe273511 | 62 | 0x00, 0x7F, 0x09, 0x09, 0x09, 0x01, // F |
prof_al | 0:9b6fbe273511 | 63 | 0x00, 0x3E, 0x41, 0x49, 0x49, 0x7A, // G |
prof_al | 0:9b6fbe273511 | 64 | 0x00, 0x7F, 0x08, 0x08, 0x08, 0x7F, // H |
prof_al | 0:9b6fbe273511 | 65 | 0x00, 0x00, 0x41, 0x7F, 0x41, 0x00, // I |
prof_al | 0:9b6fbe273511 | 66 | 0x00, 0x20, 0x40, 0x41, 0x3F, 0x01, // J |
prof_al | 0:9b6fbe273511 | 67 | 0x00, 0x7F, 0x08, 0x14, 0x22, 0x41, // K |
prof_al | 0:9b6fbe273511 | 68 | 0x00, 0x7F, 0x40, 0x40, 0x40, 0x40, // L |
prof_al | 0:9b6fbe273511 | 69 | 0x00, 0x7F, 0x02, 0x0C, 0x02, 0x7F, // M |
prof_al | 0:9b6fbe273511 | 70 | 0x00, 0x7F, 0x04, 0x08, 0x10, 0x7F, // N |
prof_al | 0:9b6fbe273511 | 71 | 0x00, 0x3E, 0x41, 0x41, 0x41, 0x3E, // O |
prof_al | 0:9b6fbe273511 | 72 | 0x00, 0x7F, 0x09, 0x09, 0x09, 0x06, // P |
prof_al | 0:9b6fbe273511 | 73 | 0x00, 0x3E, 0x41, 0x51, 0x21, 0x5E, // Q |
prof_al | 0:9b6fbe273511 | 74 | 0x00, 0x7F, 0x09, 0x19, 0x29, 0x46, // R |
prof_al | 0:9b6fbe273511 | 75 | 0x00, 0x46, 0x49, 0x49, 0x49, 0x31, // S |
prof_al | 0:9b6fbe273511 | 76 | 0x00, 0x01, 0x01, 0x7F, 0x01, 0x01, // T |
prof_al | 0:9b6fbe273511 | 77 | 0x00, 0x3F, 0x40, 0x40, 0x40, 0x3F, // U |
prof_al | 0:9b6fbe273511 | 78 | 0x00, 0x1F, 0x20, 0x40, 0x20, 0x1F, // V |
prof_al | 0:9b6fbe273511 | 79 | 0x00, 0x3F, 0x40, 0x38, 0x40, 0x3F, // W |
prof_al | 0:9b6fbe273511 | 80 | 0x00, 0x63, 0x14, 0x08, 0x14, 0x63, // X |
prof_al | 0:9b6fbe273511 | 81 | 0x00, 0x07, 0x08, 0x70, 0x08, 0x07, // Y |
prof_al | 0:9b6fbe273511 | 82 | 0x00, 0x61, 0x51, 0x49, 0x45, 0x43, // Z |
prof_al | 0:9b6fbe273511 | 83 | 0x00, 0x00, 0x7F, 0x41, 0x41, 0x00, // [ |
prof_al | 0:9b6fbe273511 | 84 | 0x00, 0x55, 0x2A, 0x55, 0x2A, 0x55, // 55 |
prof_al | 0:9b6fbe273511 | 85 | 0x00, 0x00, 0x41, 0x41, 0x7F, 0x00, // ] |
prof_al | 0:9b6fbe273511 | 86 | 0x00, 0x04, 0x02, 0x01, 0x02, 0x04, // ^ |
prof_al | 0:9b6fbe273511 | 87 | 0x00, 0x40, 0x40, 0x40, 0x40, 0x40, // _ |
prof_al | 0:9b6fbe273511 | 88 | 0x00, 0x00, 0x01, 0x02, 0x04, 0x00, // ' |
prof_al | 0:9b6fbe273511 | 89 | 0x00, 0x20, 0x54, 0x54, 0x54, 0x78, // a |
prof_al | 0:9b6fbe273511 | 90 | 0x00, 0x7F, 0x48, 0x44, 0x44, 0x38, // b |
prof_al | 0:9b6fbe273511 | 91 | 0x00, 0x38, 0x44, 0x44, 0x44, 0x20, // c |
prof_al | 0:9b6fbe273511 | 92 | 0x00, 0x38, 0x44, 0x44, 0x48, 0x7F, // d |
prof_al | 0:9b6fbe273511 | 93 | 0x00, 0x38, 0x54, 0x54, 0x54, 0x18, // e |
prof_al | 0:9b6fbe273511 | 94 | 0x00, 0x08, 0x7E, 0x09, 0x01, 0x02, // f |
prof_al | 0:9b6fbe273511 | 95 | 0x00, 0x18, 0xA4, 0xA4, 0xA4, 0x7C, // g |
prof_al | 0:9b6fbe273511 | 96 | 0x00, 0x7F, 0x08, 0x04, 0x04, 0x78, // h |
prof_al | 0:9b6fbe273511 | 97 | 0x00, 0x00, 0x44, 0x7D, 0x40, 0x00, // i |
prof_al | 0:9b6fbe273511 | 98 | 0x00, 0x40, 0x80, 0x84, 0x7D, 0x00, // j |
prof_al | 0:9b6fbe273511 | 99 | 0x00, 0x7F, 0x10, 0x28, 0x44, 0x00, // k |
prof_al | 0:9b6fbe273511 | 100 | 0x00, 0x00, 0x41, 0x7F, 0x40, 0x00, // l |
prof_al | 0:9b6fbe273511 | 101 | 0x00, 0x7C, 0x04, 0x18, 0x04, 0x78, // m |
prof_al | 0:9b6fbe273511 | 102 | 0x00, 0x7C, 0x08, 0x04, 0x04, 0x78, // n |
prof_al | 0:9b6fbe273511 | 103 | 0x00, 0x38, 0x44, 0x44, 0x44, 0x38, // o |
prof_al | 0:9b6fbe273511 | 104 | 0x00, 0xFC, 0x24, 0x24, 0x24, 0x18, // p |
prof_al | 0:9b6fbe273511 | 105 | 0x00, 0x18, 0x24, 0x24, 0x18, 0xFC, // q |
prof_al | 0:9b6fbe273511 | 106 | 0x00, 0x7C, 0x08, 0x04, 0x04, 0x08, // r |
prof_al | 0:9b6fbe273511 | 107 | 0x00, 0x48, 0x54, 0x54, 0x54, 0x20, // s |
prof_al | 0:9b6fbe273511 | 108 | 0x00, 0x04, 0x3F, 0x44, 0x40, 0x20, // t |
prof_al | 0:9b6fbe273511 | 109 | 0x00, 0x3C, 0x40, 0x40, 0x20, 0x7C, // u |
prof_al | 0:9b6fbe273511 | 110 | 0x00, 0x1C, 0x20, 0x40, 0x20, 0x1C, // v |
prof_al | 0:9b6fbe273511 | 111 | 0x00, 0x3C, 0x40, 0x30, 0x40, 0x3C, // w |
prof_al | 0:9b6fbe273511 | 112 | 0x00, 0x44, 0x28, 0x10, 0x28, 0x44, // x |
prof_al | 0:9b6fbe273511 | 113 | 0x00, 0x1C, 0xA0, 0xA0, 0xA0, 0x7C, // y |
prof_al | 0:9b6fbe273511 | 114 | 0x00, 0x44, 0x64, 0x54, 0x4C, 0x44, // z |
prof_al | 0:9b6fbe273511 | 115 | 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, // horiz lines |
prof_al | 0:9b6fbe273511 | 116 | }; |
prof_al | 0:9b6fbe273511 | 117 | |
prof_al | 0:9b6fbe273511 | 118 | // ============================================================================ |