├── .gitattributes ├── .github └── workflows │ └── arduino_build.yml ├── .gitignore ├── .gitmodules ├── LICENSE ├── OpenCO2_Sensor.ino ├── README.md ├── case ├── BACK.obj └── FRONT.obj ├── epd_abstraction.h ├── epd_abstraction.ino ├── esp32-waveshare-epd ├── extras │ └── License.txt ├── keywords.txt ├── library.properties ├── readme_EN.txt └── src │ ├── DEV_Config.cpp │ ├── DEV_Config.h │ ├── EPD.h │ ├── GUI_Paint.cpp │ ├── GUI_Paint.h │ ├── bahn_big.cpp │ ├── bahn_mid.cpp │ ├── bahn_sml.cpp │ ├── font12.cpp │ ├── font16.cpp │ ├── font20.cpp │ ├── font24.cpp │ ├── font8.cpp │ ├── fonts.h │ ├── gotham_big.cpp │ ├── gotham_mid.cpp │ ├── gotham_sml.cpp │ ├── nothing_big.cpp │ ├── nothing_mid.cpp │ ├── nothing_sml.cpp │ └── utility │ ├── Debug.h │ ├── EPD_1in54_V2.cpp │ ├── EPD_1in54_V2.h │ ├── EPD_4in2.cpp │ └── EPD_4in2.h ├── font ├── bahn.indd ├── bahn.png ├── bahn2.png ├── bahn3.png ├── nothing.indd ├── nothing.png ├── nothing2.png └── nothing3.png ├── grafana_OpenCO2_Sensor.json ├── pictures.c ├── pictures.h └── pictures ├── Header.png ├── OTA.jpg ├── animation.gif ├── components.png ├── drawing.png ├── flowchart.png ├── grafana.png ├── header2.png ├── pcb.png ├── schematic.png ├── setup.jpg └── website.png /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.github/workflows/arduino_build.yml: -------------------------------------------------------------------------------- 1 | name: Build OpenCO2_Sensor 2 | 3 | on: push 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | 9 | steps: 10 | - name: Check out repository 11 | uses: actions/checkout@v2 12 | 13 | - uses: arduino/compile-sketches@v1 14 | with: 15 | fqbn: "esp32:esp32:esp32s2" 16 | platforms: | 17 | - name: esp32:esp32 18 | source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json 19 | version: 3.2.0 20 | libraries: | 21 | - name: Adafruit DotStar 22 | - name: Sensirion Core 23 | - name: Sensirion I2C SCD4x 24 | - name: WiFiManager 25 | - name: esp32-waveshare-epd 26 | source-path: ./esp32-waveshare-epd 27 | sketch-paths: | 28 | - . -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | binary/esptool.py 2 | debug_custom.json 3 | debug.cfg 4 | esp32s2.svd 5 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "OpenCO2_Sensor_esphome"] 2 | path = OpenCO2_Sensor_esphome 3 | url = https://github.com/Yourigh/OpenCO2_Sensor_esphome 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 davidkreidler 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OpenCO2 Sensor using ESP32 and SCD4x 2 | 3 | [![Build OpenCO2_Sensor](https://github.com/davidkreidler/OpenCO2_Sensor/actions/workflows/arduino_build.yml/badge.svg)](https://github.com/davidkreidler/OpenCO2_Sensor/actions/workflows/arduino_build.yml) 4 | 5 | ![alt text](https://github.com/davidkreidler/OpenCO2_Sensor/raw/main/pictures/Header.png) 6 | 7 | OpenCO2 Sensor is an Arduino IDE compatible Repository for an E-Ink Indoor air quality Sensor using the ESP32, SCD4X and an RGB LED. 8 | 9 | ## Buy it [here on Tindie](https://www.tindie.com/products/davidkreidler/open-co2-sensor/) 10 | 11 | Especially in winter, when windows are closed, a reminder to ventilate regularly is useful for health, comfort and well-being. Poor indoor air quality can lead to decreased productivity and learning disabilities. Therefore, I developed an Open-source ESP32 project that uses an E-Ink display and a LED to show the indoor CO2 content. Take the small Sensor anywhere you go to monitor the Air Quality, with Battery life of 11+ days. 12 | 13 | # CO2 Sensor 14 | 15 | With the SCD40, Sensirion offers a completely new miniaturized CO2 sensor based on the photoacoustic sensor principle. 16 | The integrated, industry-leading humidity and temperature sensor offers high accuracy with low power consumption. 17 | * Automatic self-calibration ensures the highest long-term stability 18 | * CO2 output range: 400 ppm – 40'000 ppm 19 | * Accuracy: 20 | * CO2 ±(50ppm + 5% of reading) 21 | * Temperature ±0.8°C 22 | * Humidity ±6% 23 | 24 | # Clear E-Ink display 25 | 26 | 1.54" in size with a very high resolution (200x200 Pixel). Enables low power consumption and wide viewing angle. Per partial refresh, readings are updated every five seconds (every 30 seconds in battery mode). 27 | 28 | # RGB LED 29 | 30 | For displaying the air quality as a traffic light (green, yellow, red, magenta). Brightness and color are adjustable via software. 31 | 32 | # Home Assistant 33 | 34 | Add this config to the `configuration.yaml` of your Home Assistant. Below Version 5.4 please change `OpenCO2` to the IP address. 35 | ``` 36 | rest: 37 | scan_interval: 60 38 | resource: http://OpenCO2:9925/metrics 39 | method: GET 40 | sensor: 41 | - name: "CO2" 42 | device_class: carbon_dioxide 43 | unique_id: "d611314f-9010-4d0d-aa3b-37c7f350c82f" 44 | value_template: > 45 | {{ value | regex_findall_index("(?:rco2.*})(\d+)") }} 46 | - name: "Temperature" 47 | unique_id: "d611314f-9010-4d0d-aa3b-37c7f350c821" 48 | device_class: temperature 49 | value_template: > 50 | {{ value | regex_findall_index("(?:atmp.*})((?:\d|\.)+)") }} 51 | - name: "Humidity" 52 | unique_id: "d611314f-9010-4d0d-aa3b-37c7f350c822" 53 | device_class: humidity 54 | value_template: > 55 | {{ value | regex_findall_index("(?:rhum.*})((?:\d|\.)+)") }} 56 | ``` 57 | 58 | # 3D-printed housing 59 | 60 | Size: 4.7 x 4.1 x 2.4 cm 61 | * [3D Model viewer](https://a360.co/3syuvEk) 62 | * [3D File FRONT](https://a360.co/3CSICGq) 63 | * [3D File BACK](https://a360.co/437Ak88) 64 | 65 | ![alt text](https://github.com/davidkreidler/OpenCO2_Sensor/raw/main/pictures/drawing.png) 66 | 67 | # Menu 68 | 69 | Press the Menu button on the backside of the OpenCO2 Sensor. Select an option via long press (1+ sec) or move to next menu point via a short press. Choose between: 70 | * `LED` control color, brightness and when the LED should be enabled 71 | * `Display` can be inverted. Also change the Temperature unit, language and font 72 | * `Calibrate` put the sensor outside for 3+ minutes (only run this, if calibration is needed) 73 | * `History` display up to 24h of CO2, temperature and humidity as a graph. Values can also be exported via QR codes containing 1h of CO2 measurements each. 74 | * `Wi-Fi` enable or disable wireless connections 75 | * `Info` shows MAC Address, serial numbers, uptime, version and battery details 76 | * `Rainbow` fun little easter egg 77 | 78 | # Wi-Fi 79 | 80 | Enable Wi-Fi via the Menu button. When power is connected, an access point `OpenCO2 Sensor` is enabled. Connect to it and navigate to http://192.168.4.1 (it will open automatically on modern Smartphones). Insert your home Wi-Fi credentials under `Configure WiFi`. Choose your network name from the list in the top and insert the password. Click `Save`. The sensor will now be automatically connected. Navigate to [openco2:9925](http://OpenCO2:9925) to see a graph of CO2, Temperature and Humidity measurements. 81 | ![alt text](https://github.com/davidkreidler/OpenCO2_Sensor/raw/main/pictures/setup.jpg) 82 | ![alt text](https://github.com/davidkreidler/OpenCO2_Sensor/raw/main/pictures/website.png) 83 | 84 | # Machine-readable Measurements over WiFi 85 | Connect the sensor to your Wi-Fi network and find out the IP of the sensor in your home network via the ui of your router or on the sensor itself via the button under Menu -> Info . 86 | `curl [IP]:9925/metrics` 87 | 88 | Result: 89 | ``` 90 | # HELP rco2 CO2 value, in ppm 91 | # TYPE rco2 gauge 92 | rco2{id="Open CO2 Sensor",mac="7C:DF:A1:96:B9:72"}571 93 | # HELP atmp Temperature, in degrees Celsius 94 | # TYPE atmp gauge 95 | atmp{id="Open CO2 Sensor",mac="7C:DF:A1:96:B9:72"}25.37 96 | # HELP rhum Relative humidity, in percent 97 | # TYPE rhum gauge 98 | rhum{id="Open CO2 Sensor",mac="7C:DF:A1:96:B9:72"}55.15 99 | ``` 100 | 101 | # AirGradient / Grafana 102 | 103 | Use [internet-pi](https://github.com/geerlingguy/internet-pi) to store the CO2 / Temperature / Humidity data on your Pi. First connect the OpenCO2 Sensor to your Wi-Fi network and follow the instructions https://www.youtube.com/watch?v=Cmr5VNALRAg Then download the https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/main/grafana_OpenCO2_Sensor.json and import it into Grafana. 104 | ![alt text](https://github.com/davidkreidler/OpenCO2_Sensor/raw/main/pictures/grafana.png) 105 | 106 | # Update via USB 107 | 108 | 1. Download `FIRMWARE.BIN` from the latest [release](https://github.com/davidkreidler/OpenCO2_Sensor/releases) 109 | 2. Plug a data USB-C cable into your PC and the Sensor 110 | 3. copy `FIRMWARE.BIN` to the USB device 111 | 112 | # OTA Update 113 | 114 | Download `FIRMWARE.BIN` from the latest [release](https://github.com/davidkreidler/OpenCO2_Sensor/releases). 115 | Enable Wi-Fi via the Menu button, in an area where no previously known network is active. Connect power. Then connect to `OpenCO2 Sensor` and navigate to http://192.168.4.1 . Under `Update` select the `FIRMWARE.BIN` file and click `Update`. The Sensor will restart. 116 | ![alt text](https://github.com/davidkreidler/OpenCO2_Sensor/raw/main/pictures/OTA.jpg) 117 | 118 | # Update via USB (from an old release) 119 | 120 | 1. Download all files from the latest [release](https://github.com/davidkreidler/OpenCO2_Sensor/releases) 121 | 2. Make sure, that the power switch is in the `ON` position (down) 122 | 3. Plug a data USB-C cable into your PC and the Sensor 123 | 4. Hold the Button on the backside of the CO2 Sensor near the USB-C port and shortly push simultaneously the reset ↪️ Button 124 | 5. In Device Manager under `Ports (COM & LPT)` find the COM number and modify it in `update.bat` 125 | 6. Run `update.bat` 126 | 7. Afterwards push the reset ↪️ Button 127 | 128 | # Installation inside the Arduino IDE 129 | 130 | 1. Copy the esp32-waveshare-epd Folder to your `Arduino/libraries/` 131 | 2. [Install the ESP32 support for Arduino IDE](https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/installing.html) 132 | 3. Choose `ESP32S2 Dev Module` under `Tools -> Board -> esp32` 133 | 4. Connect the Sensor as described in step "Update to the latest release" and choose the new Port under `Tools -> Boards -> Port` 134 | 135 | # Dependencies 136 | 137 | * [Adafruit DotStar](https://github.com/adafruit/Adafruit_DotStar) 138 | * [Sensirion Core](https://github.com/Sensirion/arduino-core) 139 | * [Sensirion I2C SCD4x Arduino Library](https://github.com/Sensirion/arduino-i2c-scd4x) 140 | * [WiFiManager](https://github.com/tzapu/WiFiManager) 141 | 142 | ![alt text](https://github.com/davidkreidler/OpenCO2_Sensor/raw/main/pictures/animation.gif) 143 | 144 | ![alt text](https://github.com/davidkreidler/OpenCO2_Sensor/raw/main/pictures/schematic.png) 145 | 146 | ![alt text](https://github.com/davidkreidler/OpenCO2_Sensor/raw/main/pictures/pcb.png) 147 | -------------------------------------------------------------------------------- /epd_abstraction.h: -------------------------------------------------------------------------------- 1 | #ifndef EPD_ABSTRACTION_H 2 | #define EPD_ABSTRACTION_H 3 | 4 | #include 5 | 6 | enum MenuOptions { 7 | LED, 8 | DISPLAY_MENU, 9 | CALIBRATE, 10 | HISTORY, 11 | WLAN, 12 | INFO, 13 | FUN, 14 | NUM_OPTIONS 15 | }; 16 | enum LEDMenuOptions { 17 | onBATTERY, 18 | onUSB, 19 | COLOR, 20 | BRIGHTNESS, 21 | EXIT_LED, 22 | NUM_LED_OPTIONS 23 | }; 24 | enum DisplayMenuOptions { 25 | UPDATE, 26 | INVERT, 27 | TEMP_UNIT, 28 | LANGUAGE, 29 | FONT, 30 | EXIT_DISPLAY, 31 | NUM_DISPLAY_OPTIONS 32 | }; 33 | enum FUNMenuOptions { 34 | RAINBOW, 35 | SNAKE, 36 | //TICTACTOE, 37 | EXIT_FUN, 38 | NUM_FUN_OPTIONS 39 | }; 40 | 41 | /* ENGLISH */ 42 | const char* EnglishMenuItems[NUM_OPTIONS] = { 43 | "LED", 44 | "Display", 45 | "Calibrate", 46 | "History", 47 | "Wi-Fi", 48 | "Info", 49 | "Fun" 50 | }; 51 | const char* EnglishLEDmenuItems[NUM_LED_OPTIONS] = { 52 | "Battery", 53 | "on USB", 54 | "Color", 55 | "Bright", 56 | "Exit" 57 | }; 58 | const char* EnglishOptionsMenuItems[NUM_DISPLAY_OPTIONS] = { 59 | "Update", 60 | "Invert", 61 | "Unit", 62 | "English", 63 | "Font", 64 | "Exit" 65 | }; 66 | const char* EnglishFUNmenuItems[NUM_FUN_OPTIONS] = { 67 | "Rainbow", 68 | "Snake", 69 | //"TicTacToe", 70 | "Exit" 71 | }; 72 | 73 | /* GERMAN */ 74 | const char* GermanMenuItems[NUM_OPTIONS] = { 75 | "LED", 76 | "Display", 77 | "Kalibrieren", 78 | "Historie", 79 | "WLAN", 80 | "Info", 81 | "Spass" 82 | }; 83 | const char* GermanLEDmenuItems[NUM_LED_OPTIONS] = { 84 | "Batterie", 85 | "mit USB", 86 | "Farbe", 87 | "Hell", 88 | "Beenden" 89 | }; 90 | const char* GermanOptionsMenuItems[NUM_DISPLAY_OPTIONS] = { 91 | "Update", 92 | "Invert", 93 | "Einheit", 94 | "German", 95 | "Schrift", 96 | "Beenden" 97 | }; 98 | const char* GermanFUNmenuItems[NUM_FUN_OPTIONS] = { 99 | "Regenbogen", 100 | "Snake", 101 | //"TicTacToe", 102 | "Beenden" 103 | }; 104 | 105 | typedef struct { 106 | uint8_t humidity : 7; // 7 bits (range 0 to 100) 107 | uint16_t temperature : 9; // 9 bits (/10= range 0 to 51.1°C ) 108 | } tempHumData; 109 | 110 | void handleButtonPress(); 111 | void changeFont(int font); 112 | void displayWelcome(); 113 | void initEpdOnce(); 114 | void displayInitTestMode(); 115 | void displayInit(); 116 | void displayLowBattery(); 117 | void displayWriteError(char errorMessage[256]); 118 | void displayWriteMeasuerments(uint16_t co2, uint16_t temperature, uint16_t humidity); 119 | void displayWriteTestResults(float voltage, uint16_t sensorStatus); 120 | void displayBattery(uint8_t percentage); 121 | void updateDisplay(); 122 | void displayImage(const unsigned char* image_buffer); 123 | void displayCalibrationWarning(); 124 | void displayWiFi(bool useWiFi); 125 | void displayWiFiStrengh(); 126 | 127 | #endif /* EPD_ABSTRACTION_H */ 128 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/extras/License.txt: -------------------------------------------------------------------------------- 1 | GNU LESSER GENERAL PUBLIC LICENSE 2 | 3 | Version 2.1, February 1999 4 | 5 | Copyright (C) 1991, 1999 Free Software Foundation, Inc. 6 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 7 | Everyone is permitted to copy and distribute verbatim copies 8 | of this license document, but changing it is not allowed. 9 | 10 | [This is the first released version of the Lesser GPL. It also counts 11 | as the successor of the GNU Library Public License, version 2, hence 12 | the version number 2.1.] 13 | 14 | Preamble 15 | 16 | The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. 17 | 18 | This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. 19 | 20 | When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. 21 | 22 | To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. 23 | 24 | For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. 25 | 26 | We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. 27 | 28 | To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. 29 | 30 | Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. 31 | 32 | Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. 33 | 34 | When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. 35 | 36 | We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. 37 | 38 | For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. 39 | 40 | In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. 41 | 42 | Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. 43 | 44 | The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. 45 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 46 | 47 | 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". 48 | 49 | A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. 50 | 51 | The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) 52 | 53 | "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. 54 | 55 | Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 56 | 57 | 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. 58 | 59 | You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 60 | 61 | 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: 62 | 63 | a) The modified work must itself be a software library. 64 | b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. 65 | c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. 66 | d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. 67 | 68 | (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) 69 | 70 | These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. 71 | 72 | Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. 73 | 74 | In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 75 | 76 | 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. 77 | 78 | Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. 79 | 80 | This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 81 | 82 | 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. 83 | 84 | If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 85 | 86 | 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. 87 | 88 | However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. 89 | 90 | When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. 91 | 92 | If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) 93 | 94 | Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 95 | 96 | 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. 97 | 98 | You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: 99 | 100 | a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) 101 | b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. 102 | c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. 103 | d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. 104 | e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. 105 | 106 | For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. 107 | 108 | It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 109 | 110 | 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: 111 | 112 | a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. 113 | b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 114 | 115 | 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 116 | 117 | 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 118 | 119 | 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 120 | 121 | 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. 122 | 123 | If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. 124 | 125 | It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. 126 | 127 | This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 128 | 129 | 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 130 | 131 | 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. 132 | 133 | Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 134 | 135 | 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. 136 | 137 | NO WARRANTY 138 | 139 | 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 140 | 141 | 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 142 | END OF TERMS AND CONDITIONS 143 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map e-paper 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | 9 | DEBUG KEYWORD1 10 | ####################################### 11 | # Methods and Functions (KEYWORD2) 12 | ####################################### 13 | 14 | Paint_NewImage KEYWORD2 15 | Paint_SelectImage KEYWORD2 16 | Paint_SetRotate KEYWORD2 17 | Paint_SetMirroring KEYWORD2 18 | Paint_SetPixel KEYWORD2 19 | Paint_Clear KEYWORD2 20 | Paint_ClearWindows KEYWORD2 21 | Paint_DrawPoint KEYWORD2 22 | Paint_DrawLine KEYWORD2 23 | Paint_DrawRectangle KEYWORD2 24 | Paint_DrawCircle KEYWORD2 25 | Paint_DrawChar KEYWORD2 26 | Paint_DrawString_EN KEYWORD2 27 | Paint_DrawString_CN KEYWORD2 28 | Paint_DrawNum KEYWORD2 29 | Paint_DrawTime KEYWORD2 30 | Paint_DrawImage KEYWORD2 31 | 32 | EPD_1IN54_Init KEYWORD2 33 | EPD_1IN54_Clear KEYWORD2 34 | EPD_1IN54_Display KEYWORD2 35 | ####################################### 36 | # Constants (LITERAL1) 37 | ####################################### 38 | 39 | IMAGE_DATA LITERAL1 40 | 41 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/library.properties: -------------------------------------------------------------------------------- 1 | name=waveshare-e-Paper 2 | version=1.0.0 3 | author=waveshare 4 | maintainer=waveshare 5 | sentence=waveshare e-Paper. 6 | paragraph=Use this library to drive e-Paper and display it using the e-Paper module
7 | category=Display 8 | url=http://www.waveshare.net/search.html?kw=e-paper 9 | architectures=esp32 10 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/readme_EN.txt: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * | File : Readme_CN.txt 3 | * | Author : Waveshare team 4 | * | Function : Help with use 5 | * | Info : 6 | *---------------- 7 | * | This version: V1.0 8 | * | Date : 2020-02-19 9 | * | Info : Provide a Chinese version of the documentation here for your quick use 10 | ******************************************************************************/ 11 | Source: https://www.waveshare.com/wiki/File:E-Paper_ESP32_Driver_Board_Code.7z 12 | 13 | This file is to help you use this routine. 14 | 15 | 1. Basic information: 16 | This routine is developed based on Arduino. The routines have been verified on the E-Paper ESP32 Driver Board; 17 | 18 | 2. Basic use: 19 |      Copy the entire esp32-waveshare-epd folder to the \ hardware \ espressif \ esp32 \ libraries folder in the Arduino installation path 20 |      Then open the Arduino IDE, find wareshare-e-Paper in the file = "example =", open the corresponding demo, and download it to the E-Paper ESP32 Driver Board. 21 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/DEV_Config.cpp: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * | File : DEV_Config.c 3 | * | Author : Waveshare team 4 | * | Function : Hardware underlying interface 5 | * | Info : 6 | *---------------- 7 | * | This version: V1.0 8 | * | Date : 2020-02-19 9 | * | Info : 10 | # 11 | # Permission is hereby granted, free of charge, to any person obtaining a copy 12 | # of this software and associated documnetation files (the "Software"), to deal 13 | # in the Software without restriction, including without limitation the rights 14 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 15 | # copies of the Software, and to permit persons to whom the Software is 16 | # furished to do so, subject to the following conditions: 17 | # 18 | # The above copyright notice and this permission notice shall be included in 19 | # all copies or substantial portions of the Software. 20 | # 21 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 26 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 27 | # THE SOFTWARE. 28 | # 29 | ******************************************************************************/ 30 | #include "DEV_Config.h" 31 | #include 32 | 33 | void GPIO_Config(void) 34 | { 35 | pinMode(EPD_BUSY_PIN, INPUT); 36 | pinMode(EPD_RST_PIN , OUTPUT); 37 | pinMode(EPD_DC_PIN , OUTPUT); 38 | 39 | //pinMode(EPD_SCK_PIN, OUTPUT); 40 | //pinMode(EPD_MOSI_PIN, OUTPUT); 41 | pinMode(EPD_CS_PIN , OUTPUT); 42 | 43 | //digitalWrite(EPD_CS_PIN , HIGH); 44 | //digitalWrite(EPD_SCK_PIN, LOW); 45 | } 46 | /****************************************************************************** 47 | function: Module Initialize, the BCM2835 library and initialize the pins, SPI protocol 48 | parameter: 49 | Info: 50 | ******************************************************************************/ 51 | UBYTE DEV_Module_Init(void) 52 | { 53 | //gpio 54 | GPIO_Config(); 55 | 56 | SPI.begin(EPD_SCK_PIN, -1, EPD_MOSI_PIN, -1); //sck,miso,mosi,ss 57 | SPI.beginTransaction(SPISettings(2000000, MSBFIRST, SPI_MODE0)); 58 | 59 | //serial printf 60 | //Serial.begin(115200); 61 | 62 | // spi 63 | // SPI.setDataMode(SPI_MODE0); 64 | // SPI.setBitOrder(MSBFIRST); 65 | // SPI.setClockDivider(SPI_CLOCK_DIV4); 66 | // SPI.begin(); 67 | 68 | return 0; 69 | } 70 | 71 | /****************************************************************************** 72 | function: 73 | SPI read and write 74 | ******************************************************************************/ 75 | void DEV_SPI_WriteByte(UBYTE data) 76 | { 77 | //SPI.beginTransaction(spi_settings); 78 | digitalWrite(EPD_CS_PIN, GPIO_PIN_RESET); 79 | SPI.transfer(data); 80 | 81 | /*for (int i = 0; i < 8; i++) 82 | { 83 | if ((data & 0x80) == 0) digitalWrite(EPD_MOSI_PIN, GPIO_PIN_RESET); 84 | else digitalWrite(EPD_MOSI_PIN, GPIO_PIN_SET); 85 | 86 | data <<= 1; 87 | digitalWrite(EPD_SCK_PIN, GPIO_PIN_SET); 88 | digitalWrite(EPD_SCK_PIN, GPIO_PIN_RESET); 89 | }*/ 90 | 91 | //SPI.transfer(data); 92 | digitalWrite(EPD_CS_PIN, GPIO_PIN_SET); 93 | //SPI.endTransaction(); 94 | } 95 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/DEV_Config.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * | File : DEV_Config.h 3 | * | Author : Waveshare team 4 | * | Function : Hardware underlying interface 5 | * | Info : 6 | *---------------- 7 | * | This version: V1.0 8 | * | Date : 2020-02-19 9 | * | Info : 10 | # 11 | # Permission is hereby granted, free of charge, to any person obtaining a copy 12 | # of this software and associated documnetation files (the "Software"), to deal 13 | # in the Software without restriction, including without limitation the rights 14 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 15 | # copies of the Software, and to permit persons to whom the Software is 16 | # furished to do so, subject to the following conditions: 17 | # 18 | # The above copyright notice and this permission notice shall be included in 19 | # all copies or substantial portions of the Software. 20 | # 21 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 26 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 27 | # THE SOFTWARE. 28 | # 29 | ******************************************************************************/ 30 | #ifndef _DEV_CONFIG_H_ 31 | #define _DEV_CONFIG_H_ 32 | 33 | #include 34 | #include 35 | #include 36 | 37 | /** 38 | * data 39 | **/ 40 | #define UBYTE uint8_t 41 | #define UWORD uint16_t 42 | #define UDOUBLE uint32_t 43 | 44 | /** 45 | * GPIO config 46 | **/ 47 | #define EPD_SCK_PIN 41 // CLK 48 | #define EPD_MOSI_PIN 21 // DIN 49 | #define EPD_CS_PIN 42 50 | #define EPD_RST_PIN 7 51 | #define EPD_DC_PIN 8 52 | #define EPD_BUSY_PIN 6 53 | 54 | #define GPIO_PIN_SET 1 55 | #define GPIO_PIN_RESET 0 56 | 57 | /** 58 | * GPIO read and write 59 | **/ 60 | #define DEV_Digital_Write(_pin, _value) digitalWrite(_pin, _value == 0? LOW:HIGH) 61 | #define DEV_Digital_Read(_pin) digitalRead(_pin) 62 | 63 | /** 64 | * delay x ms 65 | **/ 66 | #define DEV_Delay_ms(__xms) delay(__xms) 67 | 68 | /*------------------------------------------------------------------------------------------------------*/ 69 | UBYTE DEV_Module_Init(void); 70 | void DEV_SPI_WriteByte(UBYTE data); 71 | 72 | #endif 73 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/EPD.h: -------------------------------------------------------------------------------- 1 | #ifndef __EPD_H_ 2 | #define __EPD_H_ 3 | 4 | #include "utility/Debug.h" 5 | #include "utility/EPD_1in54_V2.h" 6 | #include "utility/EPD_4in2.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/GUI_Paint.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * | File : GUI_Paint.h 3 | * | Author : Waveshare electronics 4 | * | Function : Achieve drawing: draw points, lines, boxes, circles and 5 | * their size, solid dotted line, solid rectangle hollow 6 | * rectangle, solid circle hollow circle. 7 | * | Info : 8 | * Achieve display characters: Display a single character, string, number 9 | * Achieve time display: adaptive size display time minutes and seconds 10 | *---------------- 11 | * | This version: V3.2 12 | * | Date : 2020-07-23 13 | * | Info : 14 | * ----------------------------------------------------------------------------- 15 | * V3.2(2020-07-23): 16 | * 1. Change: Paint_SetScale(UBYTE scale) 17 | * Add scale 7 for 5.65f e-Parper 18 | * 2. Change: Paint_SetPixel(UWORD Xpoint, UWORD Ypoint, UWORD Color) 19 | * Add the branch for scale 7 20 | * 3. Change: Paint_Clear(UWORD Color) 21 | * Add the branch for scale 7 22 | * 23 | * V3.1(2019-10-10): 24 | * 1. Add gray level 25 | * PAINT Add Scale 26 | * 2. Add void Paint_SetScale(UBYTE scale); 27 | * 28 | * V3.0(2019-04-18): 29 | * 1.Change: 30 | * Paint_DrawPoint(..., DOT_STYLE DOT_STYLE) 31 | * => Paint_DrawPoint(..., DOT_STYLE Dot_Style) 32 | * Paint_DrawLine(..., LINE_STYLE Line_Style, DOT_PIXEL Dot_Pixel) 33 | * => Paint_DrawLine(..., DOT_PIXEL Line_width, LINE_STYLE Line_Style) 34 | * Paint_DrawRectangle(..., DRAW_FILL Filled, DOT_PIXEL Dot_Pixel) 35 | * => Paint_DrawRectangle(..., DOT_PIXEL Line_width, DRAW_FILL Draw_Fill) 36 | * Paint_DrawCircle(..., DRAW_FILL Draw_Fill, DOT_PIXEL Dot_Pixel) 37 | * => Paint_DrawCircle(..., DOT_PIXEL Line_width, DRAW_FILL Draw_Filll) 38 | * 39 | * ----------------------------------------------------------------------------- 40 | * V2.0(2018-11-15): 41 | * 1.add: Paint_NewImage() 42 | * Create an image's properties 43 | * 2.add: Paint_SelectImage() 44 | * Select the picture to be drawn 45 | * 3.add: Paint_SetRotate() 46 | * Set the direction of the cache 47 | * 4.add: Paint_RotateImage() 48 | * Can flip the picture, Support 0-360 degrees, 49 | * but only 90.180.270 rotation is better 50 | * 4.add: Paint_SetMirroring() 51 | * Can Mirroring the picture, horizontal, vertical, origin 52 | * 5.add: Paint_DrawString_CN() 53 | * Can display Chinese(GB1312) 54 | * 55 | * ----------------------------------------------------------------------------- 56 | * V1.0(2018-07-17): 57 | * Create library 58 | * 59 | * Permission is hereby granted, free of charge, to any person obtaining a copy 60 | * of this software and associated documnetation files (the "Software"), to deal 61 | * in the Software without restriction, including without limitation the rights 62 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 63 | * copies of the Software, and to permit persons to whom the Software is 64 | * furished to do so, subject to the following conditions: 65 | * 66 | * The above copyright notice and this permission notice shall be included in 67 | * all copies or substantial portions of the Software. 68 | * 69 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 70 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 71 | * FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 72 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 73 | * LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 74 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 75 | * THE SOFTWARE. 76 | * 77 | ******************************************************************************/ 78 | #ifndef __GUI_PAINT_H 79 | #define __GUI_PAINT_H 80 | 81 | #include "utility/Debug.h" 82 | #include "DEV_Config.h" 83 | #include "fonts.h" 84 | 85 | /** 86 | * Image attributes 87 | **/ 88 | typedef struct { 89 | UBYTE *Image; 90 | UWORD Width; 91 | UWORD Height; 92 | UWORD WidthMemory; 93 | UWORD HeightMemory; 94 | UWORD Color; 95 | UWORD Rotate; 96 | UWORD Mirror; 97 | UWORD WidthByte; 98 | UWORD HeightByte; 99 | UWORD Scale; 100 | } PAINT; 101 | RTC_DATA_ATTR extern PAINT Paint; /* keep in memory while ESP is sleeping */ 102 | 103 | /** 104 | * Display rotate 105 | **/ 106 | #define ROTATE_0 0 107 | #define ROTATE_90 90 108 | #define ROTATE_180 180 109 | #define ROTATE_270 270 110 | 111 | /** 112 | * Display Flip 113 | **/ 114 | typedef enum { 115 | MIRROR_NONE = 0x00, 116 | MIRROR_HORIZONTAL = 0x01, 117 | MIRROR_VERTICAL = 0x02, 118 | MIRROR_ORIGIN = 0x03, 119 | } MIRROR_IMAGE; 120 | #define MIRROR_IMAGE_DFT MIRROR_NONE 121 | 122 | /** 123 | * image color 124 | **/ 125 | #define WHITE 0xFF 126 | #define BLACK 0x00 127 | #define RED BLACK 128 | 129 | #define IMAGE_BACKGROUND WHITE 130 | #define FONT_FOREGROUND BLACK 131 | #define FONT_BACKGROUND WHITE 132 | 133 | //4 Gray level 134 | #define GRAY1 0x03 //Blackest 135 | #define GRAY2 0x02 136 | #define GRAY3 0x01 //gray 137 | #define GRAY4 0x00 //white 138 | /** 139 | * The size of the point 140 | **/ 141 | typedef enum { 142 | DOT_PIXEL_1X1 = 1, // 1 x 1 143 | DOT_PIXEL_2X2 , // 2 X 2 144 | DOT_PIXEL_3X3 , // 3 X 3 145 | DOT_PIXEL_4X4 , // 4 X 4 146 | DOT_PIXEL_5X5 , // 5 X 5 147 | DOT_PIXEL_6X6 , // 6 X 6 148 | DOT_PIXEL_7X7 , // 7 X 7 149 | DOT_PIXEL_8X8 , // 8 X 8 150 | } DOT_PIXEL; 151 | #define DOT_PIXEL_DFT DOT_PIXEL_1X1 //Default dot pilex 152 | 153 | /** 154 | * Point size fill style 155 | **/ 156 | typedef enum { 157 | DOT_FILL_AROUND = 1, // dot pixel 1 x 1 158 | DOT_FILL_RIGHTUP , // dot pixel 2 X 2 159 | } DOT_STYLE; 160 | #define DOT_STYLE_DFT DOT_FILL_AROUND //Default dot pilex 161 | 162 | /** 163 | * Line style, solid or dashed 164 | **/ 165 | typedef enum { 166 | LINE_STYLE_SOLID = 0, 167 | LINE_STYLE_DOTTED, 168 | } LINE_STYLE; 169 | 170 | /** 171 | * Whether the graphic is filled 172 | **/ 173 | typedef enum { 174 | DRAW_FILL_EMPTY = 0, 175 | DRAW_FILL_FULL, 176 | } DRAW_FILL; 177 | 178 | /** 179 | * Custom structure of a time attribute 180 | **/ 181 | typedef struct { 182 | UWORD Year; //0000 183 | UBYTE Month; //1 - 12 184 | UBYTE Day; //1 - 30 185 | UBYTE Hour; //0 - 23 186 | UBYTE Min; //0 - 59 187 | UBYTE Sec; //0 - 59 188 | } PAINT_TIME; 189 | extern PAINT_TIME sPaint_time; 190 | 191 | //init and Clear 192 | void Paint_NewImage(UBYTE *image, UWORD Width, UWORD Height, UWORD Rotate, UWORD Color); 193 | void Paint_SelectImage(UBYTE *image); 194 | void Paint_SetRotate(UWORD Rotate); 195 | void Paint_SetMirroring(UBYTE mirror); 196 | void Paint_SetPixel(UWORD Xpoint, UWORD Ypoint, UWORD Color); 197 | void Paint_SetScale(UBYTE scale); 198 | 199 | void Paint_Clear(UWORD Color); 200 | void Paint_ClearWindows(UWORD Xstart, UWORD Ystart, UWORD Xend, UWORD Yend, UWORD Color); 201 | 202 | //Drawing 203 | void Paint_DrawPoint(UWORD Xpoint, UWORD Ypoint, UWORD Color, DOT_PIXEL Dot_Pixel, DOT_STYLE Dot_FillWay); 204 | void Paint_DrawLine(UWORD Xstart, UWORD Ystart, UWORD Xend, UWORD Yend, UWORD Color, DOT_PIXEL Line_width, LINE_STYLE Line_Style); 205 | void Paint_DrawRectangle(UWORD Xstart, UWORD Ystart, UWORD Xend, UWORD Yend, UWORD Color, DOT_PIXEL Line_width, DRAW_FILL Draw_Fill); 206 | void Paint_DrawCircle(UWORD X_Center, UWORD Y_Center, UWORD Radius, UWORD Color, DOT_PIXEL Line_width, DRAW_FILL Draw_Fill); 207 | 208 | //Display string 209 | void Paint_DrawChar(UWORD Xstart, UWORD Ystart, const char Acsii_Char, sFONT* Font, UWORD Color_Foreground, UWORD Color_Background); 210 | void Paint_DrawString_EN(UWORD Xstart, UWORD Ystart, const char * pString, sFONT* Font, UWORD Color_Foreground, UWORD Color_Background); 211 | void Paint_DrawString_CN(UWORD Xstart, UWORD Ystart, const char * pString, cFONT* font, UWORD Color_Foreground, UWORD Color_Background); 212 | void Paint_DrawNum(UWORD Xpoint, UWORD Ypoint, int32_t Nummber, sFONT* Font, UWORD Color_Foreground, UWORD Color_Background); 213 | void Paint_DrawTime(UWORD Xstart, UWORD Ystart, PAINT_TIME *pTime, sFONT* Font, UWORD Color_Foreground, UWORD Color_Background); 214 | 215 | //pic 216 | void Paint_DrawBitMap(const unsigned char* image_buffer); 217 | void Paint_DrawImage(const unsigned char *image_buffer, UWORD xStart, UWORD yStart, UWORD W_Image, UWORD H_Image); 218 | 219 | #endif 220 | 221 | 222 | 223 | 224 | 225 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/bahn_sml.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Font Data 3 | // Created: 13/06/2021 at 00:31:44 4 | // 5 | 6 | #include "fonts.h" 7 | 8 | //const unsigned char font[] = { 9 | const uint8_t bahn_sml_Table [] = { 10 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x00 (0) 11 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x01 (1) 12 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x02 (2) 13 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x03 (3) 14 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x04 (4) 15 | 0x00,0x00,0x00,0x00,0x70,0x60,0xF8,0x60,0xC8,0xC0,0xC8,0xC0,0xF9,0x80,0x71,0x80,0x03,0x00,0x03,0x00,0x06,0x00,0x0C,0xF0,0x0C,0xF8,0x18,0x98,0x18,0x98,0x30,0xF0,0x30,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x05 (5) 16 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x06 (6) 17 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x07 (7) 18 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x08 (8) 19 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x09 (9) 20 | 0x00,0x00,0x00,0x00,0x00,0x80,0x03,0xE0,0x07,0x70,0x06,0x30,0x07,0x30,0x03,0xF0,0x03,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0A (10) 21 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0B (11) 22 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x60,0x00,0x40,0x00,0x00,0x00, // Character 0x0C (12) 23 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0D (13) 24 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0E (14) 25 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0F (15) 26 | 0x00,0x00,0x1F,0xC0,0x3F,0xE0,0x7F,0xF0,0x78,0xF0,0xF0,0x70,0xF0,0x70,0xF0,0x70,0xF0,0x70,0xF0,0x70,0xF0,0x70,0xF0,0x70,0xF0,0x70,0xF0,0x70,0xF0,0x70,0xF0,0x70,0xF0,0x70,0xF0,0xF0,0x79,0xF0,0x7F,0xF0,0x3F,0xE0,0x1F,0x80, // Character 0x10 (16) 27 | 0x00,0x00,0x07,0x80,0x1F,0x80,0x1F,0x80,0x1F,0x80,0x17,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x07,0x80, // Character 0x11 (17) 28 | 0x00,0x00,0x1F,0xC0,0x3F,0xE0,0x7F,0xF0,0x78,0xF0,0xF0,0x70,0xF0,0x70,0x00,0x70,0x00,0xF0,0x01,0xF0,0x01,0xE0,0x03,0xC0,0x07,0xC0,0x0F,0x80,0x0F,0x00,0x1E,0x00,0x3C,0x00,0x7C,0x00,0xFC,0x00,0xFF,0xF0,0xFF,0xF0,0xFF,0xF0, // Character 0x12 (18) 29 | 0x00,0x00,0x1F,0xC0,0x3F,0xE0,0x3F,0xF0,0x78,0xF0,0x70,0x70,0x00,0x70,0x00,0xF0,0x00,0xE0,0x07,0xE0,0x07,0xC0,0x07,0xE0,0x00,0xF0,0x00,0x70,0x00,0x70,0x00,0x70,0x70,0x70,0x78,0xF0,0x7F,0xF0,0x3F,0xE0,0x0F,0x80,0x00,0x00, // Character 0x13 (19) 30 | 0x00,0x00,0x03,0xC0,0x03,0x80,0x07,0x80,0x07,0x00,0x0F,0x00,0x0E,0x00,0x1E,0x00,0x1C,0x00,0x3C,0xE0,0x38,0xE0,0x78,0xE0,0x70,0xE0,0xF0,0xE0,0xFF,0xF0,0xFF,0xF0,0xFF,0xF0,0x00,0xE0,0x00,0xE0,0x00,0xE0,0x00,0x00,0x00,0x00, // Character 0x14 (20) 31 | 0x7F,0xF0,0x7F,0xF0,0x7F,0xF0,0x78,0x00,0x78,0x00,0x78,0x00,0x78,0x00,0x7F,0xC0,0x7F,0xE0,0x7F,0xF0,0x78,0xF0,0x78,0x78,0x00,0x78,0x00,0x78,0x00,0x78,0x70,0x78,0x78,0x70,0x7C,0xF0,0x3F,0xF0,0x1F,0xE0,0x0F,0x80,0x00,0x00, // Character 0x15 (21) 32 | 0x03,0xC0,0x03,0xC0,0x07,0x80,0x07,0x80,0x0F,0x00,0x0F,0x00,0x0E,0x00,0x1E,0x00,0x1E,0x00,0x3F,0xC0,0x3F,0xE0,0x7F,0xF0,0x78,0xF0,0x78,0x78,0x70,0x78,0x70,0x78,0x78,0x70,0x7C,0xF0,0x3F,0xF0,0x1F,0xE0,0x0F,0x80,0x00,0x00, // Character 0x16 (22) 33 | 0x00,0x00,0x7F,0xF0,0x7F,0xF0,0x7F,0xF0,0x70,0xF0,0x70,0xF0,0x70,0xF0,0x00,0xE0,0x01,0xE0,0x01,0xE0,0x01,0xC0,0x01,0xC0,0x03,0xC0,0x03,0xC0,0x03,0x80,0x03,0x80,0x07,0x80,0x07,0x80,0x07,0x00,0x0F,0x00,0x0F,0x00,0x0F,0x00, // Character 0x17 (23) 34 | 0x00,0x00,0x0F,0xC0,0x3F,0xE0,0x3F,0xF0,0x78,0xF0,0x70,0x70,0x70,0x70,0x70,0x70,0x38,0xF0,0x3F,0xE0,0x1F,0xC0,0x3F,0xE0,0x78,0xF0,0x70,0x70,0x70,0x78,0x70,0x78,0x70,0x78,0x78,0xF0,0x7F,0xF0,0x3F,0xE0,0x0F,0x80,0x00,0x00, // Character 0x18 (24) 35 | 0x00,0x00,0x1F,0x80,0x3F,0xE0,0x7F,0xE0,0x78,0xF0,0x70,0x70,0xF0,0x70,0xF0,0x70,0x70,0x70,0x78,0xF0,0x7F,0xF0,0x3F,0xE0,0x1F,0xE0,0x01,0xC0,0x01,0xC0,0x03,0xC0,0x03,0x80,0x07,0x80,0x07,0x00,0x0F,0x00,0x0E,0x00,0x1E,0x00, // Character 0x19 (25) 36 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1A (26) 37 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1B (27) 38 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1C (28) 39 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1D (29) 40 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1E (30) 41 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1F (31) 42 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x20 (32) 43 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x21 (33) 44 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x22 (34) 45 | 0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xC0,0x3F,0xE0,0x78,0xF0,0x70,0x70,0x60,0x30,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x70,0x70,0x70,0x70,0x7F,0xE0,0x3F,0xC0,0x0F,0x80,0x00,0x00,0x00,0x00, // Character 0x23 (35) 46 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x24 (36) 47 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x25 (37) 48 | 0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xF0,0x7F,0xF0,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x7F,0xF0,0x7F,0xF0,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x00,0x00,0x00,0x00, // Character 0x26 (38) 49 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x27 (39) 50 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x28 (40) 51 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x29 (41) 52 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2A (42) 53 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2B (43) 54 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2C (44) 55 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2D (45) 56 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2E (46) 57 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2F (47) 58 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x30 (48) 59 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x31 (49) 60 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x32 (50) 61 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x33 (51) 62 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x34 (52) 63 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x35 (53) 64 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x36 (54) 65 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x37 (55) 66 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x38 (56) 67 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x39 (57) 68 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3A (58) 69 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3B (59) 70 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3C (60) 71 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3D (61) 72 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3E (62) 73 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3F (63) 74 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x40 (64) 75 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x41 (65) 76 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x42 (66) 77 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x43 (67) 78 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x44 (68) 79 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x45 (69) 80 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x46 (70) 81 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x47 (71) 82 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x48 (72) 83 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x49 (73) 84 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4A (74) 85 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4B (75) 86 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4C (76) 87 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0xC0,0x3F,0xE8,0x38,0xF8,0x30,0x70,0x30,0x70,0x30,0x70,0x30,0x70,0x30,0x70,0x30,0x70,0x30,0x70,0x30,0x70,0x30,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4D (77) 88 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x00,0xF8,0x00,0x3C,0x00,0x1C,0x00,0x1C,0x00,0x1C,0x00,0x1C,0x00,0x1C,0x00,0x1C,0x00,0x1C,0x00,0x1C,0x00,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4E (78) 89 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4F (79) 90 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x37,0xC0,0x3F,0xE0,0x38,0xE0,0x30,0x60,0x30,0x60,0x30,0x60,0x30,0x60,0x30,0x60,0x38,0xE0,0x3F,0xE0,0x3F,0xC0,0x33,0x80,0x30,0x00,0x30,0x00,0x30,0x00,0x30,0x00,0x30,0x00,0x00,0x00, // Character 0x50 (80) 91 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x51 (81) 92 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x52 (82) 93 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x53 (83) 94 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x54 (84) 95 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x55 (85) 96 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x56 (86) 97 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x57 (87) 98 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x58 (88) 99 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x59 (89) 100 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5A (90) 101 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5B (91) 102 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5C (92) 103 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5D (93) 104 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5E (94) 105 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5F (95) 106 | }; 107 | 108 | 109 | sFONT bahn_sml = { 110 | bahn_sml_Table, 111 | 13, /* Width */ 112 | 22, /* Height */ 113 | }; -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/font8.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file Font8.c 4 | * @author MCD Application Team 5 | * @version V1.0.0 6 | * @date 18-February-2014 7 | * @brief This file provides text Font8 for STM32xx-EVAL's LCD driver. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT(c) 2014 STMicroelectronics

12 | * 13 | * Redistribution and use in source and binary forms, with or without modification, 14 | * are permitted provided that the following conditions are met: 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, 18 | * this list of conditions and the following disclaimer in the documentation 19 | * and/or other materials provided with the distribution. 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors 21 | * may be used to endorse or promote products derived from this software 22 | * without specific prior written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | * 35 | ****************************************************************************** 36 | */ 37 | 38 | /* Includes ------------------------------------------------------------------*/ 39 | #include "fonts.h" 40 | 41 | // 42 | // Font data for Courier New 12pt 43 | // 44 | 45 | const uint8_t Font8_Table[] = 46 | { 47 | // @0 ' ' (5 pixels wide) 48 | 0x00, // 49 | 0x00, // 50 | 0x00, // 51 | 0x00, // 52 | 0x00, // 53 | 0x00, // 54 | 0x00, // 55 | 0x00, // 56 | 57 | // @8 '!' (5 pixels wide) 58 | 0x20, // # 59 | 0x20, // # 60 | 0x20, // # 61 | 0x20, // # 62 | 0x00, // 63 | 0x20, // # 64 | 0x00, // 65 | 0x00, // 66 | 67 | // @16 '"' (5 pixels wide) 68 | 0x50, // # # 69 | 0x50, // # # 70 | 0x00, // 71 | 0x00, // 72 | 0x00, // 73 | 0x00, // 74 | 0x00, // 75 | 0x00, // 76 | 77 | // @24 '#' (5 pixels wide) 78 | 0x28, // # # 79 | 0x50, // # # 80 | 0xF8, // ##### 81 | 0x50, // # # 82 | 0xF8, // ##### 83 | 0x50, // # # 84 | 0xA0, // # # 85 | 0x00, // 86 | 87 | // @32 '$' (5 pixels wide) 88 | 0x20, // # 89 | 0x30, // ## 90 | 0x60, // ## 91 | 0x30, // ## 92 | 0x10, // # 93 | 0x60, // ## 94 | 0x20, // # 95 | 0x00, // 96 | 97 | // @40 '%' (5 pixels wide) 98 | 0x20, // # 99 | 0x20, // # 100 | 0x18, // ## 101 | 0x60, // ## 102 | 0x10, // # 103 | 0x10, // # 104 | 0x00, // 105 | 0x00, // 106 | 107 | // @48 '&' (5 pixels wide) 108 | 0x00, // 109 | 0x38, // ### 110 | 0x20, // # 111 | 0x60, // ## 112 | 0x50, // # # 113 | 0x78, // #### 114 | 0x00, // 115 | 0x00, // 116 | 117 | // @56 ''' (5 pixels wide) 118 | 0x20, // # 119 | 0x20, // # 120 | 0x20, // # 121 | 0x00, // 122 | 0x00, // 123 | 0x00, // 124 | 0x00, // 125 | 0x00, // 126 | 127 | // @64 '(' (5 pixels wide) 128 | 0x10, // # 129 | 0x20, // # 130 | 0x20, // # 131 | 0x20, // # 132 | 0x20, // # 133 | 0x20, // # 134 | 0x10, // # 135 | 0x00, // 136 | 137 | // @72 ')' (5 pixels wide) 138 | 0x40, // # 139 | 0x20, // # 140 | 0x20, // # 141 | 0x20, // # 142 | 0x20, // # 143 | 0x20, // # 144 | 0x40, // # 145 | 0x00, // 146 | 147 | // @80 '*' (5 pixels wide) 148 | 0x20, // # 149 | 0x70, // ### 150 | 0x20, // # 151 | 0x50, // # # 152 | 0x00, // 153 | 0x00, // 154 | 0x00, // 155 | 0x00, // 156 | 157 | // @88 '+' (5 pixels wide) 158 | 0x00, // 159 | 0x20, // # 160 | 0x20, // # 161 | 0xF8, // ##### 162 | 0x20, // # 163 | 0x20, // # 164 | 0x00, // 165 | 0x00, // 166 | 167 | // @96 ',' (5 pixels wide) 168 | 0x00, // 169 | 0x00, // 170 | 0x00, // 171 | 0x00, // 172 | 0x10, // # 173 | 0x20, // # 174 | 0x20, // # 175 | 0x00, // 176 | 177 | // @104 '-' (5 pixels wide) 178 | 0x00, // 179 | 0x00, // 180 | 0x00, // 181 | 0x70, // ### 182 | 0x00, // 183 | 0x00, // 184 | 0x00, // 185 | 0x00, // 186 | 187 | // @112 '.' (5 pixels wide) 188 | 0x00, // 189 | 0x00, // 190 | 0x00, // 191 | 0x00, // 192 | 0x00, // 193 | 0x20, // # 194 | 0x00, // 195 | 0x00, // 196 | 197 | // @120 '/' (5 pixels wide) 198 | 0x10, // # 199 | 0x20, // # 200 | 0x20, // # 201 | 0x20, // # 202 | 0x40, // # 203 | 0x40, // # 204 | 0x80, // # 205 | 0x00, // 206 | 207 | // @128 '0' (5 pixels wide) 208 | 0x20, // # 209 | 0x50, // # # 210 | 0x50, // # # 211 | 0x50, // # # 212 | 0x50, // # # 213 | 0x20, // # 214 | 0x00, // 215 | 0x00, // 216 | 217 | // @136 '1' (5 pixels wide) 218 | 0x60, // ## 219 | 0x20, // # 220 | 0x20, // # 221 | 0x20, // # 222 | 0x20, // # 223 | 0xF8, // ##### 224 | 0x00, // 225 | 0x00, // 226 | 227 | // @144 '2' (5 pixels wide) 228 | 0x20, // # 229 | 0x50, // # # 230 | 0x20, // # 231 | 0x20, // # 232 | 0x40, // # 233 | 0x70, // ### 234 | 0x00, // 235 | 0x00, // 236 | 237 | // @152 '3' (5 pixels wide) 238 | 0x20, // # 239 | 0x50, // # # 240 | 0x10, // # 241 | 0x20, // # 242 | 0x10, // # 243 | 0x60, // ## 244 | 0x00, // 245 | 0x00, // 246 | 247 | // @160 '4' (5 pixels wide) 248 | 0x10, // # 249 | 0x30, // ## 250 | 0x50, // # # 251 | 0x78, // #### 252 | 0x10, // # 253 | 0x38, // ### 254 | 0x00, // 255 | 0x00, // 256 | 257 | // @168 '5' (5 pixels wide) 258 | 0x70, // ### 259 | 0x40, // # 260 | 0x60, // ## 261 | 0x10, // # 262 | 0x50, // # # 263 | 0x20, // # 264 | 0x00, // 265 | 0x00, // 266 | 267 | // @176 '6' (5 pixels wide) 268 | 0x30, // ## 269 | 0x40, // # 270 | 0x60, // ## 271 | 0x50, // # # 272 | 0x50, // # # 273 | 0x60, // ## 274 | 0x00, // 275 | 0x00, // 276 | 277 | // @184 '7' (5 pixels wide) 278 | 0x70, // ### 279 | 0x50, // # # 280 | 0x10, // # 281 | 0x20, // # 282 | 0x20, // # 283 | 0x20, // # 284 | 0x00, // 285 | 0x00, // 286 | 287 | // @192 '8' (5 pixels wide) 288 | 0x20, // # 289 | 0x50, // # # 290 | 0x20, // # 291 | 0x50, // # # 292 | 0x50, // # # 293 | 0x20, // # 294 | 0x00, // 295 | 0x00, // 296 | 297 | // @200 '9' (5 pixels wide) 298 | 0x30, // ## 299 | 0x50, // # # 300 | 0x50, // # # 301 | 0x30, // ## 302 | 0x10, // # 303 | 0x60, // ## 304 | 0x00, // 305 | 0x00, // 306 | 307 | // @208 ':' (5 pixels wide) 308 | 0x00, // 309 | 0x00, // 310 | 0x20, // # 311 | 0x00, // 312 | 0x00, // 313 | 0x20, // # 314 | 0x00, // 315 | 0x00, // 316 | 317 | // @216 ';' (5 pixels wide) 318 | 0x00, // 319 | 0x00, // 320 | 0x10, // # 321 | 0x00, // 322 | 0x10, // # 323 | 0x20, // # 324 | 0x00, // 325 | 0x00, // 326 | 327 | // @224 '<' (5 pixels wide) 328 | 0x00, // 329 | 0x10, // # 330 | 0x20, // # 331 | 0xC0, // ## 332 | 0x20, // # 333 | 0x10, // # 334 | 0x00, // 335 | 0x00, // 336 | 337 | // @232 '=' (5 pixels wide) 338 | 0x00, // 339 | 0x70, // ### 340 | 0x00, // 341 | 0x70, // ### 342 | 0x00, // 343 | 0x00, // 344 | 0x00, // 345 | 0x00, // 346 | 347 | // @240 '>' (5 pixels wide) 348 | 0x00, // 349 | 0x40, // # 350 | 0x20, // # 351 | 0x18, // ## 352 | 0x20, // # 353 | 0x40, // # 354 | 0x00, // 355 | 0x00, // 356 | 357 | // @248 '?' (5 pixels wide) 358 | 0x20, // # 359 | 0x50, // # # 360 | 0x10, // # 361 | 0x20, // # 362 | 0x00, // 363 | 0x20, // # 364 | 0x00, // 365 | 0x00, // 366 | 367 | // @256 '@' (5 pixels wide) 368 | 0x30, // ## 369 | 0x48, // # # 370 | 0x48, // # # 371 | 0x58, // # ## 372 | 0x48, // # # 373 | 0x40, // # 374 | 0x38, // ### 375 | 0x00, // 376 | 377 | // @264 'A' (5 pixels wide) 378 | 0x60, // ## 379 | 0x20, // # 380 | 0x50, // # # 381 | 0x70, // ### 382 | 0x88, // # # 383 | 0xD8, // ## ## 384 | 0x00, // 385 | 0x00, // 386 | 387 | // @272 'B' (5 pixels wide) 388 | 0xF0, // #### 389 | 0x48, // # # 390 | 0x70, // ### 391 | 0x48, // # # 392 | 0x48, // # # 393 | 0xF0, // #### 394 | 0x00, // 395 | 0x00, // 396 | 397 | // @280 'C' (5 pixels wide) 398 | 0x70, // ### 399 | 0x50, // # # 400 | 0x40, // # 401 | 0x40, // # 402 | 0x40, // # 403 | 0x30, // ## 404 | 0x00, // 405 | 0x00, // 406 | 407 | // @288 'D' (5 pixels wide) 408 | 0xF0, // #### 409 | 0x48, // # # 410 | 0x48, // # # 411 | 0x48, // # # 412 | 0x48, // # # 413 | 0xF0, // #### 414 | 0x00, // 415 | 0x00, // 416 | 417 | // @296 'E' (5 pixels wide) 418 | 0xF8, // ##### 419 | 0x48, // # # 420 | 0x60, // ## 421 | 0x40, // # 422 | 0x48, // # # 423 | 0xF8, // ##### 424 | 0x00, // 425 | 0x00, // 426 | 427 | // @304 'F' (5 pixels wide) 428 | 0xF8, // ##### 429 | 0x48, // # # 430 | 0x60, // ## 431 | 0x40, // # 432 | 0x40, // # 433 | 0xE0, // ### 434 | 0x00, // 435 | 0x00, // 436 | 437 | // @312 'G' (5 pixels wide) 438 | 0x70, // ### 439 | 0x40, // # 440 | 0x40, // # 441 | 0x58, // # ## 442 | 0x50, // # # 443 | 0x30, // ## 444 | 0x00, // 445 | 0x00, // 446 | 447 | // @320 'H' (5 pixels wide) 448 | 0xE8, // ### # 449 | 0x48, // # # 450 | 0x78, // #### 451 | 0x48, // # # 452 | 0x48, // # # 453 | 0xE8, // ### # 454 | 0x00, // 455 | 0x00, // 456 | 457 | // @328 'I' (5 pixels wide) 458 | 0x70, // ### 459 | 0x20, // # 460 | 0x20, // # 461 | 0x20, // # 462 | 0x20, // # 463 | 0x70, // ### 464 | 0x00, // 465 | 0x00, // 466 | 467 | // @336 'J' (5 pixels wide) 468 | 0x38, // ### 469 | 0x10, // # 470 | 0x10, // # 471 | 0x50, // # # 472 | 0x50, // # # 473 | 0x20, // # 474 | 0x00, // 475 | 0x00, // 476 | 477 | // @344 'K' (5 pixels wide) 478 | 0xD8, // ## ## 479 | 0x50, // # # 480 | 0x60, // ## 481 | 0x70, // ### 482 | 0x50, // # # 483 | 0xD8, // ## ## 484 | 0x00, // 485 | 0x00, // 486 | 487 | // @352 'L' (5 pixels wide) 488 | 0xE0, // ### 489 | 0x40, // # 490 | 0x40, // # 491 | 0x40, // # 492 | 0x48, // # # 493 | 0xF8, // ##### 494 | 0x00, // 495 | 0x00, // 496 | 497 | // @360 'M' (5 pixels wide) 498 | 0xD8, // ## ## 499 | 0xD8, // ## ## 500 | 0xD8, // ## ## 501 | 0xA8, // # # # 502 | 0x88, // # # 503 | 0xD8, // ## ## 504 | 0x00, // 505 | 0x00, // 506 | 507 | // @368 'N' (5 pixels wide) 508 | 0xD8, // ## ## 509 | 0x68, // ## # 510 | 0x68, // ## # 511 | 0x58, // # ## 512 | 0x58, // # ## 513 | 0xE8, // ### # 514 | 0x00, // 515 | 0x00, // 516 | 517 | // @376 'O' (5 pixels wide) 518 | 0x30, // ## 519 | 0x48, // # # 520 | 0x48, // # # 521 | 0x48, // # # 522 | 0x48, // # # 523 | 0x30, // ## 524 | 0x00, // 525 | 0x00, // 526 | 527 | // @384 'P' (5 pixels wide) 528 | 0xF0, // #### 529 | 0x48, // # # 530 | 0x48, // # # 531 | 0x70, // ### 532 | 0x40, // # 533 | 0xE0, // ### 534 | 0x00, // 535 | 0x00, // 536 | 537 | // @392 'Q' (5 pixels wide) 538 | 0x30, // ## 539 | 0x48, // # # 540 | 0x48, // # # 541 | 0x48, // # # 542 | 0x48, // # # 543 | 0x30, // ## 544 | 0x18, // ## 545 | 0x00, // 546 | 547 | // @400 'R' (5 pixels wide) 548 | 0xF0, // #### 549 | 0x48, // # # 550 | 0x48, // # # 551 | 0x70, // ### 552 | 0x48, // # # 553 | 0xE8, // ### # 554 | 0x00, // 555 | 0x00, // 556 | 557 | // @408 'S' (5 pixels wide) 558 | 0x70, // ### 559 | 0x50, // # # 560 | 0x20, // # 561 | 0x10, // # 562 | 0x50, // # # 563 | 0x70, // ### 564 | 0x00, // 565 | 0x00, // 566 | 567 | // @416 'T' (5 pixels wide) 568 | 0xF8, // ##### 569 | 0xA8, // # # # 570 | 0x20, // # 571 | 0x20, // # 572 | 0x20, // # 573 | 0x70, // ### 574 | 0x00, // 575 | 0x00, // 576 | 577 | // @424 'U' (5 pixels wide) 578 | 0xD8, // ## ## 579 | 0x48, // # # 580 | 0x48, // # # 581 | 0x48, // # # 582 | 0x48, // # # 583 | 0x30, // ## 584 | 0x00, // 585 | 0x00, // 586 | 587 | // @432 'V' (5 pixels wide) 588 | 0xD8, // ## ## 589 | 0x88, // # # 590 | 0x48, // # # 591 | 0x50, // # # 592 | 0x50, // # # 593 | 0x30, // ## 594 | 0x00, // 595 | 0x00, // 596 | 597 | // @440 'W' (5 pixels wide) 598 | 0xD8, // ## ## 599 | 0x88, // # # 600 | 0xA8, // # # # 601 | 0xA8, // # # # 602 | 0xA8, // # # # 603 | 0x50, // # # 604 | 0x00, // 605 | 0x00, // 606 | 607 | // @448 'X' (5 pixels wide) 608 | 0xD8, // ## ## 609 | 0x50, // # # 610 | 0x20, // # 611 | 0x20, // # 612 | 0x50, // # # 613 | 0xD8, // ## ## 614 | 0x00, // 615 | 0x00, // 616 | 617 | // @456 'Y' (5 pixels wide) 618 | 0xD8, // ## ## 619 | 0x88, // # # 620 | 0x50, // # # 621 | 0x20, // # 622 | 0x20, // # 623 | 0x70, // ### 624 | 0x00, // 625 | 0x00, // 626 | 627 | // @464 'Z' (5 pixels wide) 628 | 0x78, // #### 629 | 0x48, // # # 630 | 0x10, // # 631 | 0x20, // # 632 | 0x48, // # # 633 | 0x78, // #### 634 | 0x00, // 635 | 0x00, // 636 | 637 | // @472 '[' (5 pixels wide) 638 | 0x30, // ## 639 | 0x20, // # 640 | 0x20, // # 641 | 0x20, // # 642 | 0x20, // # 643 | 0x20, // # 644 | 0x30, // ## 645 | 0x00, // 646 | 647 | // @480 '\' (5 pixels wide) 648 | 0x80, // # 649 | 0x40, // # 650 | 0x40, // # 651 | 0x20, // # 652 | 0x20, // # 653 | 0x20, // # 654 | 0x10, // # 655 | 0x00, // 656 | 657 | // @488 ']' (5 pixels wide) 658 | 0x60, // ## 659 | 0x20, // # 660 | 0x20, // # 661 | 0x20, // # 662 | 0x20, // # 663 | 0x20, // # 664 | 0x60, // ## 665 | 0x00, // 666 | 667 | // @496 '^' (5 pixels wide) 668 | 0x20, // # 669 | 0x20, // # 670 | 0x50, // # # 671 | 0x00, // 672 | 0x00, // 673 | 0x00, // 674 | 0x00, // 675 | 0x00, // 676 | 677 | // @504 '_' (5 pixels wide) 678 | 0x00, // 679 | 0x00, // 680 | 0x00, // 681 | 0x00, // 682 | 0x00, // 683 | 0x00, // 684 | 0x00, // 685 | 0xF8, // ##### 686 | 687 | // @512 '`' (5 pixels wide) 688 | 0x20, // # 689 | 0x10, // # 690 | 0x00, // 691 | 0x00, // 692 | 0x00, // 693 | 0x00, // 694 | 0x00, // 695 | 0x00, // 696 | 697 | // @520 'a' (5 pixels wide) 698 | 0x00, // 699 | 0x00, // 700 | 0x30, // ## 701 | 0x10, // # 702 | 0x70, // ### 703 | 0x78, // #### 704 | 0x00, // 705 | 0x00, // 706 | 707 | // @528 'b' (5 pixels wide) 708 | 0xC0, // ## 709 | 0x40, // # 710 | 0x70, // ### 711 | 0x48, // # # 712 | 0x48, // # # 713 | 0xF0, // #### 714 | 0x00, // 715 | 0x00, // 716 | 717 | // @536 'c' (5 pixels wide) 718 | 0x00, // 719 | 0x00, // 720 | 0x70, // ### 721 | 0x40, // # 722 | 0x40, // # 723 | 0x70, // ### 724 | 0x00, // 725 | 0x00, // 726 | 727 | // @544 'd' (5 pixels wide) 728 | 0x18, // ## 729 | 0x08, // # 730 | 0x38, // ### 731 | 0x48, // # # 732 | 0x48, // # # 733 | 0x38, // ### 734 | 0x00, // 735 | 0x00, // 736 | 737 | // @552 'e' (5 pixels wide) 738 | 0x00, // 739 | 0x00, // 740 | 0x70, // ### 741 | 0x70, // ### 742 | 0x40, // # 743 | 0x30, // ## 744 | 0x00, // 745 | 0x00, // 746 | 747 | // @560 'f' (5 pixels wide) 748 | 0x10, // # 749 | 0x20, // # 750 | 0x70, // ### 751 | 0x20, // # 752 | 0x20, // # 753 | 0x70, // ### 754 | 0x00, // 755 | 0x00, // 756 | 757 | // @568 'g' (5 pixels wide) 758 | 0x00, // 759 | 0x00, // 760 | 0x38, // ### 761 | 0x48, // # # 762 | 0x48, // # # 763 | 0x38, // ### 764 | 0x08, // # 765 | 0x30, // ## 766 | 767 | // @576 'h' (5 pixels wide) 768 | 0xC0, // ## 769 | 0x40, // # 770 | 0x70, // ### 771 | 0x48, // # # 772 | 0x48, // # # 773 | 0xE8, // ### # 774 | 0x00, // 775 | 0x00, // 776 | 777 | // @584 'i' (5 pixels wide) 778 | 0x20, // # 779 | 0x00, // 780 | 0x60, // ## 781 | 0x20, // # 782 | 0x20, // # 783 | 0x70, // ### 784 | 0x00, // 785 | 0x00, // 786 | 787 | // @592 'j' (5 pixels wide) 788 | 0x20, // # 789 | 0x00, // 790 | 0x70, // ### 791 | 0x10, // # 792 | 0x10, // # 793 | 0x10, // # 794 | 0x10, // # 795 | 0x70, // ### 796 | 797 | // @600 'k' (5 pixels wide) 798 | 0xC0, // ## 799 | 0x40, // # 800 | 0x58, // # ## 801 | 0x70, // ### 802 | 0x50, // # # 803 | 0xD8, // ## ## 804 | 0x00, // 805 | 0x00, // 806 | 807 | // @608 'l' (5 pixels wide) 808 | 0x60, // ## 809 | 0x20, // # 810 | 0x20, // # 811 | 0x20, // # 812 | 0x20, // # 813 | 0x70, // ### 814 | 0x00, // 815 | 0x00, // 816 | 817 | // @616 'm' (5 pixels wide) 818 | 0x00, // 819 | 0x00, // 820 | 0xD0, // ## # 821 | 0xA8, // # # # 822 | 0xA8, // # # # 823 | 0xA8, // # # # 824 | 0x00, // 825 | 0x00, // 826 | 827 | // @624 'n' (5 pixels wide) 828 | 0x00, // 829 | 0x00, // 830 | 0xF0, // #### 831 | 0x48, // # # 832 | 0x48, // # # 833 | 0xC8, // ## # 834 | 0x00, // 835 | 0x00, // 836 | 837 | // @632 'o' (5 pixels wide) 838 | 0x00, // 839 | 0x00, // 840 | 0x30, // ## 841 | 0x48, // # # 842 | 0x48, // # # 843 | 0x30, // ## 844 | 0x00, // 845 | 0x00, // 846 | 847 | // @640 'p' (5 pixels wide) 848 | 0x00, // 849 | 0x00, // 850 | 0xF0, // #### 851 | 0x48, // # # 852 | 0x48, // # # 853 | 0x70, // ### 854 | 0x40, // # 855 | 0xE0, // ### 856 | 857 | // @648 'q' (5 pixels wide) 858 | 0x00, // 859 | 0x00, // 860 | 0x38, // ### 861 | 0x48, // # # 862 | 0x48, // # # 863 | 0x38, // ### 864 | 0x08, // # 865 | 0x18, // ## 866 | 867 | // @656 'r' (5 pixels wide) 868 | 0x00, // 869 | 0x00, // 870 | 0x78, // #### 871 | 0x20, // # 872 | 0x20, // # 873 | 0x70, // ### 874 | 0x00, // 875 | 0x00, // 876 | 877 | // @664 's' (5 pixels wide) 878 | 0x00, // 879 | 0x00, // 880 | 0x30, // ## 881 | 0x20, // # 882 | 0x10, // # 883 | 0x60, // ## 884 | 0x00, // 885 | 0x00, // 886 | 887 | // @672 't' (5 pixels wide) 888 | 0x00, // 889 | 0x40, // # 890 | 0xF0, // #### 891 | 0x40, // # 892 | 0x48, // # # 893 | 0x30, // ## 894 | 0x00, // 895 | 0x00, // 896 | 897 | // @680 'u' (5 pixels wide) 898 | 0x00, // 899 | 0x00, // 900 | 0xD8, // ## ## 901 | 0x48, // # # 902 | 0x48, // # # 903 | 0x38, // ### 904 | 0x00, // 905 | 0x00, // 906 | 907 | // @688 'v' (5 pixels wide) 908 | 0x00, // 909 | 0x00, // 910 | 0xC8, // ## # 911 | 0x48, // # # 912 | 0x30, // ## 913 | 0x30, // ## 914 | 0x00, // 915 | 0x00, // 916 | 917 | // @696 'w' (5 pixels wide) 918 | 0x00, // 919 | 0x00, // 920 | 0xD8, // ## ## 921 | 0xA8, // # # # 922 | 0xA8, // # # # 923 | 0x50, // # # 924 | 0x00, // 925 | 0x00, // 926 | 927 | // @704 'x' (5 pixels wide) 928 | 0x00, // 929 | 0x00, // 930 | 0x48, // # # 931 | 0x30, // ## 932 | 0x30, // ## 933 | 0x48, // # # 934 | 0x00, // 935 | 0x00, // 936 | 937 | // @712 'y' (5 pixels wide) 938 | 0x00, // 939 | 0x00, // 940 | 0xD8, // ## ## 941 | 0x50, // # # 942 | 0x50, // # # 943 | 0x20, // # 944 | 0x20, // # 945 | 0x60, // ## 946 | 947 | // @720 'z' (5 pixels wide) 948 | 0x00, // 949 | 0x00, // 950 | 0x78, // #### 951 | 0x50, // # # 952 | 0x28, // # # 953 | 0x78, // #### 954 | 0x00, // 955 | 0x00, // 956 | 957 | // @728 '{' (5 pixels wide) 958 | 0x10, // # 959 | 0x20, // # 960 | 0x20, // # 961 | 0x60, // ## 962 | 0x20, // # 963 | 0x20, // # 964 | 0x10, // # 965 | 0x00, // 966 | 967 | // @736 '|' (5 pixels wide) 968 | 0x20, // # 969 | 0x20, // # 970 | 0x20, // # 971 | 0x20, // # 972 | 0x20, // # 973 | 0x20, // # 974 | 0x20, // # 975 | 0x00, // 976 | 977 | // @744 '}' (5 pixels wide) 978 | 0x40, // # 979 | 0x20, // # 980 | 0x20, // # 981 | 0x30, // ## 982 | 0x20, // # 983 | 0x20, // # 984 | 0x40, // # 985 | 0x00, // 986 | 987 | // @752 '~' (5 pixels wide) 988 | 0x00, // 989 | 0x00, // 990 | 0x00, // 991 | 0x28, // # # 992 | 0x50, // # # 993 | 0x00, // 994 | 0x00, // 995 | 0x00, // 996 | }; 997 | 998 | sFONT Font8 = { 999 | Font8_Table, 1000 | 5, /* Width */ 1001 | 8, /* Height */ 1002 | }; 1003 | 1004 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 1005 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/fonts.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file fonts.h 4 | * @author MCD Application Team 5 | * @version V1.0.0 6 | * @date 18-February-2014 7 | * @brief Header for fonts.c file 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | *

© COPYRIGHT(c) 2014 STMicroelectronics

12 | * 13 | * Redistribution and use in source and binary forms, with or without modification, 14 | * are permitted provided that the following conditions are met: 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, 18 | * this list of conditions and the following disclaimer in the documentation 19 | * and/or other materials provided with the distribution. 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors 21 | * may be used to endorse or promote products derived from this software 22 | * without specific prior written permission. 23 | * 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | * 35 | ****************************************************************************** 36 | */ 37 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ 39 | #ifndef __FONTS_H 40 | #define __FONTS_H 41 | 42 | 43 | /* Max size of bitmap will based on a font24 (17x24) */ 44 | #define MAX_HEIGHT_FONT 41 45 | #define MAX_WIDTH_FONT 32 46 | #define OFFSET_BITMAP 54 47 | 48 | #ifdef __cplusplus 49 | extern "C" { 50 | #endif 51 | 52 | /* Includes ------------------------------------------------------------------*/ 53 | #include 54 | // #include 55 | //ASCII 56 | typedef struct _tFont 57 | { 58 | const uint8_t *table; 59 | uint16_t Width; 60 | uint16_t Height; 61 | 62 | } sFONT; 63 | 64 | //GB2312 65 | typedef struct // 汉字字模数据结构 66 | { 67 | unsigned char index[3]; // 汉字内码索引 68 | const char matrix[MAX_HEIGHT_FONT*MAX_WIDTH_FONT/8]; // 点阵码数据 69 | }CH_CN; 70 | 71 | typedef struct 72 | { 73 | const CH_CN *table; 74 | uint16_t size; 75 | uint16_t ASCII_Width; 76 | uint16_t Width; 77 | uint16_t Height; 78 | 79 | }cFONT; 80 | 81 | extern sFONT Font24; 82 | extern sFONT Font20; 83 | extern sFONT Font16; 84 | extern sFONT Font12; 85 | extern sFONT Font8; 86 | 87 | extern cFONT Font12CN; 88 | extern cFONT Font24CN; 89 | 90 | extern sFONT bahn_big; 91 | extern sFONT bahn_mid; 92 | extern sFONT bahn_sml; 93 | 94 | extern sFONT nothing_big; 95 | extern sFONT nothing_mid; 96 | extern sFONT nothing_sml; 97 | 98 | extern sFONT gotham_big; 99 | extern sFONT gotham_mid; 100 | extern sFONT gotham_sml; 101 | // extern const unsigned char Font16_Table[]; 102 | 103 | #ifdef __cplusplus 104 | } 105 | #endif 106 | 107 | #endif /* __FONTS_H */ 108 | 109 | 110 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 111 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/gotham_sml.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Font Data 3 | // Created: 31/10/2022 at 22:18:37 4 | // 5 | 6 | 7 | #include "fonts.h" 8 | 9 | const uint8_t gotham_sml_Table [] = { 10 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x00 (0) 11 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x01 (1) 12 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x02 (2) 13 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x03 (3) 14 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x04 (4) 15 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x08,0x40,0x00,0x80,0x00,0x00,0x09,0x00,0x72,0x00,0x00,0x00,0x04,0xF0,0x00,0x00,0x09,0x08,0x10,0x00,0x00,0x90,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x05 (5) 16 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x06 (6) 17 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x07 (7) 18 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x08 (8) 19 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x09 (9) 20 | 0x00,0x00,0x00,0x00,0x03,0xC0,0x04,0x20,0x08,0x10,0x08,0x10,0x00,0x10,0x04,0x20,0x03,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0A (10) 21 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0B (11) 22 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x78,0x00,0x78,0x00,0x78,0x00,0x10,0x00,0x10,0x00,0x30,0x00,0x40,0x00,0x00,0x00, // Character 0x0C (12) 23 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0D (13) 24 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0E (14) 25 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0F (15) 26 | 0x00,0x00,0x02,0x00,0x0F,0xC0,0x18,0xE0,0x30,0x20,0x20,0x30,0x60,0x10,0x60,0x10,0x60,0x18,0x60,0x18,0x60,0x18,0x60,0x10,0x60,0x10,0x20,0x30,0x30,0x20,0x18,0xE0,0x0F,0xC0,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x10 (16) 27 | 0x00,0x00,0x00,0x00,0x01,0x80,0x0F,0x80,0x1F,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x11 (17) 28 | 0x00,0x00,0x00,0x00,0x03,0x00,0x0F,0xE0,0x1C,0x70,0x30,0x30,0x00,0x30,0x00,0x38,0x00,0x30,0x00,0x30,0x00,0x60,0x00,0xC0,0x01,0x80,0x03,0x00,0x06,0x00,0x1C,0x00,0x38,0x00,0x7F,0xF8,0x7F,0xF8,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x12 (18) 29 | 0x00,0x00,0x00,0x00,0x7F,0xE0,0x7F,0xE0,0x00,0xE0,0x00,0xC0,0x01,0x80,0x03,0x00,0x06,0x00,0x0F,0x00,0x0F,0xC0,0x00,0xE0,0x00,0x60,0x00,0x70,0x00,0x60,0x40,0x60,0x70,0xE0,0x3F,0x80,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x13 (19) 30 | 0x00,0x00,0x00,0x00,0x00,0x40,0x00,0xC0,0x01,0xC0,0x03,0xC0,0x06,0xC0,0x04,0xC0,0x08,0xC0,0x18,0xC0,0x30,0xC0,0x20,0xC0,0x60,0xC0,0xFF,0xF8,0x7F,0xF8,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x14 (20) 31 | 0x00,0x00,0x00,0x00,0x3F,0xF0,0x3F,0xF0,0x30,0x00,0x30,0x00,0x30,0x00,0x30,0x00,0x23,0x00,0x7F,0xE0,0x00,0x70,0x00,0x30,0x00,0x30,0x00,0x38,0x00,0x30,0x40,0x30,0x78,0xE0,0x3F,0xC0,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x15 (21) 32 | 0x00,0x00,0x00,0x00,0x03,0x00,0x0F,0xE0,0x1C,0x60,0x30,0x00,0x60,0x00,0x60,0x00,0x63,0x00,0x6F,0xC0,0x70,0x60,0x60,0x30,0x60,0x30,0x60,0x30,0x60,0x30,0x20,0x30,0x30,0x60,0x1F,0xC0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x16 (22) 33 | 0x00,0x00,0x00,0x00,0x7F,0xF8,0x7F,0xF8,0x00,0x30,0x00,0x30,0x00,0x60,0x00,0x60,0x00,0xC0,0x00,0xC0,0x01,0x80,0x03,0x80,0x03,0x00,0x07,0x00,0x06,0x00,0x0E,0x00,0x0C,0x00,0x1C,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x17 (23) 34 | 0x00,0x00,0x00,0x00,0x03,0x00,0x1F,0xE0,0x38,0x70,0x30,0x30,0x70,0x38,0x30,0x30,0x30,0x20,0x0F,0xC0,0x1F,0xC0,0x30,0x60,0x60,0x30,0x60,0x30,0x60,0x30,0x60,0x30,0x70,0x70,0x1F,0xC0,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x18 (24) 35 | 0x00,0x00,0x00,0x00,0x06,0x00,0x1F,0x80,0x30,0xC0,0x60,0x60,0x60,0x20,0x60,0x20,0x60,0x30,0x60,0x70,0x30,0xF0,0x1F,0x20,0x04,0x20,0x00,0x60,0x00,0x60,0x00,0xC0,0x31,0xC0,0x3F,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x19 (25) 36 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1A (26) 37 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1B (27) 38 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1C (28) 39 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1D (29) 40 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1E (30) 41 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1F (31) 42 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x20 (32) 43 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x21 (33) 44 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x22 (34) 45 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xE0,0x1F,0xF0,0x30,0x10,0x30,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x30,0x00,0x18,0x30,0x0F,0xF0,0x07,0xC0,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x23 (35) 46 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x24 (36) 47 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x25 (37) 48 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xE0,0xFF,0xE0,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xFF,0xC0,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x26 (38) 49 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x27 (39) 50 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x28 (40) 51 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x29 (41) 52 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2A (42) 53 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2B (43) 54 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2C (44) 55 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2D (45) 56 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2E (46) 57 | 0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x80,0x1F,0xC0,0x30,0x60,0x60,0x30,0x40,0x10,0x40,0x10,0x40,0x18,0x40,0x18,0x40,0x18,0x40,0x10,0x60,0x10,0x20,0x30,0x30,0x60,0x1F,0xC0,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2F (47) 58 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x30 (48) 59 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x31 (49) 60 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x32 (50) 61 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x33 (51) 62 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x34 (52) 63 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x35 (53) 64 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x36 (54) 65 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x37 (55) 66 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x38 (56) 67 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x39 (57) 68 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3A (58) 69 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3B (59) 70 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3C (60) 71 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3D (61) 72 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3E (62) 73 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3F (63) 74 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x40 (64) 75 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x41 (65) 76 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x42 (66) 77 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x43 (67) 78 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x44 (68) 79 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x45 (69) 80 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x46 (70) 81 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x47 (71) 82 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x48 (72) 83 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x49 (73) 84 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4A (74) 85 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4B (75) 86 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5C,0xF0,0x67,0x30,0x43,0x18,0x42,0x18,0x42,0x08,0x42,0x08,0x42,0x08,0x42,0x08,0x42,0x08,0x42,0x08,0x42,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4C (76) 87 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4D (77) 88 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4E (78) 89 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4F (79) 90 | 0x00,0x00,0x00,0x00,0x00,0x00,0xCF,0x80,0xF0,0xC0,0xE0,0x60,0xC0,0x60,0xC0,0x60,0xC0,0x60,0xC0,0x60,0xC0,0x60,0xE0,0xC0,0xDF,0xC0,0xC7,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x50 (80) 91 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x51 (81) 92 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x52 (82) 93 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x53 (83) 94 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x54 (84) 95 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x55 (85) 96 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x56 (86) 97 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x57 (87) 98 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x58 (88) 99 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x59 (89) 100 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5A (90) 101 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5B (91) 102 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5C (92) 103 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5D (93) 104 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5E (94) 105 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5F (95) 106 | }; 107 | 108 | 109 | sFONT gotham_sml = { 110 | gotham_sml_Table, 111 | 13, /* Width */ 112 | 22, /* Height */ 113 | }; -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/nothing_sml.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Font Data 3 | // Created: 31/10/2022 at 02:14:38 4 | // 5 | 6 | #include "fonts.h" 7 | 8 | const uint8_t nothing_sml_Table [] = { 9 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x00 (0) 10 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x01 (1) 11 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x02 (2) 12 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x03 (3) 13 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x04 (4) 14 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x05 (5) 15 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x06 (6) 16 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x07 (7) 17 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x08 (8) 18 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x09 (9) 19 | 0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0A (10) 20 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0B (11) 21 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x08,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00, // Character 0x0C (12) 22 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0D (13) 23 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0E (14) 24 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x0F (15) 25 | 0x00,0x00,0x12,0x80,0x12,0x80,0x00,0x00,0x40,0x30,0x00,0x00,0x40,0x00,0x40,0x30,0x40,0x00,0x40,0x30,0x40,0x00,0x00,0x00,0x40,0x30,0x40,0x00,0x40,0x10,0x40,0x10,0x00,0x00,0x1B,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x10 (16) 26 | 0x00,0x00,0x06,0x00,0x06,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x04,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x04,0x00,0x06,0x00,0x00,0x00,0x16,0x80,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x11 (17) 27 | 0x00,0x00,0x12,0x80,0x12,0x80,0x00,0x00,0x40,0x10,0x00,0x00,0x00,0x10,0x00,0x10,0x00,0x00,0x00,0xC0,0x00,0x80,0x00,0x00,0x02,0x00,0x00,0x00,0x10,0x00,0x18,0x00,0x00,0x00,0x5A,0xD0,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x12 (18) 28 | 0x00,0x00,0x0A,0x40,0x0A,0x40,0x00,0x00,0x40,0x10,0x00,0x00,0x00,0x10,0x00,0x10,0x00,0x00,0x02,0xC0,0x02,0x00,0x00,0x00,0x00,0x10,0x00,0x10,0x40,0x10,0x40,0x10,0x00,0x00,0x1A,0xC0,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x13 (19) 29 | 0x00,0x00,0x00,0x80,0x00,0x80,0x00,0x00,0x02,0xC0,0x00,0x00,0x10,0x00,0x18,0xC0,0x00,0x00,0x40,0xC0,0x40,0x80,0x00,0x00,0xFA,0xD0,0x00,0x00,0x00,0x80,0x00,0xC0,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x14 (20) 30 | 0x00,0x00,0x5A,0xD0,0x5A,0xD0,0x40,0x00,0x40,0x00,0x00,0x00,0x40,0x00,0x40,0x00,0x40,0x00,0x5A,0xC0,0x42,0x00,0x00,0x00,0x00,0x10,0x00,0x10,0x40,0x10,0x40,0x10,0x00,0x00,0x1E,0xC0,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x15 (21) 31 | 0x00,0x00,0x02,0x90,0x02,0x90,0x00,0x00,0x18,0x00,0x00,0x00,0x40,0x00,0x40,0x00,0x00,0x00,0x5A,0xC0,0x42,0x00,0x00,0x00,0x40,0x10,0x00,0x00,0x40,0x10,0x40,0x10,0x00,0x00,0x1B,0xC0,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x16 (22) 32 | 0x00,0x00,0x52,0x90,0x52,0x90,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x80,0x00,0x80,0x00,0x00,0x02,0x00,0x02,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x10,0x00,0x10,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x17 (23) 33 | 0x00,0x00,0x0A,0x80,0x0A,0x80,0x00,0x00,0x40,0x10,0x00,0x00,0x40,0x10,0x40,0x10,0x00,0x00,0x1A,0xC0,0x02,0x00,0x00,0x00,0x40,0x10,0x00,0x00,0x40,0x10,0x40,0x10,0x00,0x00,0x1B,0xC0,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x18 (24) 34 | 0x00,0x00,0x0A,0x40,0x0A,0x40,0x00,0x00,0x40,0x10,0x00,0x00,0x40,0x10,0x40,0x10,0x00,0x10,0x0A,0xD0,0x0A,0x10,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x40,0x00,0xC0,0x00,0x00,0x1A,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x19 (25) 35 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1A (26) 36 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1B (27) 37 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1C (28) 38 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1D (29) 39 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1E (30) 40 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x1F (31) 41 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x20 (32) 42 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x21 (33) 43 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x22 (34) 44 | 0x00,0x00,0x12,0x80,0x12,0x80,0x00,0x00,0x40,0x10,0x00,0x10,0x40,0x00,0x40,0x00,0x00,0x00,0x40,0x00,0x40,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x40,0x10,0x40,0x10,0x00,0x00,0x12,0x80,0x02,0x80,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x23 (35) 45 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x24 (36) 46 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x25 (37) 47 | 0x00,0x00,0x00,0x00,0x4A,0x10,0x4A,0xD0,0x00,0x00,0x40,0x00,0x00,0x00,0x40,0x00,0x40,0x00,0x40,0x00,0x5A,0xC0,0x42,0x80,0x00,0x00,0x40,0x00,0x40,0x00,0x40,0x00,0x40,0x00,0x00,0x00,0x40,0x00,0x40,0x00,0x00,0x00,0x00,0x00, // Character 0x26 (38) 48 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x27 (39) 49 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x28 (40) 50 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x29 (41) 51 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2A (42) 52 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2B (43) 53 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2C (44) 54 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2D (45) 55 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2E (46) 56 | 0x00,0x00,0x0A,0x40,0x0A,0x40,0x00,0x00,0x40,0x10,0x00,0x10,0x40,0x10,0x40,0x10,0x40,0x00,0x40,0x10,0x40,0x10,0x00,0x10,0x40,0x10,0x40,0x00,0x40,0x10,0x40,0x10,0x00,0x00,0x1A,0xC0,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x2F (47) 57 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x30 (48) 58 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x31 (49) 59 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x32 (50) 60 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x33 (51) 61 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x34 (52) 62 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x35 (53) 63 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x36 (54) 64 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x37 (55) 65 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x38 (56) 66 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x39 (57) 67 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3A (58) 68 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3B (59) 69 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3C (60) 70 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3D (61) 71 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3E (62) 72 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x3F (63) 73 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x40 (64) 74 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x41 (65) 75 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x42 (66) 76 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x43 (67) 77 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x44 (68) 78 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x45 (69) 79 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x46 (70) 80 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x47 (71) 81 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x48 (72) 82 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x49 (73) 83 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4A (74) 84 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4B (75) 85 | 0x00,0x00,0x00,0x00,0x00,0x00,0x88,0x20,0x00,0x00,0x20,0x00,0xA3,0x90,0x00,0x00,0x82,0x00,0x82,0x10,0x00,0x00,0x82,0x10,0x82,0x00,0x00,0x00,0x82,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4C (76) 86 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4D (77) 87 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4E (78) 88 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x4F (79) 89 | 0x00,0x00,0x00,0x00,0x00,0x00,0x5E,0x00,0x00,0x00,0x40,0x00,0x40,0xC0,0x00,0x00,0x40,0x80,0x40,0xC0,0x00,0x00,0x40,0xC0,0x40,0x80,0x00,0x00,0xDA,0x00,0x02,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x40,0x00,0xC0,0x00,0x00,0x00, // Character 0x50 (80) 90 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x51 (81) 91 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x52 (82) 92 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x53 (83) 93 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x54 (84) 94 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x55 (85) 95 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x56 (86) 96 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x57 (87) 97 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x58 (88) 98 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x59 (89) 99 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5A (90) 100 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5B (91) 101 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5C (92) 102 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5D (93) 103 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5E (94) 104 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, // Character 0x5F (95) 105 | }; 106 | 107 | 108 | sFONT nothing_sml = { 109 | nothing_sml_Table, 110 | 13, /* Width */ 111 | 22, /* Height */ 112 | }; -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/utility/Debug.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * | File : Debug.h 3 | * | Author : Waveshare team 4 | * | Function : debug with printf 5 | * | Info : 6 | * Image scanning 7 | * Please use progressive scanning to generate images or fonts 8 | *---------------- 9 | * | This version: V1.0 10 | * | Date : 2018-01-11 11 | * | Info : Basic version 12 | * 13 | ******************************************************************************/ 14 | #ifndef __DEBUG_H 15 | #define __DEBUG_H 16 | 17 | #include 18 | 19 | #define USE_DEBUG 0 20 | #if USE_DEBUG 21 | #define Debug(__info) Serial.print(__info) 22 | #else 23 | #define Debug(__info) 24 | #endif 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/utility/EPD_1in54_V2.cpp: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * | File : EPD_1in54_V2.c 3 | * | Author : Waveshare team 4 | * | Function : 1.54inch e-paper V2 5 | * | Info : 6 | *---------------- 7 | * | This version: V1.0 8 | * | Date : 2019-06-11 9 | * | Info : 10 | # 11 | # Permission is hereby granted, free of charge, to any person obtaining a copy 12 | # of this software and associated documnetation files (the "Software"), to deal 13 | # in the Software without restriction, including without limitation the rights 14 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 15 | # copies of the Software, and to permit persons to whom the Software is 16 | # furished to do so, subject to the following conditions: 17 | # 18 | # The above copyright notice and this permission notice shall be included in 19 | # all copies or substantial portions of the Software. 20 | # 21 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 26 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 27 | # THE SOFTWARE. 28 | # 29 | ******************************************************************************/ 30 | #include "EPD_1in54_V2.h" 31 | #include "Debug.h" 32 | 33 | // waveform full refresh 34 | unsigned char WF_Full_1IN54[159] = 35 | { 36 | 0x80, 0x48, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 37 | 0x40, 0x48, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 38 | 0x80, 0x48, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 39 | 0x40, 0x48, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 40 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 41 | 0xA, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 42 | 0x8, 0x1, 0x0, 0x8, 0x1, 0x0, 0x2, 43 | 0xA, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 44 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 45 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 46 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 47 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 48 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 49 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 50 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 51 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 52 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 53 | 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x0, 0x0, 0x0, 54 | 0x22, 0x17, 0x41, 0x0, 0x32, 0x20 55 | }; 56 | 57 | // waveform partial refresh(fast) 58 | unsigned char WF_PARTIAL_1IN54_0[159] = 59 | { 60 | 0x0,0x40,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 61 | 0x80,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 62 | 0x40,0x40,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 63 | 0x0,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 64 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 65 | 0xF,0x0,0x0,0x0,0x0,0x0,0x0, 66 | 0x1,0x1,0x0,0x0,0x0,0x0,0x0, 67 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0, 68 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0, 69 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0, 70 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0, 71 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0, 72 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0, 73 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0, 74 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0, 75 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0, 76 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0, 77 | 0x22,0x22,0x22,0x22,0x22,0x22,0x0,0x0,0x0, 78 | 0x02,0x17,0x41,0xB0,0x32,0x28, 79 | }; 80 | 81 | /****************************************************************************** 82 | function : Software reset 83 | parameter: 84 | ******************************************************************************/ 85 | static void EPD_1IN54_V2_Reset(void) 86 | { 87 | DEV_Digital_Write(EPD_RST_PIN, 1); 88 | DEV_Delay_ms(20); 89 | DEV_Digital_Write(EPD_RST_PIN, 0); 90 | DEV_Delay_ms(2); 91 | DEV_Digital_Write(EPD_RST_PIN, 1); 92 | DEV_Delay_ms(20); 93 | } 94 | 95 | /****************************************************************************** 96 | function : send command 97 | parameter: 98 | Reg : Command register 99 | ******************************************************************************/ 100 | static void EPD_1IN54_V2_SendCommand(UBYTE Reg) 101 | { 102 | DEV_Digital_Write(EPD_DC_PIN, 0); 103 | DEV_Digital_Write(EPD_CS_PIN, 0); 104 | DEV_SPI_WriteByte(Reg); 105 | DEV_Digital_Write(EPD_CS_PIN, 1); 106 | } 107 | 108 | /****************************************************************************** 109 | function : send data 110 | parameter: 111 | Data : Write data 112 | ******************************************************************************/ 113 | static void EPD_1IN54_V2_SendData(UBYTE Data) 114 | { 115 | DEV_Digital_Write(EPD_DC_PIN, 1); 116 | DEV_Digital_Write(EPD_CS_PIN, 0); 117 | DEV_SPI_WriteByte(Data); 118 | DEV_Digital_Write(EPD_CS_PIN, 1); 119 | } 120 | 121 | /****************************************************************************** 122 | function : Wait until the busy_pin goes LOW 123 | parameter: 124 | ******************************************************************************/ 125 | static void EPD_1IN54_V2_ReadBusy(void) 126 | { 127 | Debug("e-Paper busy\r\n"); 128 | while(DEV_Digital_Read(EPD_BUSY_PIN) == 1) { //LOW: idle, HIGH: busy 129 | DEV_Delay_ms(1); 130 | } 131 | Debug("e-Paper busy release\r\n"); 132 | } 133 | 134 | /****************************************************************************** 135 | function : Turn On Display full 136 | parameter: 137 | ******************************************************************************/ 138 | static void EPD_1IN54_V2_TurnOnDisplay(void) 139 | { 140 | EPD_1IN54_V2_SendCommand(0x22); 141 | //EPD_1IN54_V2_SendData(0xF7); // if OTP Waveform is used 142 | EPD_1IN54_V2_SendData(0xc7); // if LUT Waveform is loaded 143 | EPD_1IN54_V2_SendCommand(0x20); 144 | EPD_1IN54_V2_ReadBusy(); 145 | } 146 | 147 | /****************************************************************************** 148 | function : Turn On Display part 149 | parameter: 150 | ******************************************************************************/ 151 | static void EPD_1IN54_V2_TurnOnDisplayPart(void) 152 | { 153 | EPD_1IN54_V2_SendCommand(0x22); 154 | //EPD_1IN54_V2_SendData(0xFF); // if OTP Waveform is used 155 | EPD_1IN54_V2_SendData(0xcF); // if LUT Waveform is loaded 156 | EPD_1IN54_V2_SendCommand(0x20); 157 | EPD_1IN54_V2_ReadBusy(); 158 | } 159 | 160 | static void EPD_1IN54_V2_Lut(UBYTE *lut) 161 | { 162 | EPD_1IN54_V2_SendCommand(0x32); 163 | for(UBYTE i=0; i<153; i++) 164 | EPD_1IN54_V2_SendData(lut[i]); 165 | EPD_1IN54_V2_ReadBusy(); 166 | } 167 | 168 | static void EPD_1IN54_V2_SetLut(UBYTE *lut) 169 | { 170 | EPD_1IN54_V2_Lut(lut); 171 | 172 | EPD_1IN54_V2_SendCommand(0x3f); 173 | EPD_1IN54_V2_SendData(lut[153]); 174 | 175 | EPD_1IN54_V2_SendCommand(0x03); 176 | EPD_1IN54_V2_SendData(lut[154]); 177 | 178 | EPD_1IN54_V2_SendCommand(0x04); 179 | EPD_1IN54_V2_SendData(lut[155]); 180 | EPD_1IN54_V2_SendData(lut[156]); 181 | EPD_1IN54_V2_SendData(lut[157]); 182 | 183 | EPD_1IN54_V2_SendCommand(0x2c); 184 | EPD_1IN54_V2_SendData(lut[158]); 185 | } 186 | 187 | static void EPD_1IN54_V2_SetWindows(UWORD Xstart, UWORD Ystart, UWORD Xend, UWORD Yend) 188 | { 189 | EPD_1IN54_V2_SendCommand(0x44); // SET_RAM_X_ADDRESS_START_END_POSITION 190 | EPD_1IN54_V2_SendData((Xstart>>3) & 0xFF); 191 | EPD_1IN54_V2_SendData((Xend>>3) & 0xFF); 192 | 193 | EPD_1IN54_V2_SendCommand(0x45); // SET_RAM_Y_ADDRESS_START_END_POSITION 194 | EPD_1IN54_V2_SendData(Ystart & 0xFF); 195 | EPD_1IN54_V2_SendData((Ystart >> 8) & 0xFF); 196 | EPD_1IN54_V2_SendData(Yend & 0xFF); 197 | EPD_1IN54_V2_SendData((Yend >> 8) & 0xFF); 198 | } 199 | 200 | static void EPD_1IN54_V2_SetCursor(UWORD Xstart, UWORD Ystart) 201 | { 202 | EPD_1IN54_V2_SendCommand(0x4E); // SET_RAM_X_ADDRESS_COUNTER 203 | EPD_1IN54_V2_SendData(Xstart & 0xFF); 204 | 205 | EPD_1IN54_V2_SendCommand(0x4F); // SET_RAM_Y_ADDRESS_COUNTER 206 | EPD_1IN54_V2_SendData(Ystart & 0xFF); 207 | EPD_1IN54_V2_SendData((Ystart >> 8) & 0xFF); 208 | } 209 | 210 | /****************************************************************************** 211 | function : Initialize the e-Paper register 212 | parameter: 213 | ******************************************************************************/ 214 | void EPD_1IN54_V2_Init(void) 215 | { 216 | EPD_1IN54_V2_Reset(); 217 | 218 | EPD_1IN54_V2_ReadBusy(); 219 | EPD_1IN54_V2_SendCommand(0x12); //SWRESET 220 | EPD_1IN54_V2_ReadBusy(); 221 | 222 | EPD_1IN54_V2_SendCommand(0x01); //Driver output control 223 | EPD_1IN54_V2_SendData(0xC7); 224 | EPD_1IN54_V2_SendData(0x00); 225 | EPD_1IN54_V2_SendData(0x01); 226 | 227 | EPD_1IN54_V2_SendCommand(0x11); //data entry mode 228 | EPD_1IN54_V2_SendData(0x01); 229 | 230 | EPD_1IN54_V2_SetWindows(0, EPD_1IN54_V2_HEIGHT-1, EPD_1IN54_V2_WIDTH-1, 0); 231 | 232 | EPD_1IN54_V2_SendCommand(0x3C); //BorderWavefrom 233 | EPD_1IN54_V2_SendData(0x01); 234 | 235 | EPD_1IN54_V2_SendCommand(0x18); 236 | EPD_1IN54_V2_SendData(0x80); 237 | 238 | EPD_1IN54_V2_SendCommand(0x22); // //Load Temperature and waveform setting. 239 | EPD_1IN54_V2_SendData(0XB1); 240 | EPD_1IN54_V2_SendCommand(0x20); 241 | 242 | EPD_1IN54_V2_SetCursor(0, EPD_1IN54_V2_HEIGHT-1); 243 | EPD_1IN54_V2_ReadBusy(); 244 | 245 | EPD_1IN54_V2_SetLut(WF_Full_1IN54); 246 | } 247 | 248 | /****************************************************************************** 249 | function : Initialize the e-Paper register (Partial display) 250 | parameter: 251 | ******************************************************************************/ 252 | void EPD_1IN54_V2_Init_Partial(void) 253 | { 254 | EPD_1IN54_V2_Reset(); 255 | EPD_1IN54_V2_ReadBusy(); 256 | 257 | EPD_1IN54_V2_SetLut(WF_PARTIAL_1IN54_0); 258 | EPD_1IN54_V2_SendCommand(0x37); 259 | EPD_1IN54_V2_SendData(0x00); 260 | EPD_1IN54_V2_SendData(0x00); 261 | EPD_1IN54_V2_SendData(0x00); 262 | EPD_1IN54_V2_SendData(0x00); 263 | EPD_1IN54_V2_SendData(0x00); 264 | EPD_1IN54_V2_SendData(0x40); 265 | EPD_1IN54_V2_SendData(0x00); 266 | EPD_1IN54_V2_SendData(0x00); 267 | EPD_1IN54_V2_SendData(0x00); 268 | EPD_1IN54_V2_SendData(0x00); 269 | 270 | EPD_1IN54_V2_SendCommand(0x3C); //BorderWavefrom 271 | EPD_1IN54_V2_SendData(0x80); 272 | 273 | EPD_1IN54_V2_SendCommand(0x22); 274 | EPD_1IN54_V2_SendData(0xc0); 275 | EPD_1IN54_V2_SendCommand(0x20); 276 | EPD_1IN54_V2_ReadBusy(); 277 | } 278 | 279 | /****************************************************************************** 280 | function : Initialize the e-Paper register (Partial display after powerdown) 281 | parameter: 282 | ******************************************************************************/ 283 | void EPD_1IN54_V2_Init_Partial_After_Powerdown(void) 284 | { 285 | EPD_1IN54_V2_Reset(); 286 | 287 | EPD_1IN54_V2_ReadBusy(); 288 | EPD_1IN54_V2_SendCommand(0x12); //SWRESET 289 | EPD_1IN54_V2_ReadBusy(); 290 | 291 | EPD_1IN54_V2_SendCommand(0x01); //Driver output control 292 | EPD_1IN54_V2_SendData(0xC7); 293 | EPD_1IN54_V2_SendData(0x00); 294 | EPD_1IN54_V2_SendData(0x01); 295 | 296 | EPD_1IN54_V2_SendCommand(0x11); //data entry mode 297 | EPD_1IN54_V2_SendData(0x01); 298 | 299 | EPD_1IN54_V2_SetWindows(0, EPD_1IN54_V2_HEIGHT-1, EPD_1IN54_V2_WIDTH-1, 0); 300 | 301 | EPD_1IN54_V2_SendCommand(0x3C); //BorderWavefrom 302 | EPD_1IN54_V2_SendData(0x01); 303 | 304 | EPD_1IN54_V2_SendCommand(0x18); 305 | EPD_1IN54_V2_SendData(0x80); 306 | 307 | EPD_1IN54_V2_SendCommand(0x22); // //Load Temperature and waveform setting. 308 | EPD_1IN54_V2_SendData(0XB1); 309 | EPD_1IN54_V2_SendCommand(0x20); 310 | 311 | EPD_1IN54_V2_SetCursor(0, EPD_1IN54_V2_HEIGHT-1); 312 | EPD_1IN54_V2_ReadBusy(); 313 | 314 | EPD_1IN54_V2_SetLut(WF_PARTIAL_1IN54_0); 315 | } 316 | 317 | /****************************************************************************** 318 | function : Clear screen 319 | parameter: 320 | ******************************************************************************/ 321 | void EPD_1IN54_V2_Clear(void) 322 | { 323 | UWORD Width, Height; 324 | Width = (EPD_1IN54_V2_WIDTH % 8 == 0)? (EPD_1IN54_V2_WIDTH / 8 ): (EPD_1IN54_V2_WIDTH / 8 + 1); 325 | Height = EPD_1IN54_V2_HEIGHT; 326 | 327 | EPD_1IN54_V2_SendCommand(0x24); 328 | for (UWORD j = 0; j < Height; j++) { 329 | for (UWORD i = 0; i < Width; i++) { 330 | EPD_1IN54_V2_SendData(0XFF); 331 | } 332 | } 333 | EPD_1IN54_V2_SendCommand(0x26); 334 | for (UWORD j = 0; j < Height; j++) { 335 | for (UWORD i = 0; i < Width; i++) { 336 | EPD_1IN54_V2_SendData(0XFF); 337 | } 338 | } 339 | EPD_1IN54_V2_TurnOnDisplay(); 340 | } 341 | 342 | /****************************************************************************** 343 | function : Sends the image buffer in RAM to e-Paper and displays 344 | parameter: 345 | ******************************************************************************/ 346 | void EPD_1IN54_V2_Display(UBYTE *Image) 347 | { 348 | UWORD Width, Height; 349 | Width = (EPD_1IN54_V2_WIDTH % 8 == 0)? (EPD_1IN54_V2_WIDTH / 8 ): (EPD_1IN54_V2_WIDTH / 8 + 1); 350 | Height = EPD_1IN54_V2_HEIGHT; 351 | 352 | UDOUBLE Addr = 0; 353 | EPD_1IN54_V2_SendCommand(0x24); 354 | for (UWORD j = 0; j < Height; j++) { 355 | for (UWORD i = 0; i < Width; i++) { 356 | Addr = i + j * Width; 357 | EPD_1IN54_V2_SendData(Image[Addr]); 358 | } 359 | } 360 | EPD_1IN54_V2_TurnOnDisplay(); 361 | } 362 | 363 | /****************************************************************************** 364 | function : The image of the previous frame must be uploaded, otherwise the 365 | first few seconds will display an exception. 366 | parameter: 367 | ******************************************************************************/ 368 | void EPD_1IN54_V2_DisplayPartBaseImage(UBYTE *Image) 369 | { 370 | UWORD Width, Height; 371 | Width = (EPD_1IN54_V2_WIDTH % 8 == 0)? (EPD_1IN54_V2_WIDTH / 8 ): (EPD_1IN54_V2_WIDTH / 8 + 1); 372 | Height = EPD_1IN54_V2_HEIGHT; 373 | 374 | UDOUBLE Addr = 0; 375 | EPD_1IN54_V2_SendCommand(0x24); 376 | for (UWORD j = 0; j < Height; j++) { 377 | for (UWORD i = 0; i < Width; i++) { 378 | Addr = i + j * Width; 379 | EPD_1IN54_V2_SendData(Image[Addr]); 380 | } 381 | } 382 | EPD_1IN54_V2_SendCommand(0x26); 383 | for (UWORD j = 0; j < Height; j++) { 384 | for (UWORD i = 0; i < Width; i++) { 385 | Addr = i + j * Width; 386 | EPD_1IN54_V2_SendData(Image[Addr]); 387 | } 388 | } 389 | EPD_1IN54_V2_TurnOnDisplay(); 390 | } 391 | 392 | void EPD_1IN54_V2_writePrevImage(UBYTE *Image) /* by DJK */ 393 | { 394 | UWORD Width, Height; 395 | Width = (EPD_1IN54_V2_WIDTH % 8 == 0)? (EPD_1IN54_V2_WIDTH / 8 ): (EPD_1IN54_V2_WIDTH / 8 + 1); 396 | Height = EPD_1IN54_V2_HEIGHT; 397 | 398 | UDOUBLE Addr = 0; 399 | EPD_1IN54_V2_SendCommand(0x26); 400 | for (UWORD j = 0; j < Height; j++) { 401 | for (UWORD i = 0; i < Width; i++) { 402 | Addr = i + j * Width; 403 | EPD_1IN54_V2_SendData(~Image[Addr]); 404 | } 405 | } 406 | } 407 | 408 | /****************************************************************************** 409 | function : Sends the image buffer in RAM to e-Paper and displays 410 | parameter: 411 | ******************************************************************************/ 412 | void EPD_1IN54_V2_DisplayPart(UBYTE *Image) 413 | { 414 | UWORD Width, Height; 415 | Width = (EPD_1IN54_V2_WIDTH % 8 == 0)? (EPD_1IN54_V2_WIDTH / 8 ): (EPD_1IN54_V2_WIDTH / 8 + 1); 416 | Height = EPD_1IN54_V2_HEIGHT; 417 | 418 | UDOUBLE Addr = 0; 419 | EPD_1IN54_V2_SendCommand(0x24); 420 | for (UWORD j = 0; j < Height; j++) { 421 | for (UWORD i = 0; i < Width; i++) { 422 | Addr = i + j * Width; 423 | EPD_1IN54_V2_SendData(Image[Addr]); 424 | } 425 | } 426 | EPD_1IN54_V2_TurnOnDisplayPart(); 427 | } 428 | 429 | /****************************************************************************** 430 | function : Enter sleep mode 431 | parameter: 432 | ******************************************************************************/ 433 | void EPD_1IN54_V2_Sleep(void) 434 | { 435 | EPD_1IN54_V2_SendCommand(0x10); //enter deep sleep 436 | EPD_1IN54_V2_SendData(0x01); 437 | DEV_Delay_ms(100); 438 | 439 | DEV_Digital_Write(EPD_RST_PIN, LOW); 440 | } 441 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/utility/EPD_1in54_V2.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * | File : EPD_1in54_V2.h 3 | * | Author : Waveshare team 4 | * | Function : 1.54inch e-paper V2 5 | * | Info : 6 | *---------------- 7 | * | This version: V1.0 8 | * | Date : 2019-06-11 9 | * | Info : 10 | # 11 | # Permission is hereby granted, free of charge, to any person obtaining a copy 12 | # of this software and associated documnetation files (the "Software"), to deal 13 | # in the Software without restriction, including without limitation the rights 14 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 15 | # copies of the Software, and to permit persons to whom the Software is 16 | # furished to do so, subject to the following conditions: 17 | # 18 | # The above copyright notice and this permission notice shall be included in 19 | # all copies or substantial portions of the Software. 20 | # 21 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 24 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 26 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 27 | # THE SOFTWARE. 28 | # 29 | ******************************************************************************/ 30 | #ifndef __EPD_1IN54_V2_H_ 31 | #define __EPD_1IN54_V2_H_ 32 | 33 | #include "DEV_Config.h" 34 | 35 | // Display resolution 36 | #define EPD_1IN54_V2_WIDTH 200 37 | #define EPD_1IN54_V2_HEIGHT 200 38 | 39 | void EPD_1IN54_V2_Init(void); 40 | void EPD_1IN54_V2_Init_Partial(void); 41 | void EPD_1IN54_V2_Init_Partial_After_Powerdown(void); 42 | void EPD_1IN54_V2_Clear(void); 43 | void EPD_1IN54_V2_Display(UBYTE *Image); 44 | void EPD_1IN54_V2_DisplayPartBaseImage(UBYTE *Image); 45 | void EPD_1IN54_V2_writePrevImage(UBYTE *Image); 46 | void EPD_1IN54_V2_DisplayPart(UBYTE *Image); 47 | void EPD_1IN54_V2_Sleep(void); 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /esp32-waveshare-epd/src/utility/EPD_4in2.cpp: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * | File : EPD_4in2.c 3 | * | Author : Waveshare team 4 | * | Function : 4.2inch e-paper 5 | * | Info : 6 | *---------------- 7 | * | This version: V3.1 8 | * | Date : 2019-11-14 9 | * | Info : 10 | * ----------------------------------------------------------------------------- 11 | * V3.1(2019-11-14): 12 | * 1.Add 4 grayscale drive and display program 13 | * Add EPD_4IN2_4Gray_lut_vcom[] 14 | * Add EPD_4IN2_4Gray_lut_ww[] 15 | * Add EPD_4IN2_4Gray_lut_bw[] 16 | * Add EPD_4IN2_4Gray_lut_wb 17 | * Add EPD_4IN2_4Gray_lut_bb 18 | * Add EPD_4IN2_Partial_SetLut() 19 | * Add EPD_4IN2_4Gray_lut() 20 | * Add EPD_4IN2_Init_4Gray() 21 | * Add EPD_4IN2_4GrayDisplay(....) 22 | * 2.Add partial refresh display 23 | * Add EPD_4IN2_Partial_lut_vcom1[] 24 | * Add EPD_4IN2_Partial_lut_ww1[] 25 | * Add EPD_4IN2_Partial_lut_bw1[] 26 | * Add EPD_4IN2_Partial_lut_wb1[] 27 | * Add EPD_4IN2_Partial_lut_bb1[] 28 | * Add EPD_4IN2_Partial_SetLut() 29 | * Add EPD_4IN2_PartialDisplay(...) 30 | * Poor display, no display function by default 31 | * 32 | * V3.0(2019-06-13): 33 | * 1.Change: 34 | * lut_vcomDC[] => EPD_4IN2_lut_vcomDC[] 35 | * lut_ww[] => EPD_4IN2_lut_ww[] 36 | * lut_bw[] => EPD_4IN2_lut_bw[] 37 | * lut_wb[] => EPD_4IN2_lut_wb[] 38 | * lut_bb[] => EPD_4IN2_lut_bb[] 39 | * EPD_Reset() => EPD_4IN2_Reset() 40 | * EPD_SendCommand() => EPD_4IN2_SendCommand() 41 | * EPD_SendData() => EPD_4IN2_SendData() 42 | * EPD_WaitUntilIdle() => EPD_4IN2_ReadBusy() 43 | * EPD_SetFullReg() => EPD_4IN2_SetFullReg() 44 | * EPD_SetPartReg() => EPD_4IN2_SetPartReg() 45 | * EPD_TurnOnDisplay() => EPD_4IN2_TurnOnDisplay() 46 | * EPD_Init() => EPD_4IN2_Init() 47 | * EPD_Clear() => EPD_4IN2_Clear() 48 | * EPD_Display() => EPD_4IN2_Display() 49 | * EPD_Sleep() => EPD_4IN2_Sleep() 50 | * 2.remove commands define: 51 | * #define PANEL_SETTING 0x00 52 | * #define POWER_SETTING 0x01 53 | * #define POWER_OFF 0x02 54 | * #define POWER_OFF_SEQUENCE_SETTING 0x03 55 | * #define POWER_ON 0x04 56 | * #define POWER_ON_MEASURE 0x05 57 | * #define BOOSTER_SOFT_START 0x06 58 | * #define DEEP_SLEEP 0x07 59 | * #define DATA_START_TRANSMISSION_1 0x10 60 | * #define DATA_STOP 0x11 61 | * #define DISPLAY_REFRESH 0x12 62 | * #define DATA_START_TRANSMISSION_2 0x13 63 | * #define VCOM_LUT 0x20 64 | * #define W2W_LUT 0x21 65 | * #define B2W_LUT 0x22 66 | * #define W2B_LUT 0x23 67 | * #define B2B_LUT 0x24 68 | * #define PLL_CONTROL 0x30 69 | * #define TEMPERATURE_SENSOR_CALIBRATION 0x40 70 | * #define TEMPERATURE_SENSOR_SELECTION 0x41 71 | * #define TEMPERATURE_SENSOR_WRITE 0x42 72 | * #define TEMPERATURE_SENSOR_READ 0x43 73 | * #define VCOM_AND_DATA_INTERVAL_SETTING 0x50 74 | * #define LOW_POWER_DETECTION 0x51 75 | * #define TCON_SETTING 0x60 76 | * #define RESOLUTION_SETTING 0x61 77 | * #define GET_STATUS 0x71 78 | * #define AUTO_MEASURE_VCOM 0x80 79 | * #define READ_VCOM_VALUE 0x81 80 | * #define VCM_DC_SETTING 0x82 81 | * #define PARTIAL_WINDOW 0x90 82 | * #define PARTIAL_IN 0x91 83 | * #define PARTIAL_OUT 0x92 84 | * #define PROGRAM_MODE 0xA0 85 | * #define ACTIVE_PROGRAM 0xA1 86 | * #define READ_OTP_DATA 0xA2 87 | * #define POWER_SAVING 0xE3 88 | * V2.0(2018-10-30): 89 | * 1.Remove:ImageBuff[EPD_HEIGHT * EPD_WIDTH / 8] 90 | * 2.Change:EPD_Display(UBYTE *Image) 91 | * Need to pass parameters: pointer to cached data 92 | # 93 | # Permission is hereby granted, free of charge, to any person obtaining a copy 94 | # of this software and associated documnetation files (the "Software"), to deal 95 | # in the Software without restriction, including without limitation the rights 96 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 97 | # copies of the Software, and to permit persons to whom the Software is 98 | # furished to do so, subject to the following conditions: 99 | # 100 | # The above copyright notice and this permission notice shall be included in 101 | # all copies or substantial portions of the Software. 102 | # 103 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 104 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 105 | # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 106 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 107 | # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 108 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 109 | # THE SOFTWARE. 110 | # 111 | ******************************************************************************/ 112 | #include "EPD_4in2.h" 113 | #include "Debug.h" 114 | 115 | static const unsigned char EPD_4IN2_lut_vcom0[] = { 116 | 0x00, 0x08, 0x08, 0x00, 0x00, 0x02, 117 | 0x00, 0x0F, 0x0F, 0x00, 0x00, 0x01, 118 | 0x00, 0x08, 0x08, 0x00, 0x00, 0x02, 119 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 120 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 121 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 122 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 123 | 0x00, 0x00, 124 | }; 125 | static const unsigned char EPD_4IN2_lut_ww[] = { 126 | 0x50, 0x08, 0x08, 0x00, 0x00, 0x02, 127 | 0x90, 0x0F, 0x0F, 0x00, 0x00, 0x01, 128 | 0xA0, 0x08, 0x08, 0x00, 0x00, 0x02, 129 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 130 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 131 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 132 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 133 | }; 134 | static const unsigned char EPD_4IN2_lut_bw[] = { 135 | 0x50, 0x08, 0x08, 0x00, 0x00, 0x02, 136 | 0x90, 0x0F, 0x0F, 0x00, 0x00, 0x01, 137 | 0xA0, 0x08, 0x08, 0x00, 0x00, 0x02, 138 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 139 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 140 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 141 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 142 | }; 143 | static const unsigned char EPD_4IN2_lut_wb[] = { 144 | 0xA0, 0x08, 0x08, 0x00, 0x00, 0x02, 145 | 0x90, 0x0F, 0x0F, 0x00, 0x00, 0x01, 146 | 0x50, 0x08, 0x08, 0x00, 0x00, 0x02, 147 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 148 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 149 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 150 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 151 | }; 152 | static const unsigned char EPD_4IN2_lut_bb[] = { 153 | 0x20, 0x08, 0x08, 0x00, 0x00, 0x02, 154 | 0x90, 0x0F, 0x0F, 0x00, 0x00, 0x01, 155 | 0x10, 0x08, 0x08, 0x00, 0x00, 0x02, 156 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 157 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 158 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 159 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 160 | }; 161 | 162 | /******************************partial screen update LUT*********************************/ 163 | const unsigned char EPD_4IN2_Partial_lut_vcom1[] ={ 164 | 0x00, 0x01, 0x20, 0x01, 0x00, 0x01, 165 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 166 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 167 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 168 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 169 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 170 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 171 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 172 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 173 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 174 | }; 175 | 176 | const unsigned char EPD_4IN2_Partial_lut_ww1[] ={ 177 | 0x00, 0x01, 0x20, 0x01, 0x00, 0x01, 178 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 179 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 180 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 181 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 182 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 183 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 184 | }; 185 | 186 | const unsigned char EPD_4IN2_Partial_lut_bw1[] ={ 187 | 0x20, 0x01, 0x20, 0x01, 0x00, 0x01, 188 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 189 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 190 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 191 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 192 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 193 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 194 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 195 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 196 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 197 | }; 198 | 199 | const unsigned char EPD_4IN2_Partial_lut_wb1[] ={ 200 | 0x10, 0x01, 0x20, 0x01, 0x00, 0x01, 201 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 202 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 203 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 204 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 205 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 206 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 207 | }; 208 | 209 | const unsigned char EPD_4IN2_Partial_lut_bb1[] ={ 210 | 0x00, 0x01,0x20, 0x01, 0x00, 0x01, 211 | 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 212 | 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 213 | 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 214 | 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 215 | 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 216 | 0x00, 0x00,0x00, 0x00, 0x00, 0x00, 217 | }; 218 | 219 | 220 | /******************************gray*********************************/ 221 | //0~3 gray 222 | const unsigned char EPD_4IN2_4Gray_lut_vcom[] = 223 | { 224 | 0x00 ,0x0A ,0x00 ,0x00 ,0x00 ,0x01, 225 | 0x60 ,0x14 ,0x14 ,0x00 ,0x00 ,0x01, 226 | 0x00 ,0x14 ,0x00 ,0x00 ,0x00 ,0x01, 227 | 0x00 ,0x13 ,0x0A ,0x01 ,0x00 ,0x01, 228 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 229 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 230 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 231 | 232 | }; 233 | //R21 234 | const unsigned char EPD_4IN2_4Gray_lut_ww[] ={ 235 | 0x40 ,0x0A ,0x00 ,0x00 ,0x00 ,0x01, 236 | 0x90 ,0x14 ,0x14 ,0x00 ,0x00 ,0x01, 237 | 0x10 ,0x14 ,0x0A ,0x00 ,0x00 ,0x01, 238 | 0xA0 ,0x13 ,0x01 ,0x00 ,0x00 ,0x01, 239 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 240 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 241 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 242 | }; 243 | //R22H r 244 | const unsigned char EPD_4IN2_4Gray_lut_bw[] ={ 245 | 0x40 ,0x0A ,0x00 ,0x00 ,0x00 ,0x01, 246 | 0x90 ,0x14 ,0x14 ,0x00 ,0x00 ,0x01, 247 | 0x00 ,0x14 ,0x0A ,0x00 ,0x00 ,0x01, 248 | 0x99 ,0x0C ,0x01 ,0x03 ,0x04 ,0x01, 249 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 250 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 251 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 252 | }; 253 | //R23H w 254 | const unsigned char EPD_4IN2_4Gray_lut_wb[] ={ 255 | 0x40 ,0x0A ,0x00 ,0x00 ,0x00 ,0x01, 256 | 0x90 ,0x14 ,0x14 ,0x00 ,0x00 ,0x01, 257 | 0x00 ,0x14 ,0x0A ,0x00 ,0x00 ,0x01, 258 | 0x99 ,0x0B ,0x04 ,0x04 ,0x01 ,0x01, 259 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 260 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 261 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 262 | }; 263 | //R24H b 264 | const unsigned char EPD_4IN2_4Gray_lut_bb[] ={ 265 | 0x80 ,0x0A ,0x00 ,0x00 ,0x00 ,0x01, 266 | 0x90 ,0x14 ,0x14 ,0x00 ,0x00 ,0x01, 267 | 0x20 ,0x14 ,0x0A ,0x00 ,0x00 ,0x01, 268 | 0x50 ,0x13 ,0x01 ,0x00 ,0x00 ,0x01, 269 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 270 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 271 | 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00, 272 | }; 273 | 274 | /****************************************************************************** 275 | function : Software reset 276 | parameter: 277 | ******************************************************************************/ 278 | static void EPD_4IN2_Reset(void) 279 | { 280 | DEV_Digital_Write(EPD_RST_PIN, 0); 281 | DEV_Delay_ms(10); 282 | DEV_Digital_Write(EPD_RST_PIN, 1); 283 | DEV_Delay_ms(10); 284 | 285 | DEV_Digital_Write(EPD_RST_PIN, 0); 286 | DEV_Delay_ms(10); 287 | DEV_Digital_Write(EPD_RST_PIN, 1); 288 | DEV_Delay_ms(10); 289 | 290 | DEV_Digital_Write(EPD_RST_PIN, 0); 291 | DEV_Delay_ms(10); 292 | DEV_Digital_Write(EPD_RST_PIN, 1); 293 | DEV_Delay_ms(10); 294 | } 295 | 296 | /****************************************************************************** 297 | function : send command 298 | parameter: 299 | Reg : Command register 300 | ******************************************************************************/ 301 | static void EPD_4IN2_SendCommand(UBYTE Reg) 302 | { 303 | DEV_Digital_Write(EPD_DC_PIN, 0); 304 | DEV_Digital_Write(EPD_CS_PIN, 0); 305 | DEV_SPI_WriteByte(Reg); 306 | DEV_Digital_Write(EPD_CS_PIN, 1); 307 | } 308 | 309 | /****************************************************************************** 310 | function : send data 311 | parameter: 312 | Data : Write data 313 | ******************************************************************************/ 314 | static void EPD_4IN2_SendData(UBYTE Data) 315 | { 316 | DEV_Digital_Write(EPD_DC_PIN, 1); 317 | DEV_Digital_Write(EPD_CS_PIN, 0); 318 | DEV_SPI_WriteByte(Data); 319 | DEV_Digital_Write(EPD_CS_PIN, 1); 320 | } 321 | 322 | /****************************************************************************** 323 | function : Wait until the busy_pin goes LOW 324 | parameter: 325 | ******************************************************************************/ 326 | void EPD_4IN2_ReadBusy(void) 327 | { 328 | Debug("e-Paper busy\r\n"); 329 | EPD_4IN2_SendCommand(0x71); 330 | while(DEV_Digital_Read(EPD_BUSY_PIN) == 0) { //LOW: idle, HIGH: busy 331 | EPD_4IN2_SendCommand(0x71); 332 | DEV_Delay_ms(100); 333 | } 334 | Debug("e-Paper busy release\r\n"); 335 | } 336 | 337 | /****************************************************************************** 338 | function : Turn On Display 339 | parameter: 340 | ******************************************************************************/ 341 | static void EPD_4IN2_TurnOnDisplay(void) 342 | { 343 | EPD_4IN2_SendCommand(0x12); 344 | DEV_Delay_ms(100); 345 | EPD_4IN2_ReadBusy(); 346 | } 347 | 348 | /****************************************************************************** 349 | function : set the look-up tables 350 | parameter: 351 | ******************************************************************************/ 352 | static void EPD_4IN2_Partial_SetLut(void) 353 | { 354 | unsigned int count; 355 | EPD_4IN2_SendCommand(0x20); 356 | for(count=0;count<44;count++) 357 | {EPD_4IN2_SendData(EPD_4IN2_Partial_lut_vcom1[count]);} 358 | 359 | EPD_4IN2_SendCommand(0x21); 360 | for(count=0;count<42;count++) 361 | {EPD_4IN2_SendData(EPD_4IN2_Partial_lut_ww1[count]);} 362 | 363 | EPD_4IN2_SendCommand(0x22); 364 | for(count=0;count<42;count++) 365 | {EPD_4IN2_SendData(EPD_4IN2_Partial_lut_bw1[count]);} 366 | 367 | EPD_4IN2_SendCommand(0x23); 368 | for(count=0;count<42;count++) 369 | {EPD_4IN2_SendData(EPD_4IN2_Partial_lut_wb1[count]);} 370 | 371 | EPD_4IN2_SendCommand(0x24); 372 | for(count=0;count<42;count++) 373 | {EPD_4IN2_SendData(EPD_4IN2_Partial_lut_bb1[count]);} 374 | } 375 | 376 | static void EPD_4IN2_SetLut(void) 377 | { 378 | unsigned int count; 379 | EPD_4IN2_SendCommand(0x20); 380 | for(count=0;count<36;count++) 381 | {EPD_4IN2_SendData(EPD_4IN2_lut_vcom0[count]);} 382 | 383 | EPD_4IN2_SendCommand(0x21); 384 | for(count=0;count<36;count++) 385 | {EPD_4IN2_SendData(EPD_4IN2_lut_ww[count]);} 386 | 387 | EPD_4IN2_SendCommand(0x22); 388 | for(count=0;count<36;count++) 389 | {EPD_4IN2_SendData(EPD_4IN2_lut_bw[count]);} 390 | 391 | EPD_4IN2_SendCommand(0x23); 392 | for(count=0;count<36;count++) 393 | {EPD_4IN2_SendData(EPD_4IN2_lut_wb[count]);} 394 | 395 | EPD_4IN2_SendCommand(0x24); 396 | for(count=0;count<36;count++) 397 | {EPD_4IN2_SendData(EPD_4IN2_lut_bb[count]);} 398 | } 399 | 400 | //LUT download 401 | static void EPD_4IN2_4Gray_lut(void) 402 | { 403 | unsigned int count; 404 | { 405 | EPD_4IN2_SendCommand(0x20); //vcom 406 | for(count=0;count<42;count++) 407 | {EPD_4IN2_SendData(EPD_4IN2_4Gray_lut_vcom[count]);} 408 | 409 | EPD_4IN2_SendCommand(0x21); //red not use 410 | for(count=0;count<42;count++) 411 | {EPD_4IN2_SendData(EPD_4IN2_4Gray_lut_ww[count]);} 412 | 413 | EPD_4IN2_SendCommand(0x22); //bw r 414 | for(count=0;count<42;count++) 415 | {EPD_4IN2_SendData(EPD_4IN2_4Gray_lut_bw[count]);} 416 | 417 | EPD_4IN2_SendCommand(0x23); //wb w 418 | for(count=0;count<42;count++) 419 | {EPD_4IN2_SendData(EPD_4IN2_4Gray_lut_wb[count]);} 420 | 421 | EPD_4IN2_SendCommand(0x24); //bb b 422 | for(count=0;count<42;count++) 423 | {EPD_4IN2_SendData(EPD_4IN2_4Gray_lut_bb[count]);} 424 | 425 | EPD_4IN2_SendCommand(0x25); //vcom 426 | for(count=0;count<42;count++) 427 | {EPD_4IN2_SendData(EPD_4IN2_4Gray_lut_ww[count]);} 428 | } 429 | } 430 | /****************************************************************************** 431 | function : Initialize the e-Paper register 432 | parameter: 433 | ******************************************************************************/ 434 | 435 | void EPD_4IN2_Init_Partial(void) 436 | { 437 | EPD_4IN2_Reset(); 438 | 439 | EPD_4IN2_SendCommand(0x01); // POWER SETTING 440 | EPD_4IN2_SendData(0x03); 441 | EPD_4IN2_SendData(0x00); 442 | EPD_4IN2_SendData(0x2b); 443 | EPD_4IN2_SendData(0x2b); 444 | 445 | EPD_4IN2_SendCommand(0x06); // boost soft start 446 | EPD_4IN2_SendData(0x17); //A 447 | EPD_4IN2_SendData(0x17); //B 448 | EPD_4IN2_SendData(0x17); //C 449 | 450 | EPD_4IN2_SendCommand(0x04); // POWER_ON 451 | EPD_4IN2_ReadBusy(); 452 | 453 | EPD_4IN2_SendCommand(0x00); // panel setting 454 | EPD_4IN2_SendData(0xbf); // KW-BF KWR-AF BWROTP 0f BWOTP 1f 455 | 456 | EPD_4IN2_SendCommand(0x30); // PLL setting 457 | EPD_4IN2_SendData(0x3C); // 3A 100HZ 29 150Hz 39 200HZ 31 171HZ 458 | 459 | EPD_4IN2_SendCommand(0x61); // resolution setting 460 | EPD_4IN2_SendData(0x01); 461 | EPD_4IN2_SendData(0x90); //128 462 | EPD_4IN2_SendData(0x01); // 463 | EPD_4IN2_SendData(0x2c); 464 | 465 | EPD_4IN2_SendCommand(0x82); // vcom_DC setting 466 | EPD_4IN2_SendData(0x12); 467 | 468 | EPD_4IN2_SendCommand(0X50); // VCOM AND DATA INTERVAL SETTING 469 | EPD_4IN2_SendData(0x07); // 97white border 77black border VBDF 17|D7 VBDW 97 VBDB 57 VBDF F7 VBDW 77 VBDB 37 VBDR B7 470 | 471 | EPD_4IN2_Partial_SetLut(); 472 | } 473 | 474 | //UC8176C 475 | void EPD_4IN2_Init_Fast(void) 476 | { 477 | EPD_4IN2_Reset(); 478 | EPD_4IN2_SendCommand(0x01); //POWER SETTING 479 | EPD_4IN2_SendData (0x03); 480 | EPD_4IN2_SendData (0x00); 481 | EPD_4IN2_SendData (0x2b); 482 | EPD_4IN2_SendData (0x2b); 483 | 484 | EPD_4IN2_SendCommand(0x06); //boost soft start 485 | EPD_4IN2_SendData (0x17); //A 486 | EPD_4IN2_SendData (0x17); //B 487 | EPD_4IN2_SendData (0x17); //C 488 | 489 | EPD_4IN2_SendCommand(0x04); 490 | EPD_4IN2_ReadBusy(); 491 | 492 | EPD_4IN2_SendCommand(0x00); //panel setting 493 | EPD_4IN2_SendData(0xbf); //KW-bf KWR-2F BWROTP 0f BWOTP 1f 494 | 495 | 496 | EPD_4IN2_SendCommand(0x30); 497 | EPD_4IN2_SendData (0x3c); // 3A 100HZ 29 150Hz 39 200HZ 31 171HZ 498 | 499 | EPD_4IN2_SendCommand(0x61); //resolution setting 500 | EPD_4IN2_SendData (0x01); 501 | EPD_4IN2_SendData (0x90); //400 502 | EPD_4IN2_SendData (0x01); //300 503 | EPD_4IN2_SendData (0x2c); 504 | 505 | 506 | EPD_4IN2_SendCommand(0x82); //vcom_DC setting 507 | EPD_4IN2_SendData (0x12); 508 | 509 | EPD_4IN2_SendCommand(0X50); 510 | EPD_4IN2_SendData(0x97); 511 | 512 | EPD_4IN2_SetLut(); 513 | 514 | } 515 | 516 | void EPD_4IN2_Init_4Gray(void) 517 | { 518 | EPD_4IN2_Reset(); 519 | EPD_4IN2_SendCommand(0x01); //POWER SETTING 520 | EPD_4IN2_SendData (0x03); 521 | EPD_4IN2_SendData (0x00); //VGH=20V,VGL=-20V 522 | EPD_4IN2_SendData (0x2b); //VDH=15V 523 | EPD_4IN2_SendData (0x2b); //VDL=-15V 524 | EPD_4IN2_SendData (0x13); 525 | 526 | EPD_4IN2_SendCommand(0x06); //booster soft start 527 | EPD_4IN2_SendData (0x17); //A 528 | EPD_4IN2_SendData (0x17); //B 529 | EPD_4IN2_SendData (0x17); //C 530 | 531 | EPD_4IN2_SendCommand(0x04); 532 | EPD_4IN2_ReadBusy(); 533 | 534 | EPD_4IN2_SendCommand(0x00); //panel setting 535 | EPD_4IN2_SendData(0x3f); //KW-3f KWR-2F BWROTP 0f BWOTP 1f 536 | 537 | EPD_4IN2_SendCommand(0x30); //PLL setting 538 | EPD_4IN2_SendData (0x3c); //100hz 539 | 540 | EPD_4IN2_SendCommand(0x61); //resolution setting 541 | EPD_4IN2_SendData (0x01); //400 542 | EPD_4IN2_SendData (0x90); 543 | EPD_4IN2_SendData (0x01); //300 544 | EPD_4IN2_SendData (0x2c); 545 | 546 | EPD_4IN2_SendCommand(0x82); //vcom_DC setting 547 | EPD_4IN2_SendData (0x12); 548 | 549 | EPD_4IN2_SendCommand(0X50); //VCOM AND DATA INTERVAL SETTING 550 | EPD_4IN2_SendData(0x97); 551 | } 552 | /****************************************************************************** 553 | function : Clear screen 554 | parameter: 555 | ******************************************************************************/ 556 | void EPD_4IN2_Clear(void) 557 | { 558 | UWORD Width, Height; 559 | Width = (EPD_4IN2_WIDTH % 8 == 0)? (EPD_4IN2_WIDTH / 8 ): (EPD_4IN2_WIDTH / 8 + 1); 560 | Height = EPD_4IN2_HEIGHT; 561 | 562 | EPD_4IN2_SendCommand(0x10); 563 | for (UWORD j = 0; j < Height; j++) { 564 | for (UWORD i = 0; i < Width; i++) { 565 | EPD_4IN2_SendData(0xFF); 566 | } 567 | } 568 | 569 | EPD_4IN2_SendCommand(0x13); 570 | for (UWORD j = 0; j < Height; j++) { 571 | for (UWORD i = 0; i < Width; i++) { 572 | EPD_4IN2_SendData(0xFF); 573 | } 574 | } 575 | 576 | EPD_4IN2_SendCommand(0x12); //DISPLAY REFRESH 577 | DEV_Delay_ms(1); 578 | EPD_4IN2_TurnOnDisplay(); 579 | } 580 | 581 | /****************************************************************************** 582 | function : Sends the image buffer in RAM to e-Paper and displays 583 | parameter: 584 | ******************************************************************************/ 585 | void EPD_4IN2_Display(UBYTE *Image) 586 | { 587 | UWORD Width, Height; 588 | Width = (EPD_4IN2_WIDTH % 8 == 0)? (EPD_4IN2_WIDTH / 8 ): (EPD_4IN2_WIDTH / 8 + 1); 589 | Height = EPD_4IN2_HEIGHT; 590 | 591 | EPD_4IN2_SendCommand(0x10); 592 | for (UWORD j = 0; j < Height; j++) { 593 | for (UWORD i = 0; i < Width; i++) { 594 | EPD_4IN2_SendData(0x00); 595 | } 596 | } 597 | 598 | EPD_4IN2_SendCommand(0x13); 599 | for (UWORD j = 0; j < Height; j++) { 600 | for (UWORD i = 0; i < Width; i++) { 601 | EPD_4IN2_SendData(Image[i + j * Width]); 602 | } 603 | } 604 | 605 | EPD_4IN2_SendCommand(0x12); //DISPLAY REFRESH 606 | DEV_Delay_ms(10); 607 | EPD_4IN2_TurnOnDisplay(); 608 | } 609 | 610 | void EPD_4IN2_PartialDisplay(UWORD X_start,UWORD Y_start,UWORD X_end,UWORD Y_end, UBYTE *Image) 611 | { 612 | UWORD Width; 613 | //static UBYTE DATA[EPD_4IN2_WIDTH * EPD_4IN2_HEIGHT / 8] = {0x00}; 614 | 615 | Width = (EPD_4IN2_WIDTH % 8 == 0)? (EPD_4IN2_WIDTH / 8 ): (EPD_4IN2_WIDTH / 8 + 1); 616 | 617 | X_start = (X_start % 8 == 0)? (X_start): (X_start/8*8+8); 618 | X_end = (X_end % 8 == 0)? (X_end): (X_end/8*8+8); 619 | 620 | 621 | EPD_4IN2_SendCommand(0x91); //This command makes the display enter partial mode 622 | EPD_4IN2_SendCommand(0x90); //resolution setting 623 | EPD_4IN2_SendData ((X_start)/256); 624 | EPD_4IN2_SendData ((X_start)%256); //x-start 625 | 626 | EPD_4IN2_SendData ((X_end )/256); 627 | EPD_4IN2_SendData ((X_end )%256-1); //x-end 628 | 629 | EPD_4IN2_SendData (Y_start/256); 630 | EPD_4IN2_SendData (Y_start%256); //y-start 631 | 632 | EPD_4IN2_SendData (Y_end/256); 633 | EPD_4IN2_SendData (Y_end%256-1); //y-end 634 | EPD_4IN2_SendData (0x28); 635 | 636 | EPD_4IN2_SendCommand(0x10); //writes Old data to SRAM for programming 637 | for (UWORD j = 0; j < Y_end - Y_start; j++) { 638 | for (UWORD i = 0; i < (X_end - X_start)/8; i++) { 639 | EPD_4IN2_SendData(Image[(Y_start + j)*Width + X_start/8 + i]); 640 | //EPD_4IN2_SendData(DATA[(Y_start + j)*Width + X_start/8 + i]); 641 | } 642 | } 643 | EPD_4IN2_SendCommand(0x13); //writes New data to SRAM. 644 | for (UWORD j = 0; j < Y_end - Y_start; j++) { 645 | for (UWORD i = 0; i < (X_end - X_start)/8; i++) { 646 | EPD_4IN2_SendData(~Image[(Y_start + j)*Width + X_start/8 + i]); 647 | //DATA[(Y_start + j)*Width + X_start/8 + i] = ~Image[(Y_start + j)*Width + X_start/8 + i]; 648 | } 649 | } 650 | 651 | EPD_4IN2_SendCommand(0x12); //DISPLAY REFRESH 652 | DEV_Delay_ms(10); //The delay here is necessary, 200uS at least!!! 653 | EPD_4IN2_TurnOnDisplay(); 654 | } 655 | 656 | void EPD_4IN2_4GrayDisplay(const UBYTE *Image) 657 | { 658 | UDOUBLE i,j,k,m; 659 | UBYTE temp1,temp2,temp3; 660 | /****Color display description**** 661 | white gray1 gray2 black 662 | 0x10| 01 01 00 00 663 | 0x13| 01 00 01 00 664 | *********************************/ 665 | EPD_4IN2_SendCommand(0x10); 666 | // EPD_4IN2_HEIGHT 667 | // EPD_4IN2_WIDTH 668 | for(m = 0; m EPD_4IN2_lut_vcomDC[] 35 | * lut_ww[] => EPD_4IN2_lut_ww[] 36 | * lut_bw[] => EPD_4IN2_lut_bw[] 37 | * lut_wb[] => EPD_4IN2_lut_wb[] 38 | * lut_bb[] => EPD_4IN2_lut_bb[] 39 | * EPD_Reset() => EPD_4IN2_Reset() 40 | * EPD_SendCommand() => EPD_4IN2_SendCommand() 41 | * EPD_SendData() => EPD_4IN2_SendData() 42 | * EPD_WaitUntilIdle() => EPD_4IN2_ReadBusy() 43 | * EPD_SetFullReg() => EPD_4IN2_SetFullReg() 44 | * EPD_SetPartReg() => EPD_4IN2_SetPartReg() 45 | * EPD_TurnOnDisplay() => EPD_4IN2_TurnOnDisplay() 46 | * EPD_Init() => EPD_4IN2_Init() 47 | * EPD_Clear() => EPD_4IN2_Clear() 48 | * EPD_Display() => EPD_4IN2_Display() 49 | * EPD_Sleep() => EPD_4IN2_Sleep() 50 | * 2.remove commands define: 51 | * #define PANEL_SETTING 0x00 52 | * #define POWER_SETTING 0x01 53 | * #define POWER_OFF 0x02 54 | * #define POWER_OFF_SEQUENCE_SETTING 0x03 55 | * #define POWER_ON 0x04 56 | * #define POWER_ON_MEASURE 0x05 57 | * #define BOOSTER_SOFT_START 0x06 58 | * #define DEEP_SLEEP 0x07 59 | * #define DATA_START_TRANSMISSION_1 0x10 60 | * #define DATA_STOP 0x11 61 | * #define DISPLAY_REFRESH 0x12 62 | * #define DATA_START_TRANSMISSION_2 0x13 63 | * #define VCOM_LUT 0x20 64 | * #define W2W_LUT 0x21 65 | * #define B2W_LUT 0x22 66 | * #define W2B_LUT 0x23 67 | * #define B2B_LUT 0x24 68 | * #define PLL_CONTROL 0x30 69 | * #define TEMPERATURE_SENSOR_CALIBRATION 0x40 70 | * #define TEMPERATURE_SENSOR_SELECTION 0x41 71 | * #define TEMPERATURE_SENSOR_WRITE 0x42 72 | * #define TEMPERATURE_SENSOR_READ 0x43 73 | * #define VCOM_AND_DATA_INTERVAL_SETTING 0x50 74 | * #define LOW_POWER_DETECTION 0x51 75 | * #define TCON_SETTING 0x60 76 | * #define RESOLUTION_SETTING 0x61 77 | * #define GET_STATUS 0x71 78 | * #define AUTO_MEASURE_VCOM 0x80 79 | * #define READ_VCOM_VALUE 0x81 80 | * #define VCM_DC_SETTING 0x82 81 | * #define PARTIAL_WINDOW 0x90 82 | * #define PARTIAL_IN 0x91 83 | * #define PARTIAL_OUT 0x92 84 | * #define PROGRAM_MODE 0xA0 85 | * #define ACTIVE_PROGRAM 0xA1 86 | * #define READ_OTP_DATA 0xA2 87 | * #define POWER_SAVING 0xE3 88 | * V2.0(2018-10-30): 89 | * 1.Remove:ImageBuff[EPD_HEIGHT * EPD_WIDTH / 8] 90 | * 2.Change:EPD_Display(UBYTE *Image) 91 | * Need to pass parameters: pointer to cached data 92 | # 93 | # Permission is hereby granted, free of charge, to any person obtaining a copy 94 | # of this software and associated documnetation files (the "Software"), to deal 95 | # in the Software without restriction, including without limitation the rights 96 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 97 | # copies of the Software, and to permit persons to whom the Software is 98 | # furished to do so, subject to the following conditions: 99 | # 100 | # The above copyright notice and this permission notice shall be included in 101 | # all copies or substantial portions of the Software. 102 | # 103 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 104 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 105 | # FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 106 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 107 | # LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 108 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 109 | # THE SOFTWARE. 110 | # 111 | ******************************************************************************/ 112 | #ifndef _EPD_4IN2_H_ 113 | #define _EPD_4IN2_H_ 114 | 115 | #include "DEV_Config.h" 116 | 117 | // Display resolution 118 | #define EPD_4IN2_WIDTH 400 119 | #define EPD_4IN2_HEIGHT 300 120 | 121 | void EPD_4IN2_Init_Fast(void); 122 | void EPD_4IN2_Init_Partial(void); 123 | void EPD_4IN2_Clear(void); 124 | void EPD_4IN2_Display(UBYTE *Image); 125 | void EPD_4IN2_Sleep(void); 126 | void EPD_4IN2_PartialDisplay(UWORD X_start,UWORD Y_start,UWORD X_end,UWORD Y_end, UBYTE *Image); 127 | 128 | void EPD_4IN2_Init_4Gray(void); 129 | void EPD_4IN2_4GrayDisplay(const UBYTE *Image); 130 | 131 | 132 | #endif 133 | -------------------------------------------------------------------------------- /font/bahn.indd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/font/bahn.indd -------------------------------------------------------------------------------- /font/bahn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/font/bahn.png -------------------------------------------------------------------------------- /font/bahn2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/font/bahn2.png -------------------------------------------------------------------------------- /font/bahn3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/font/bahn3.png -------------------------------------------------------------------------------- /font/nothing.indd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/font/nothing.indd -------------------------------------------------------------------------------- /font/nothing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/font/nothing.png -------------------------------------------------------------------------------- /font/nothing2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/font/nothing2.png -------------------------------------------------------------------------------- /font/nothing3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/font/nothing3.png -------------------------------------------------------------------------------- /grafana_OpenCO2_Sensor.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [ 3 | { 4 | "name": "DS_PROMETHEUS", 5 | "label": "prometheus", 6 | "description": "", 7 | "type": "datasource", 8 | "pluginId": "prometheus", 9 | "pluginName": "Prometheus" 10 | } 11 | ], 12 | "__requires": [ 13 | { 14 | "type": "panel", 15 | "id": "gauge", 16 | "name": "Gauge", 17 | "version": "" 18 | }, 19 | { 20 | "type": "grafana", 21 | "id": "grafana", 22 | "name": "Grafana", 23 | "version": "8.2.4" 24 | }, 25 | { 26 | "type": "datasource", 27 | "id": "prometheus", 28 | "name": "Prometheus", 29 | "version": "1.0.0" 30 | }, 31 | { 32 | "type": "panel", 33 | "id": "stat", 34 | "name": "Stat", 35 | "version": "" 36 | }, 37 | { 38 | "type": "panel", 39 | "id": "timeseries", 40 | "name": "Time series", 41 | "version": "" 42 | } 43 | ], 44 | "annotations": { 45 | "list": [ 46 | { 47 | "builtIn": 1, 48 | "datasource": "-- Grafana --", 49 | "enable": true, 50 | "hide": true, 51 | "iconColor": "rgba(0, 211, 255, 1)", 52 | "name": "Annotations & Alerts", 53 | "target": { 54 | "limit": 100, 55 | "matchAny": false, 56 | "tags": [], 57 | "type": "dashboard" 58 | }, 59 | "type": "dashboard" 60 | } 61 | ] 62 | }, 63 | "editable": true, 64 | "fiscalYearStartMonth": 0, 65 | "gnetId": null, 66 | "graphTooltip": 0, 67 | "id": null, 68 | "links": [], 69 | "liveNow": false, 70 | "panels": [ 71 | { 72 | "datasource": "${DS_PROMETHEUS}", 73 | "fieldConfig": { 74 | "defaults": { 75 | "color": { 76 | "mode": "thresholds" 77 | }, 78 | "mappings": [], 79 | "thresholds": { 80 | "mode": "absolute", 81 | "steps": [ 82 | { 83 | "color": "green", 84 | "value": null 85 | }, 86 | { 87 | "color": "light-yellow", 88 | "value": 1000 89 | }, 90 | { 91 | "color": "#EF843C", 92 | "value": 1200 93 | }, 94 | { 95 | "color": "red", 96 | "value": 1500 97 | }, 98 | { 99 | "color": "#d80283", 100 | "value": 2000 101 | } 102 | ] 103 | }, 104 | "unit": "ppm" 105 | }, 106 | "overrides": [] 107 | }, 108 | "gridPos": { 109 | "h": 6, 110 | "w": 8, 111 | "x": 0, 112 | "y": 0 113 | }, 114 | "id": 5, 115 | "options": { 116 | "orientation": "auto", 117 | "reduceOptions": { 118 | "calcs": [ 119 | "lastNotNull" 120 | ], 121 | "fields": "", 122 | "values": false 123 | }, 124 | "showThresholdLabels": false, 125 | "showThresholdMarkers": true, 126 | "text": {} 127 | }, 128 | "pluginVersion": "8.2.4", 129 | "targets": [ 130 | { 131 | "exemplar": true, 132 | "expr": "rco2{job=\"airgradient-livingroom\"}", 133 | "interval": "", 134 | "legendFormat": "", 135 | "queryType": "randomWalk", 136 | "refId": "A" 137 | } 138 | ], 139 | "title": "CO2 (Latest)", 140 | "type": "gauge" 141 | }, 142 | { 143 | "datasource": "${DS_PROMETHEUS}", 144 | "description": "", 145 | "fieldConfig": { 146 | "defaults": { 147 | "color": { 148 | "mode": "thresholds" 149 | }, 150 | "mappings": [], 151 | "thresholds": { 152 | "mode": "absolute", 153 | "steps": [ 154 | { 155 | "color": "green", 156 | "value": null 157 | }, 158 | { 159 | "color": "#6ED0E0", 160 | "value": 0 161 | }, 162 | { 163 | "color": "green", 164 | "value": 28 165 | }, 166 | { 167 | "color": "#EAB839", 168 | "value": 40 169 | }, 170 | { 171 | "color": "red", 172 | "value": 50 173 | } 174 | ] 175 | }, 176 | "unit": "celsius" 177 | }, 178 | "overrides": [] 179 | }, 180 | "gridPos": { 181 | "h": 6, 182 | "w": 8, 183 | "x": 8, 184 | "y": 0 185 | }, 186 | "id": 7, 187 | "options": { 188 | "colorMode": "value", 189 | "graphMode": "area", 190 | "justifyMode": "auto", 191 | "orientation": "auto", 192 | "reduceOptions": { 193 | "calcs": [ 194 | "lastNotNull" 195 | ], 196 | "fields": "", 197 | "values": false 198 | }, 199 | "text": {}, 200 | "textMode": "auto" 201 | }, 202 | "pluginVersion": "8.2.4", 203 | "targets": [ 204 | { 205 | "exemplar": true, 206 | "expr": "atmp{job=\"airgradient-livingroom\"}", 207 | "hide": false, 208 | "interval": "", 209 | "legendFormat": "", 210 | "queryType": "randomWalk", 211 | "refId": "A" 212 | } 213 | ], 214 | "title": "Temperature", 215 | "type": "stat" 216 | }, 217 | { 218 | "datasource": "${DS_PROMETHEUS}", 219 | "description": "", 220 | "fieldConfig": { 221 | "defaults": { 222 | "color": { 223 | "mode": "thresholds" 224 | }, 225 | "mappings": [], 226 | "max": 100, 227 | "min": 0, 228 | "thresholds": { 229 | "mode": "absolute", 230 | "steps": [ 231 | { 232 | "color": "red", 233 | "value": null 234 | }, 235 | { 236 | "color": "dark-orange", 237 | "value": 25 238 | }, 239 | { 240 | "color": "dark-green", 241 | "value": 30 242 | }, 243 | { 244 | "color": "dark-orange", 245 | "value": 60 246 | }, 247 | { 248 | "color": "red", 249 | "value": 70 250 | } 251 | ] 252 | }, 253 | "unit": "percent" 254 | }, 255 | "overrides": [] 256 | }, 257 | "gridPos": { 258 | "h": 6, 259 | "w": 8, 260 | "x": 16, 261 | "y": 0 262 | }, 263 | "id": 8, 264 | "options": { 265 | "colorMode": "value", 266 | "graphMode": "area", 267 | "justifyMode": "auto", 268 | "orientation": "auto", 269 | "reduceOptions": { 270 | "calcs": [ 271 | "lastNotNull" 272 | ], 273 | "fields": "", 274 | "values": false 275 | }, 276 | "text": {}, 277 | "textMode": "auto" 278 | }, 279 | "pluginVersion": "8.2.4", 280 | "targets": [ 281 | { 282 | "exemplar": true, 283 | "expr": "rhum{job=\"airgradient-livingroom\"}", 284 | "interval": "", 285 | "legendFormat": "", 286 | "queryType": "randomWalk", 287 | "refId": "A" 288 | } 289 | ], 290 | "title": "Relative Humidity", 291 | "type": "stat" 292 | }, 293 | { 294 | "datasource": "${DS_PROMETHEUS}", 295 | "description": "", 296 | "fieldConfig": { 297 | "defaults": { 298 | "color": { 299 | "mode": "thresholds", 300 | "seriesBy": "last" 301 | }, 302 | "custom": { 303 | "axisLabel": "", 304 | "axisPlacement": "auto", 305 | "barAlignment": 0, 306 | "drawStyle": "line", 307 | "fillOpacity": 34, 308 | "gradientMode": "scheme", 309 | "hideFrom": { 310 | "legend": false, 311 | "tooltip": false, 312 | "viz": false 313 | }, 314 | "lineInterpolation": "smooth", 315 | "lineStyle": { 316 | "fill": "solid" 317 | }, 318 | "lineWidth": 2, 319 | "pointSize": 5, 320 | "scaleDistribution": { 321 | "type": "linear" 322 | }, 323 | "showPoints": "never", 324 | "spanNulls": true, 325 | "stacking": { 326 | "group": "A", 327 | "mode": "none" 328 | }, 329 | "thresholdsStyle": { 330 | "mode": "off" 331 | } 332 | }, 333 | "mappings": [], 334 | "thresholds": { 335 | "mode": "absolute", 336 | "steps": [ 337 | { 338 | "color": "green", 339 | "value": null 340 | }, 341 | { 342 | "color": "light-yellow", 343 | "value": 1000 344 | }, 345 | { 346 | "color": "semi-dark-orange", 347 | "value": 1200 348 | }, 349 | { 350 | "color": "dark-red", 351 | "value": 1500 352 | }, 353 | { 354 | "color": "#d80283", 355 | "value": 2000 356 | } 357 | ] 358 | }, 359 | "unit": "ppm" 360 | }, 361 | "overrides": [] 362 | }, 363 | "gridPos": { 364 | "h": 10, 365 | "w": 24, 366 | "x": 0, 367 | "y": 6 368 | }, 369 | "id": 2, 370 | "maxDataPoints": null, 371 | "options": { 372 | "legend": { 373 | "calcs": [], 374 | "displayMode": "hidden", 375 | "placement": "bottom" 376 | }, 377 | "tooltip": { 378 | "mode": "single" 379 | } 380 | }, 381 | "pluginVersion": "8.2.4", 382 | "targets": [ 383 | { 384 | "exemplar": true, 385 | "expr": "rco2{job=\"airgradient-livingroom\"}", 386 | "interval": "", 387 | "legendFormat": "CO2", 388 | "queryType": "randomWalk", 389 | "refId": "A" 390 | } 391 | ], 392 | "timeFrom": null, 393 | "timeShift": null, 394 | "title": "CO2 Over Time", 395 | "transparent": true, 396 | "type": "timeseries" 397 | }, 398 | { 399 | "datasource": "${DS_PROMETHEUS}", 400 | "fieldConfig": { 401 | "defaults": { 402 | "color": { 403 | "mode": "thresholds" 404 | }, 405 | "custom": { 406 | "axisLabel": "", 407 | "axisPlacement": "auto", 408 | "barAlignment": 0, 409 | "drawStyle": "line", 410 | "fillOpacity": 61, 411 | "gradientMode": "scheme", 412 | "hideFrom": { 413 | "legend": false, 414 | "tooltip": false, 415 | "viz": false 416 | }, 417 | "lineInterpolation": "smooth", 418 | "lineWidth": 2, 419 | "pointSize": 5, 420 | "scaleDistribution": { 421 | "type": "linear" 422 | }, 423 | "showPoints": "auto", 424 | "spanNulls": true, 425 | "stacking": { 426 | "group": "A", 427 | "mode": "none" 428 | }, 429 | "thresholdsStyle": { 430 | "mode": "off" 431 | } 432 | }, 433 | "mappings": [], 434 | "thresholds": { 435 | "mode": "absolute", 436 | "steps": [ 437 | { 438 | "color": "dark-blue", 439 | "value": null 440 | }, 441 | { 442 | "color": "light-blue", 443 | "value": 15 444 | }, 445 | { 446 | "color": "green", 447 | "value": 18 448 | }, 449 | { 450 | "color": "orange", 451 | "value": 23 452 | }, 453 | { 454 | "color": "dark-orange", 455 | "value": 25 456 | }, 457 | { 458 | "color": "red", 459 | "value": 27 460 | } 461 | ] 462 | }, 463 | "unit": "celsius" 464 | }, 465 | "overrides": [ 466 | { 467 | "matcher": { 468 | "id": "byName", 469 | "options": "Humidity" 470 | }, 471 | "properties": [ 472 | { 473 | "id": "unit", 474 | "value": "percent" 475 | }, 476 | { 477 | "id": "thresholds", 478 | "value": { 479 | "mode": "absolute", 480 | "steps": [ 481 | { 482 | "color": "dark-blue", 483 | "value": null 484 | } 485 | ] 486 | } 487 | }, 488 | { 489 | "id": "custom.fillOpacity", 490 | "value": 8 491 | } 492 | ] 493 | } 494 | ] 495 | }, 496 | "gridPos": { 497 | "h": 10, 498 | "w": 24, 499 | "x": 0, 500 | "y": 16 501 | }, 502 | "id": 13, 503 | "options": { 504 | "legend": { 505 | "calcs": [], 506 | "displayMode": "list", 507 | "placement": "bottom" 508 | }, 509 | "tooltip": { 510 | "mode": "single" 511 | } 512 | }, 513 | "targets": [ 514 | { 515 | "exemplar": true, 516 | "expr": "atmp{job=\"airgradient-livingroom\"}", 517 | "interval": "", 518 | "legendFormat": "Temperature", 519 | "refId": "A" 520 | }, 521 | { 522 | "exemplar": true, 523 | "expr": "rhum{job=\"airgradient-livingroom\"}", 524 | "hide": false, 525 | "interval": "", 526 | "legendFormat": "Humidity", 527 | "refId": "B" 528 | } 529 | ], 530 | "title": "Temperature/Humidity", 531 | "type": "timeseries" 532 | } 533 | ], 534 | "refresh": "30s", 535 | "schemaVersion": 32, 536 | "style": "dark", 537 | "tags": [], 538 | "templating": { 539 | "list": [] 540 | }, 541 | "time": { 542 | "from": "now-12h", 543 | "to": "now" 544 | }, 545 | "timepicker": {}, 546 | "timezone": "", 547 | "title": "Open CO2 Sensor", 548 | "uid": "openco2", 549 | "version": 8 550 | } -------------------------------------------------------------------------------- /pictures.h: -------------------------------------------------------------------------------- 1 | #ifndef _IMAGEDATA_H_ 2 | #define _IMAGEDATA_H_ 3 | 4 | extern const unsigned char gImage_init[]; 5 | extern const unsigned char gImage_welcome[]; 6 | extern const unsigned char gImage_rainbow[]; 7 | extern const unsigned char gImage_santa[]; 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /pictures/Header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/Header.png -------------------------------------------------------------------------------- /pictures/OTA.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/OTA.jpg -------------------------------------------------------------------------------- /pictures/animation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/animation.gif -------------------------------------------------------------------------------- /pictures/components.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/components.png -------------------------------------------------------------------------------- /pictures/drawing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/drawing.png -------------------------------------------------------------------------------- /pictures/flowchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/flowchart.png -------------------------------------------------------------------------------- /pictures/grafana.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/grafana.png -------------------------------------------------------------------------------- /pictures/header2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/header2.png -------------------------------------------------------------------------------- /pictures/pcb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/pcb.png -------------------------------------------------------------------------------- /pictures/schematic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/schematic.png -------------------------------------------------------------------------------- /pictures/setup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/setup.jpg -------------------------------------------------------------------------------- /pictures/website.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidkreidler/OpenCO2_Sensor/cd8576b99eb31c235b287efc24b313cc3adf7a63/pictures/website.png --------------------------------------------------------------------------------