commit b273c2620c2578c965697bfb5de6c71b3d987185 Author: BoomPC Date: Mon May 6 22:35:49 2024 +0800 Initial diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..89cc49c --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.pio +.vscode/.browse.c_cpp.db* +.vscode/c_cpp_properties.json +.vscode/launch.json +.vscode/ipch diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..080e70d --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,10 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "platformio.platformio-ide" + ], + "unwantedRecommendations": [ + "ms-vscode.cpptools-extension-pack" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..534324b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,15 @@ +{ + "stm32-for-vscode.openOCDPath": false, + "stm32-for-vscode.makePath": false, + "stm32-for-vscode.armToolchainPath": false, + "files.associations": { + "刷新画线": "c", + "optional": "cpp", + "random": "cpp", + "limits": "cpp", + "new": "cpp", + "*.tcc": "cpp", + "cmath": "cpp", + "utility": "cpp" + } +} \ No newline at end of file diff --git a/include/README b/include/README new file mode 100644 index 0000000..194dcd4 --- /dev/null +++ b/include/README @@ -0,0 +1,39 @@ + +This directory is intended for project header files. + +A header file is a file containing C declarations and macro definitions +to be shared between several project source files. You request the use of a +header file in your project source file (C, C++, etc) located in `src` folder +by including it, with the C preprocessing directive `#include'. + +```src/main.c + +#include "header.h" + +int main (void) +{ + ... +} +``` + +Including a header file produces the same results as copying the header file +into each source file that needs it. Such copying would be time-consuming +and error-prone. With a header file, the related declarations appear +in only one place. If they need to be changed, they can be changed in one +place, and programs that include the header file will automatically use the +new version when next recompiled. The header file eliminates the labor of +finding and changing all the copies as well as the risk that a failure to +find one copy will result in inconsistencies within a program. + +In C, the usual convention is to give header files names that end with `.h'. +It is most portable to use only letters, digits, dashes, and underscores in +header file names, and at most one dot. + +Read more about using header files in official GCC documentation: + +* Include Syntax +* Include Operation +* Once-Only Headers +* Computed Includes + +https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html diff --git a/lib/README b/lib/README new file mode 100644 index 0000000..2593a33 --- /dev/null +++ b/lib/README @@ -0,0 +1,46 @@ + +This directory is intended for project specific (private) libraries. +PlatformIO will compile them to static libraries and link into executable file. + +The source code of each library should be placed in an own separate directory +("lib/your_library_name/[here are source files]"). + +For example, see a structure of the following two libraries `Foo` and `Bar`: + +|--lib +| | +| |--Bar +| | |--docs +| | |--examples +| | |--src +| | |- Bar.c +| | |- Bar.h +| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html +| | +| |--Foo +| | |- Foo.c +| | |- Foo.h +| | +| |- README --> THIS FILE +| +|- platformio.ini +|--src + |- main.c + +and a contents of `src/main.c`: +``` +#include +#include + +int main (void) +{ + ... +} + +``` + +PlatformIO Library Dependency Finder will find automatically dependent +libraries scanning project source files. + +More information about PlatformIO Library Dependency Finder +- https://docs.platformio.org/page/librarymanager/ldf.html diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..00a9951 --- /dev/null +++ b/platformio.ini @@ -0,0 +1,29 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html + +[env:esp32-c3-devkitm-1] +platform = espressif32 +board_build.flash_mode = dio +board = esp32-c3-devkitm-1 +framework = arduino +monitor_speed = 115200 +build_flags = + -D ARDUINO_USB_MODE=1 + -D ARDUINO_USB_CDC_ON_BOOT=1 + -Isrc/ + -DLV_CONF_INCLUDE_SIMPLE + -DLV_DEMO_CONF_INCLUDE_SIMPLE + -DLV_USE_DEMO_BENCHMARK +lib_deps = + lovyan03/LovyanGFX@^1.1.12 + tanakamasayuki/efont Unicode Font Data@^1.0.9 + peterus/INA226Lib@^1.1.3 + lvgl/lvgl@^8.3.4 + lvgl/lv_demos@^8.1.0 \ No newline at end of file diff --git a/src/LVGL b/src/LVGL new file mode 100644 index 0000000..90c953e --- /dev/null +++ b/src/LVGL @@ -0,0 +1,335 @@ +#include +#include +INA226 ina(Wire); + +// #define LGFX_AUTODETECT +// #include + +#include +#include + +/*Change to your screen resolution*/ +static const uint16_t screenWidth = 320; +static const uint16_t screenHeight = 172; + +static lv_disp_draw_buf_t draw_buf; +static lv_color_t buf[2][screenWidth * 10]; + +#include +// ESP32でLovyanGFXを独自設定で利用する場合の設定例 + +//---------------------------------------------------------------------------- + +/// 独自の設定を行うクラスを、LGFX_Deviceから派生して作成します。 +class LGFX : public lgfx::LGFX_Device +{ + lgfx::Panel_ST7789 _panel_instance; + lgfx::Bus_SPI _bus_instance; // SPIバスのインスタンス + lgfx::Light_PWM _light_instance; + +public: + // コンストラクタを作成し、ここで各種設定を行います。 + // クラス名を変更した場合はコンストラクタも同じ名前を指定してください。 + LGFX(void) + { + { // バス制御の設定を行います。 + auto cfg = _bus_instance.config(); // バス設定用の構造体を取得します。 + + // SPIバスの設定 + cfg.spi_host = SPI2_HOST; // 使用するSPIを選択 ESP32-S2,C3 : SPI2_HOST or SPI3_HOST / ESP32 : VSPI_HOST or HSPI_HOST + // ※ ESP-IDFバージョンアップに伴い、VSPI_HOST , HSPI_HOSTの記述は非推奨になるため、エラーが出る場合は代わりにSPI2_HOST , SPI3_HOSTを使用してください。 + cfg.spi_mode = 3; // SPI通信モードを設定 (0 ~ 3) + cfg.freq_write = 80000000; // 送信時のSPIクロック (最大80MHz, 80MHzを整数で割った値に丸められます) + cfg.freq_read = 16000000; // 受信時のSPIクロック + cfg.spi_3wire = true; // 受信をMOSIピンで行う場合はtrueを設定 + cfg.use_lock = true; // トランザクションロックを使用する場合はtrueを設定 + cfg.dma_channel = SPI_DMA_CH_AUTO; // 使用するDMAチャンネルを設定 (0=DMA不使用 / 1=1ch / 2=ch / SPI_DMA_CH_AUTO=自動設定) + // ※ ESP-IDFバージョンアップに伴い、DMAチャンネルはSPI_DMA_CH_AUTO(自動設定)が推奨になりました。1ch,2chの指定は非推奨になります。 + cfg.pin_sclk = 4; // SPIのSCLKピン番号を設定 + cfg.pin_mosi = 5; // SPIのMOSIピン番号を設定 + cfg.pin_miso = -1; // SPIのMISOピン番号を設定 (-1 = disable) + cfg.pin_dc = 6; // SPIのD/Cピン番号を設定 (-1 = disable) + // SDカードと共通のSPIバスを使う場合、MISOは省略せず必ず設定してください。 + _bus_instance.config(cfg); // 設定値をバスに反映します。 + _panel_instance.setBus(&_bus_instance); // バスをパネルにセットします。 + } + + { // 表示パネル制御の設定を行います。 + auto cfg = _panel_instance.config(); // 表示パネル設定用の構造体を取得します。 + + cfg.pin_cs = 8; // CSが接続されているピン番号 (-1 = disable) + cfg.pin_rst = 7; // RSTが接続されているピン番号 (-1 = disable) + cfg.pin_busy = -1; // BUSYが接続されているピン番号 (-1 = disable) + // ※ 以下の設定値はパネル毎に一般的な初期値が設定されていますので、不明な項目はコメントアウトして試してみてください。 + cfg.panel_width = 172; // 実際に表示可能な幅 + cfg.panel_height = 320; // 実際に表示可能な高さ + cfg.offset_x = 34; // パネルのX方向オフセット量 + cfg.offset_y = 0; // パネルのY方向オフセット量 + cfg.offset_rotation = 3; // 回転方向の値のオフセット 0~7 (4~7は上下反転) + cfg.dummy_read_pixel = 8; // ピクセル読出し前のダミーリードのビット数 + cfg.dummy_read_bits = 1; // ピクセル以外のデータ読出し前のダミーリードのビット数 + cfg.readable = false; // データ読出しが可能な場合 trueに設定 + cfg.invert = true; // パネルの明暗が反転してしまう場合 trueに設定 + cfg.rgb_order = false; // パネルの赤と青が入れ替わってしまう場合 trueに設定 + cfg.dlen_16bit = false; // 16bitパラレルやSPIでデータ長を16bit単位で送信するパネルの場合 trueに設定 + cfg.bus_shared = false; // SDカードとバスを共有している場合 trueに設定(drawJpgFile等でバス制御を行います) + + _panel_instance.config(cfg); + } + + { // バックライト制御の設定を行います。(必要なければ削除) + auto cfg = _light_instance.config(); // バックライト設定用の構造体を取得します。 + + cfg.pin_bl = 10; // バックライトが接続されているピン番号 + cfg.invert = true; // バックライトの輝度を反転させる場合 true + cfg.freq = 44100; // バックライトのPWM周波数 + cfg.pwm_channel = 1; // 使用するPWMのチャンネル番号 + + _light_instance.config(cfg); + _panel_instance.setLight(&_light_instance); // バックライトをパネルにセットします。 + } + + setPanel(&_panel_instance); // 使用するパネルをセットします。 + } +}; + +static LGFX lcd; +// static LGFX_Sprite sprite(&lcd); + +/* Display flushing */ +void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p) +{ + if (lcd.getStartCount() == 0) + { // Processing if not yet started + lcd.startWrite(); + } + lcd.pushImageDMA(area->x1, area->y1, area->x2 - area->x1 + 1, area->y2 - area->y1 + 1, (lgfx::swap565_t *)&color_p->full); + lv_disp_flush_ready(disp); +} + +// void sd_access_sample(void) +// { +// if (lcd.getStartCount() > 0) +// { // Free the bus before accessing the SD card +// gfx.endWrite(); +// } + +// // Something to manipulate the SD card. +// auto file = SD.open("/file"); +// file.close(); +// } + +/*Read the touchpad*/ +void my_touchpad_read(lv_indev_drv_t *indev_driver, lv_indev_data_t *data) +{ + uint16_t touchX, touchY; + + data->state = LV_INDEV_STATE_REL; + + if (lcd.getTouch(&touchX, &touchY)) + { + data->state = LV_INDEV_STATE_PR; + + /*Set the coordinates*/ + data->point.x = touchX; + data->point.y = touchY; + } +} + +void checkConfig() +{ + Serial.print("Mode: "); + switch (ina.getMode()) + { + case INA226_MODE_POWER_DOWN: + Serial.println("Power-Down"); + break; + case INA226_MODE_SHUNT_TRIG: + Serial.println("Shunt Voltage, Triggered"); + break; + case INA226_MODE_BUS_TRIG: + Serial.println("Bus Voltage, Triggered"); + break; + case INA226_MODE_SHUNT_BUS_TRIG: + Serial.println("Shunt and Bus, Triggered"); + break; + case INA226_MODE_ADC_OFF: + Serial.println("ADC Off"); + break; + case INA226_MODE_SHUNT_CONT: + Serial.println("Shunt Voltage, Continuous"); + break; + case INA226_MODE_BUS_CONT: + Serial.println("Bus Voltage, Continuous"); + break; + case INA226_MODE_SHUNT_BUS_CONT: + Serial.println("Shunt and Bus, Continuous"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Samples average: "); + switch (ina.getAverages()) + { + case INA226_AVERAGES_1: + Serial.println("1 sample"); + break; + case INA226_AVERAGES_4: + Serial.println("4 samples"); + break; + case INA226_AVERAGES_16: + Serial.println("16 samples"); + break; + case INA226_AVERAGES_64: + Serial.println("64 samples"); + break; + case INA226_AVERAGES_128: + Serial.println("128 samples"); + break; + case INA226_AVERAGES_256: + Serial.println("256 samples"); + break; + case INA226_AVERAGES_512: + Serial.println("512 samples"); + break; + case INA226_AVERAGES_1024: + Serial.println("1024 samples"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Bus conversion time: "); + switch (ina.getBusConversionTime()) + { + case INA226_BUS_CONV_TIME_140US: + Serial.println("140uS"); + break; + case INA226_BUS_CONV_TIME_204US: + Serial.println("204uS"); + break; + case INA226_BUS_CONV_TIME_332US: + Serial.println("332uS"); + break; + case INA226_BUS_CONV_TIME_588US: + Serial.println("558uS"); + break; + case INA226_BUS_CONV_TIME_1100US: + Serial.println("1.100ms"); + break; + case INA226_BUS_CONV_TIME_2116US: + Serial.println("2.116ms"); + break; + case INA226_BUS_CONV_TIME_4156US: + Serial.println("4.156ms"); + break; + case INA226_BUS_CONV_TIME_8244US: + Serial.println("8.244ms"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Shunt conversion time: "); + switch (ina.getShuntConversionTime()) + { + case INA226_SHUNT_CONV_TIME_140US: + Serial.println("140uS"); + break; + case INA226_SHUNT_CONV_TIME_204US: + Serial.println("204uS"); + break; + case INA226_SHUNT_CONV_TIME_332US: + Serial.println("332uS"); + break; + case INA226_SHUNT_CONV_TIME_588US: + Serial.println("558uS"); + break; + case INA226_SHUNT_CONV_TIME_1100US: + Serial.println("1.100ms"); + break; + case INA226_SHUNT_CONV_TIME_2116US: + Serial.println("2.116ms"); + break; + case INA226_SHUNT_CONV_TIME_4156US: + Serial.println("4.156ms"); + break; + case INA226_SHUNT_CONV_TIME_8244US: + Serial.println("8.244ms"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Max possible current: "); + Serial.print(ina.getMaxPossibleCurrent()); + Serial.println(" A"); + + Serial.print("Max current: "); + Serial.print(ina.getMaxCurrent()); + Serial.println(" A"); + + Serial.print("Max shunt voltage: "); + Serial.print(ina.getMaxShuntVoltage()); + Serial.println(" V"); + + Serial.print("Max power: "); + Serial.print(ina.getMaxPower()); + Serial.println(" W"); +} + +void setup(void) +{ + lcd.init(); + // lcd.startWrite(); + lcd.setBrightness(100); + + lv_init(); + lv_disp_draw_buf_init(&draw_buf, buf[0], buf[1], screenWidth * 10); + + /*Initialize the display*/ + static lv_disp_drv_t disp_drv; + lv_disp_drv_init(&disp_drv); + /*Change the following line to your display resolution*/ + disp_drv.hor_res = screenWidth; + disp_drv.ver_res = screenHeight; + disp_drv.flush_cb = my_disp_flush; + disp_drv.draw_buf = &draw_buf; + lv_disp_drv_register(&disp_drv); + + /*Initialize the input device driver*/ + static lv_indev_drv_t indev_drv; + lv_indev_drv_init(&indev_drv); + indev_drv.type = LV_INDEV_TYPE_POINTER; + indev_drv.read_cb = my_touchpad_read; + lv_indev_drv_register(&indev_drv); + + lv_demo_benchmark(); + + Wire.begin(1, 0, 100000); + // Default INA226 address is 0x40 + bool success = ina.begin(); + // Check if the connection was successful, stop if not + if (!success) + { + Serial.println("Connection error"); + while (1) + ; + } + // Configure INA226 + ina.configure(INA226_AVERAGES_1, INA226_BUS_CONV_TIME_1100US, INA226_SHUNT_CONV_TIME_1100US, INA226_MODE_SHUNT_BUS_CONT); + // Calibrate INA226. Rshunt = 0.001 ohm, Max excepted current = 4A + ina.calibrate(0.001, 40); + // Display configuration + checkConfig(); +} +int32_t current; +int32_t current_buf[322]; +float t = 0; + +void loop(void) +{ + lv_timer_handler(); /* let the GUI do its work */ + delay(1); +} \ No newline at end of file diff --git a/src/image.h b/src/image.h new file mode 100644 index 0000000..18f6077 --- /dev/null +++ b/src/image.h @@ -0,0 +1,31 @@ +_ _ _ _ _ _ _ _ _ _ _ _ _ R R R R R R R _ _ _ _ _ _ _ _ _ _ _ _ _ +_ _ _ _ _ _ _ _ _ _ _ R R R R R R R R R R R _ _ _ _ _ _ _ _ _ _ _ +_ _ _ _ _ _ _ _ _ _ R R R R R R R R R R R R R _ _ _ _ _ _ _ _ _ _ +_ _ _ _ _ _ _ _ _ R R R R _ _ _ _ _ _ R R R R R _ _ _ _ _ _ _ _ _ +_ _ _ _ _ _ _ _ R R R R R _ _ R R R _ _ R R R R R _ _ _ _ _ _ _ _ +_ _ _ _ _ _ _ _ R R R R R _ _ R R R _ _ R R R R R _ _ _ _ _ _ _ _ +_ _ _ _ _ _ _ R R R R R R _ _ _ _ _ _ R R R R R R R _ _ _ _ _ _ _ +_ _ _ _ _ _ _ R R R R R R _ _ R R _ _ R R R R R R R _ _ _ _ _ _ _ +_ _ _ _ _ _ _ R R R R R R _ _ R R R _ _ R R R R R R _ _ _ _ _ _ _ +_ _ _ _ _ _ _ R R R R R R _ _ R R R _ _ R R R R R R _ _ _ _ _ _ _ +_ _ _ _ _ _ _ R R R R R R _ _ R R R _ _ R R R R R R _ _ _ _ _ _ _ +_ _ _ _ _ _ _ R R R R R R R R R R R R R R R R R R R _ _ _ _ _ _ _ +_ _ _ _ _ _ G Y Y Y Y Y Y R R R R R R R M M M M M M B _ _ _ _ _ _ +_ _ _ _ G G G G Y Y Y Y Y Y Y R R R M M M M M M M B B B B _ _ _ _ +_ _ _ G G G G G Y Y Y Y Y Y Y Y R M M M M M M M M B B B B B _ _ _ +_ _ G G G G G G G Y Y Y Y Y Y Y W M M M M M M M B B B B B B B _ _ +_ G G G G G G G G G Y Y Y Y Y W W W M M M M M B B B B B B B B B _ +_ G G G G G G G G G G Y Y Y Y W W W M M M M B B B B B B B B B B _ +G G G G G G G G G G G G G Y W W W W W M B B B B B B B B B B B B B +G G G G G _ _ _ _ G G G G G C C C C C B B B B _ _ _ _ _ B B B B B +G G G G _ _ G G _ _ G G G G C C C C C B B B B _ _ B B _ _ B B B B +G G G G _ _ G G G G G G G G C C C C C B B B B _ _ B B _ _ B B B B +G G G G _ _ G G G G G G G G C C C C C B B B B _ _ _ _ _ B B B B B +G G G G _ _ G _ _ _ G G G G C C C C C B B B B _ _ B B _ _ B B B B +G G G G _ _ G G _ _ G G G G C C C C C B B B B _ _ B B _ _ B B B B +_ G G G _ _ G G _ _ G G G G G C C C B B B B B _ _ B B _ _ B B B _ +_ G G G G _ _ _ _ G G G G G G C C C B B B B B _ _ _ _ _ B B B B _ +_ _ G G G G G G G G G G G G G G C B B B B B B B B B B B B B B _ _ +_ _ _ G G G G G G G G G G G G G _ B B B B B B B B B B B B B _ _ _ +_ _ _ _ G G G G G G G G G G G _ _ _ B B B B B B B B B B B _ _ _ _ +_ _ _ _ _ _ G G G G G G G _ _ _ _ _ _ _ B B B B B B B _ _ _ _ _ _ \ No newline at end of file diff --git a/src/lv_conf.h b/src/lv_conf.h new file mode 100644 index 0000000..ca35967 --- /dev/null +++ b/src/lv_conf.h @@ -0,0 +1,677 @@ +/** + * @file lv_conf.h + * Configuration file for v8.3.0-dev + */ + +/* + * Copy this file as `lv_conf.h` + * 1. simply next to the `lvgl` folder + * 2. or any other places and + * - define `LV_CONF_INCLUDE_SIMPLE` + * - add the path as include path + */ + +/* clang-format off */ +#if 1 /*Set it to "1" to enable content*/ + +#ifndef LV_CONF_H +#define LV_CONF_H + +#include + +/*==================== + COLOR SETTINGS + *====================*/ + +/*Color depth: 1 (1 byte per pixel), 8 (RGB332), 16 (RGB565), 32 (ARGB8888)*/ +#define LV_COLOR_DEPTH 16 + +/*Swap the 2 bytes of RGB565 color. Useful if the display has an 8-bit interface (e.g. SPI)*/ +#define LV_COLOR_16_SWAP 1 + +/*Enable more complex drawing routines to manage screens transparency. + *Can be used if the UI is above another layer, e.g. an OSD menu or video player. + *Requires `LV_COLOR_DEPTH = 32` colors and the screen's `bg_opa` should be set to non LV_OPA_COVER value*/ +#define LV_COLOR_SCREEN_TRANSP 0 + +/* Adjust color mix functions rounding. GPUs might calculate color mix (blending) differently. + * 0: round down, 64: round up from x.75, 128: round up from half, 192: round up from x.25, 254: round up */ +#define LV_COLOR_MIX_ROUND_OFS (LV_COLOR_DEPTH == 32 ? 0: 128) + +/*Images pixels with this color will not be drawn if they are chroma keyed)*/ +#define LV_COLOR_CHROMA_KEY lv_color_hex(0x00ff00) /*pure green*/ + +/*========================= + MEMORY SETTINGS + *=========================*/ + +/*1: use custom malloc/free, 0: use the built-in `lv_mem_alloc()` and `lv_mem_free()`*/ +#define LV_MEM_CUSTOM 0 +#if LV_MEM_CUSTOM == 0 + /*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/ + #define LV_MEM_SIZE (48U * 1024U) /*[bytes]*/ + + /*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/ + #define LV_MEM_ADR 0 /*0: unused*/ + /*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/ + #if LV_MEM_ADR == 0 + //#define LV_MEM_POOL_INCLUDE your_alloc_library /* Uncomment if using an external allocator*/ + //#define LV_MEM_POOL_ALLOC your_alloc /* Uncomment if using an external allocator*/ + #endif + +#else /*LV_MEM_CUSTOM*/ + #define LV_MEM_CUSTOM_INCLUDE /*Header for the dynamic memory function*/ + #define LV_MEM_CUSTOM_ALLOC malloc + #define LV_MEM_CUSTOM_FREE free + #define LV_MEM_CUSTOM_REALLOC realloc +#endif /*LV_MEM_CUSTOM*/ + +/*Number of the intermediate memory buffer used during rendering and other internal processing mechanisms. + *You will see an error log message if there wasn't enough buffers. */ +#define LV_MEM_BUF_MAX_NUM 16 + +/*Use the standard `memcpy` and `memset` instead of LVGL's own functions. (Might or might not be faster).*/ +#define LV_MEMCPY_MEMSET_STD 0 + +/*==================== + HAL SETTINGS + *====================*/ + +/*Default display refresh period. LVG will redraw changed areas with this period time*/ +#define LV_DISP_DEF_REFR_PERIOD 16 /*[ms]*/ + +/*Input device read period in milliseconds*/ +#define LV_INDEV_DEF_READ_PERIOD 30 /*[ms]*/ + +/*Use a custom tick source that tells the elapsed time in milliseconds. + *It removes the need to manually update the tick with `lv_tick_inc()`)*/ +#define LV_TICK_CUSTOM 1 +#if LV_TICK_CUSTOM + #define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/ + #define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current system time in ms*/ +#endif /*LV_TICK_CUSTOM*/ + +/*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings. + *(Not so important, you can adjust it to modify default sizes and spaces)*/ +#define LV_DPI_DEF 130 /*[px/inch]*/ + +/*======================= + * FEATURE CONFIGURATION + *=======================*/ + +/*------------- + * Drawing + *-----------*/ + +/*Enable complex draw engine. + *Required to draw shadow, gradient, rounded corners, circles, arc, skew lines, image transformations or any masks*/ +#define LV_DRAW_COMPLEX 1 +#if LV_DRAW_COMPLEX != 0 + + /*Allow buffering some shadow calculation. + *LV_SHADOW_CACHE_SIZE is the max. shadow size to buffer, where shadow size is `shadow_width + radius` + *Caching has LV_SHADOW_CACHE_SIZE^2 RAM cost*/ + #define LV_SHADOW_CACHE_SIZE 0 + + /* Set number of maximally cached circle data. + * The circumference of 1/4 circle are saved for anti-aliasing + * radius * 4 bytes are used per circle (the most often used radiuses are saved) + * 0: to disable caching */ + #define LV_CIRCLE_CACHE_SIZE 4 +#endif /*LV_DRAW_COMPLEX*/ + +/*Default image cache size. Image caching keeps the images opened. + *If only the built-in image formats are used there is no real advantage of caching. (I.e. if no new image decoder is added) + *With complex image decoders (e.g. PNG or JPG) caching can save the continuous open/decode of images. + *However the opened images might consume additional RAM. + *0: to disable caching*/ +#define LV_IMG_CACHE_DEF_SIZE 0 + +/*Number of stops allowed per gradient. Increase this to allow more stops. + *This adds (sizeof(lv_color_t) + 1) bytes per additional stop*/ +#define LV_GRADIENT_MAX_STOPS 2 + +/*Default gradient buffer size. + *When LVGL calculates the gradient "maps" it can save them into a cache to avoid calculating them again. + *LV_GRAD_CACHE_DEF_SIZE sets the size of this cache in bytes. + *If the cache is too small the map will be allocated only while it's required for the drawing. + *0 mean no caching.*/ +#define LV_GRAD_CACHE_DEF_SIZE 0 + +/*Allow dithering the gradients (to achieve visual smooth color gradients on limited color depth display) + *LV_DITHER_GRADIENT implies allocating one or two more lines of the object's rendering surface + *The increase in memory consumption is (32 bits * object width) plus 24 bits * object width if using error diffusion */ +#define LV_DITHER_GRADIENT 0 +#if LV_DITHER_GRADIENT + /*Add support for error diffusion dithering. + *Error diffusion dithering gets a much better visual result, but implies more CPU consumption and memory when drawing. + *The increase in memory consumption is (24 bits * object's width)*/ + #define LV_DITHER_ERROR_DIFFUSION 0 +#endif + +/*Maximum buffer size to allocate for rotation. + *Only used if software rotation is enabled in the display driver.*/ +#define LV_DISP_ROT_MAX_BUF (10*1024) + +/*------------- + * GPU + *-----------*/ + +/*Use Arm's 2D acceleration library Arm-2D */ +#define LV_USE_GPU_ARM2D 0 + +/*Use STM32's DMA2D (aka Chrom Art) GPU*/ +#define LV_USE_GPU_STM32_DMA2D 0 +#if LV_USE_GPU_STM32_DMA2D + /*Must be defined to include path of CMSIS header of target processor + e.g. "stm32f769xx.h" or "stm32f429xx.h"*/ + #define LV_GPU_DMA2D_CMSIS_INCLUDE +#endif + +/*Use NXP's PXP GPU iMX RTxxx platforms*/ +#define LV_USE_GPU_NXP_PXP 0 +#if LV_USE_GPU_NXP_PXP + /*1: Add default bare metal and FreeRTOS interrupt handling routines for PXP (lv_gpu_nxp_pxp_osa.c) + * and call lv_gpu_nxp_pxp_init() automatically during lv_init(). Note that symbol SDK_OS_FREE_RTOS + * has to be defined in order to use FreeRTOS OSA, otherwise bare-metal implementation is selected. + *0: lv_gpu_nxp_pxp_init() has to be called manually before lv_init() + */ + #define LV_USE_GPU_NXP_PXP_AUTO_INIT 0 +#endif + +/*Use NXP's VG-Lite GPU iMX RTxxx platforms*/ +#define LV_USE_GPU_NXP_VG_LITE 0 + +/*Use SDL renderer API*/ +#define LV_USE_GPU_SDL 0 +#if LV_USE_GPU_SDL + #define LV_GPU_SDL_INCLUDE_PATH + /*Texture cache size, 8MB by default*/ + #define LV_GPU_SDL_LRU_SIZE (1024 * 1024 * 8) + /*Custom blend mode for mask drawing, disable if you need to link with older SDL2 lib*/ + #define LV_GPU_SDL_CUSTOM_BLEND_MODE (SDL_VERSION_ATLEAST(2, 0, 6)) +#endif + +/*------------- + * Logging + *-----------*/ + +/*Enable the log module*/ +#define LV_USE_LOG 0 +#if LV_USE_LOG + + /*How important log should be added: + *LV_LOG_LEVEL_TRACE A lot of logs to give detailed information + *LV_LOG_LEVEL_INFO Log important events + *LV_LOG_LEVEL_WARN Log if something unwanted happened but didn't cause a problem + *LV_LOG_LEVEL_ERROR Only critical issue, when the system may fail + *LV_LOG_LEVEL_USER Only logs added by the user + *LV_LOG_LEVEL_NONE Do not log anything*/ + #define LV_LOG_LEVEL LV_LOG_LEVEL_WARN + + /*1: Print the log with 'printf'; + *0: User need to register a callback with `lv_log_register_print_cb()`*/ + #define LV_LOG_PRINTF 0 + + /*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/ + #define LV_LOG_TRACE_MEM 1 + #define LV_LOG_TRACE_TIMER 1 + #define LV_LOG_TRACE_INDEV 1 + #define LV_LOG_TRACE_DISP_REFR 1 + #define LV_LOG_TRACE_EVENT 1 + #define LV_LOG_TRACE_OBJ_CREATE 1 + #define LV_LOG_TRACE_LAYOUT 1 + #define LV_LOG_TRACE_ANIM 1 + +#endif /*LV_USE_LOG*/ + +/*------------- + * Asserts + *-----------*/ + +/*Enable asserts if an operation is failed or an invalid data is found. + *If LV_USE_LOG is enabled an error message will be printed on failure*/ +#define LV_USE_ASSERT_NULL 1 /*Check if the parameter is NULL. (Very fast, recommended)*/ +#define LV_USE_ASSERT_MALLOC 1 /*Checks is the memory is successfully allocated or no. (Very fast, recommended)*/ +#define LV_USE_ASSERT_STYLE 0 /*Check if the styles are properly initialized. (Very fast, recommended)*/ +#define LV_USE_ASSERT_MEM_INTEGRITY 0 /*Check the integrity of `lv_mem` after critical operations. (Slow)*/ +#define LV_USE_ASSERT_OBJ 0 /*Check the object's type and existence (e.g. not deleted). (Slow)*/ + +/*Add a custom handler when assert happens e.g. to restart the MCU*/ +#define LV_ASSERT_HANDLER_INCLUDE +#define LV_ASSERT_HANDLER while(1); /*Halt by default*/ + +/*------------- + * Others + *-----------*/ + +/*1: Show CPU usage and FPS count*/ +#define LV_USE_PERF_MONITOR 0 +#if LV_USE_PERF_MONITOR + #define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT +#endif + +/*1: Show the used memory and the memory fragmentation + * Requires LV_MEM_CUSTOM = 0*/ +#define LV_USE_MEM_MONITOR 0 +#if LV_USE_MEM_MONITOR + #define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT +#endif + +/*1: Draw random colored rectangles over the redrawn areas*/ +#define LV_USE_REFR_DEBUG 0 + +/*Change the built in (v)snprintf functions*/ +#define LV_SPRINTF_CUSTOM 0 +#if LV_SPRINTF_CUSTOM + #define LV_SPRINTF_INCLUDE + #define lv_snprintf snprintf + #define lv_vsnprintf vsnprintf +#else /*LV_SPRINTF_CUSTOM*/ + #define LV_SPRINTF_USE_FLOAT 0 +#endif /*LV_SPRINTF_CUSTOM*/ + +#define LV_USE_USER_DATA 1 + +/*Garbage Collector settings + *Used if lvgl is bound to higher level language and the memory is managed by that language*/ +#define LV_ENABLE_GC 0 +#if LV_ENABLE_GC != 0 + #define LV_GC_INCLUDE "gc.h" /*Include Garbage Collector related things*/ +#endif /*LV_ENABLE_GC*/ + +/*===================== + * COMPILER SETTINGS + *====================*/ + +/*For big endian systems set to 1*/ +#define LV_BIG_ENDIAN_SYSTEM 0 + +/*Define a custom attribute to `lv_tick_inc` function*/ +#define LV_ATTRIBUTE_TICK_INC + +/*Define a custom attribute to `lv_timer_handler` function*/ +#define LV_ATTRIBUTE_TIMER_HANDLER + +/*Define a custom attribute to `lv_disp_flush_ready` function*/ +#define LV_ATTRIBUTE_FLUSH_READY + +/*Required alignment size for buffers*/ +#define LV_ATTRIBUTE_MEM_ALIGN_SIZE 1 + +/*Will be added where memories needs to be aligned (with -Os data might not be aligned to boundary by default). + * E.g. __attribute__((aligned(4)))*/ +#define LV_ATTRIBUTE_MEM_ALIGN + +/*Attribute to mark large constant arrays for example font's bitmaps*/ +#define LV_ATTRIBUTE_LARGE_CONST + +/*Compiler prefix for a big array declaration in RAM*/ +#define LV_ATTRIBUTE_LARGE_RAM_ARRAY + +/*Place performance critical functions into a faster memory (e.g RAM)*/ +#define LV_ATTRIBUTE_FAST_MEM + +/*Prefix variables that are used in GPU accelerated operations, often these need to be placed in RAM sections that are DMA accessible*/ +#define LV_ATTRIBUTE_DMA + +/*Export integer constant to binding. This macro is used with constants in the form of LV_ that + *should also appear on LVGL binding API such as Micropython.*/ +#define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning /*The default value just prevents GCC warning*/ + +/*Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t*/ +#define LV_USE_LARGE_COORD 0 + +/*================== + * FONT USAGE + *===================*/ + +/*Montserrat fonts with ASCII range and some symbols using bpp = 4 + *https://fonts.google.com/specimen/Montserrat*/ +#define LV_FONT_MONTSERRAT_8 0 +#define LV_FONT_MONTSERRAT_10 0 +#define LV_FONT_MONTSERRAT_12 1 +#define LV_FONT_MONTSERRAT_14 1 +#define LV_FONT_MONTSERRAT_16 1 +#define LV_FONT_MONTSERRAT_18 0 +#define LV_FONT_MONTSERRAT_20 0 +#define LV_FONT_MONTSERRAT_22 0 +#define LV_FONT_MONTSERRAT_24 0 +#define LV_FONT_MONTSERRAT_26 0 +#define LV_FONT_MONTSERRAT_28 0 +#define LV_FONT_MONTSERRAT_30 0 +#define LV_FONT_MONTSERRAT_32 0 +#define LV_FONT_MONTSERRAT_34 0 +#define LV_FONT_MONTSERRAT_36 0 +#define LV_FONT_MONTSERRAT_38 0 +#define LV_FONT_MONTSERRAT_40 0 +#define LV_FONT_MONTSERRAT_42 0 +#define LV_FONT_MONTSERRAT_44 0 +#define LV_FONT_MONTSERRAT_46 0 +#define LV_FONT_MONTSERRAT_48 0 + +/*Demonstrate special features*/ +#define LV_FONT_MONTSERRAT_12_SUBPX 0 +#define LV_FONT_MONTSERRAT_28_COMPRESSED 0 /*bpp = 3*/ +#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0 /*Hebrew, Arabic, Persian letters and all their forms*/ +#define LV_FONT_SIMSUN_16_CJK 0 /*1000 most common CJK radicals*/ + +/*Pixel perfect monospace fonts*/ +#define LV_FONT_UNSCII_8 0 +#define LV_FONT_UNSCII_16 0 + +/*Optionally declare custom fonts here. + *You can use these fonts as default font too and they will be available globally. + *E.g. #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) LV_FONT_DECLARE(my_font_2)*/ +#define LV_FONT_CUSTOM_DECLARE + +/*Always set a default font*/ +#define LV_FONT_DEFAULT &lv_font_montserrat_14 + +/*Enable handling large font and/or fonts with a lot of characters. + *The limit depends on the font size, font face and bpp. + *Compiler error will be triggered if a font needs it.*/ +#define LV_FONT_FMT_TXT_LARGE 0 + +/*Enables/disables support for compressed fonts.*/ +#define LV_USE_FONT_COMPRESSED 0 + +/*Enable subpixel rendering*/ +#define LV_USE_FONT_SUBPX 0 +#if LV_USE_FONT_SUBPX + /*Set the pixel order of the display. Physical order of RGB channels. Doesn't matter with "normal" fonts.*/ + #define LV_FONT_SUBPX_BGR 0 /*0: RGB; 1:BGR order*/ +#endif + +/*================= + * TEXT SETTINGS + *=================*/ + +/** + * Select a character encoding for strings. + * Your IDE or editor should have the same character encoding + * - LV_TXT_ENC_UTF8 + * - LV_TXT_ENC_ASCII + */ +#define LV_TXT_ENC LV_TXT_ENC_UTF8 + +/*Can break (wrap) texts on these chars*/ +#define LV_TXT_BREAK_CHARS " ,.;:-_" + +/*If a word is at least this long, will break wherever "prettiest" + *To disable, set to a value <= 0*/ +#define LV_TXT_LINE_BREAK_LONG_LEN 0 + +/*Minimum number of characters in a long word to put on a line before a break. + *Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/ +#define LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN 3 + +/*Minimum number of characters in a long word to put on a line after a break. + *Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/ +#define LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3 + +/*The control character to use for signalling text recoloring.*/ +#define LV_TXT_COLOR_CMD "#" + +/*Support bidirectional texts. Allows mixing Left-to-Right and Right-to-Left texts. + *The direction will be processed according to the Unicode Bidirectional Algorithm: + *https://www.w3.org/International/articles/inline-bidi-markup/uba-basics*/ +#define LV_USE_BIDI 0 +#if LV_USE_BIDI + /*Set the default direction. Supported values: + *`LV_BASE_DIR_LTR` Left-to-Right + *`LV_BASE_DIR_RTL` Right-to-Left + *`LV_BASE_DIR_AUTO` detect texts base direction*/ + #define LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO +#endif + +/*Enable Arabic/Persian processing + *In these languages characters should be replaced with an other form based on their position in the text*/ +#define LV_USE_ARABIC_PERSIAN_CHARS 0 + +/*================== + * WIDGET USAGE + *================*/ + +/*Documentation of the widgets: https://docs.lvgl.io/latest/en/html/widgets/index.html*/ + +#define LV_USE_ARC 1 + +#define LV_USE_ANIMIMG 1 + +#define LV_USE_BAR 1 + +#define LV_USE_BTN 1 + +#define LV_USE_BTNMATRIX 1 + +#define LV_USE_CANVAS 1 + +#define LV_USE_CHECKBOX 1 + +#define LV_USE_DROPDOWN 1 /*Requires: lv_label*/ + +#define LV_USE_IMG 1 /*Requires: lv_label*/ + +#define LV_USE_LABEL 1 +#if LV_USE_LABEL + #define LV_LABEL_TEXT_SELECTION 1 /*Enable selecting text of the label*/ + #define LV_LABEL_LONG_TXT_HINT 1 /*Store some extra info in labels to speed up drawing of very long texts*/ +#endif + +#define LV_USE_LINE 1 + +#define LV_USE_ROLLER 1 /*Requires: lv_label*/ +#if LV_USE_ROLLER + #define LV_ROLLER_INF_PAGES 7 /*Number of extra "pages" when the roller is infinite*/ +#endif + +#define LV_USE_SLIDER 1 /*Requires: lv_bar*/ + +#define LV_USE_SWITCH 1 + +#define LV_USE_TEXTAREA 1 /*Requires: lv_label*/ +#if LV_USE_TEXTAREA != 0 + #define LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500 /*ms*/ +#endif + +#define LV_USE_TABLE 1 + +/*================== + * EXTRA COMPONENTS + *==================*/ + +/*----------- + * Widgets + *----------*/ +#define LV_USE_CALENDAR 1 +#if LV_USE_CALENDAR + #define LV_CALENDAR_WEEK_STARTS_MONDAY 0 + #if LV_CALENDAR_WEEK_STARTS_MONDAY + #define LV_CALENDAR_DEFAULT_DAY_NAMES {"Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"} + #else + #define LV_CALENDAR_DEFAULT_DAY_NAMES {"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"} + #endif + + #define LV_CALENDAR_DEFAULT_MONTH_NAMES {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} + #define LV_USE_CALENDAR_HEADER_ARROW 1 + #define LV_USE_CALENDAR_HEADER_DROPDOWN 1 +#endif /*LV_USE_CALENDAR*/ + +#define LV_USE_CHART 1 + +#define LV_USE_COLORWHEEL 1 + +#define LV_USE_IMGBTN 1 + +#define LV_USE_KEYBOARD 1 + +#define LV_USE_LED 1 + +#define LV_USE_LIST 1 + +#define LV_USE_MENU 1 + +#define LV_USE_METER 1 + +#define LV_USE_MSGBOX 1 + +#define LV_USE_SPINBOX 1 + +#define LV_USE_SPINNER 1 + +#define LV_USE_TABVIEW 1 + +#define LV_USE_TILEVIEW 1 + +#define LV_USE_WIN 1 + +#define LV_USE_SPAN 1 +#if LV_USE_SPAN + /*A line text can contain maximum num of span descriptor */ + #define LV_SPAN_SNIPPET_STACK_SIZE 64 +#endif + +/*----------- + * Themes + *----------*/ + +/*A simple, impressive and very complete theme*/ +#define LV_USE_THEME_DEFAULT 1 +#if LV_USE_THEME_DEFAULT + + /*0: Light mode; 1: Dark mode*/ + #define LV_THEME_DEFAULT_DARK 0 + + /*1: Enable grow on press*/ + #define LV_THEME_DEFAULT_GROW 1 + + /*Default transition time in [ms]*/ + #define LV_THEME_DEFAULT_TRANSITION_TIME 80 +#endif /*LV_USE_THEME_DEFAULT*/ + +/*A very simple theme that is a good starting point for a custom theme*/ +#define LV_USE_THEME_BASIC 1 + +/*A theme designed for monochrome displays*/ +#define LV_USE_THEME_MONO 1 + +/*----------- + * Layouts + *----------*/ + +/*A layout similar to Flexbox in CSS.*/ +#define LV_USE_FLEX 1 + +/*A layout similar to Grid in CSS.*/ +#define LV_USE_GRID 1 + +/*--------------------- + * 3rd party libraries + *--------------------*/ + +/*File system interfaces for common APIs */ + +/*API for fopen, fread, etc*/ +#define LV_USE_FS_STDIO 0 +#if LV_USE_FS_STDIO + #define LV_FS_STDIO_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ + #define LV_FS_STDIO_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ + #define LV_FS_STDIO_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ +#endif + +/*API for open, read, etc*/ +#define LV_USE_FS_POSIX 0 +#if LV_USE_FS_POSIX + #define LV_FS_POSIX_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ + #define LV_FS_POSIX_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ + #define LV_FS_POSIX_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ +#endif + +/*API for CreateFile, ReadFile, etc*/ +#define LV_USE_FS_WIN32 0 +#if LV_USE_FS_WIN32 + #define LV_FS_WIN32_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ + #define LV_FS_WIN32_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/ + #define LV_FS_WIN32_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ +#endif + +/*API for FATFS (needs to be added separately). Uses f_open, f_read, etc*/ +#define LV_USE_FS_FATFS 0 +#if LV_USE_FS_FATFS + #define LV_FS_FATFS_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/ + #define LV_FS_FATFS_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/ +#endif + +/*PNG decoder library*/ +#define LV_USE_PNG 0 + +/*BMP decoder library*/ +#define LV_USE_BMP 0 + +/* JPG + split JPG decoder library. + * Split JPG is a custom format optimized for embedded systems. */ +#define LV_USE_SJPG 0 + +/*GIF decoder library*/ +#define LV_USE_GIF 0 + +/*QR code library*/ +#define LV_USE_QRCODE 0 + +/*FreeType library*/ +#define LV_USE_FREETYPE 0 +#if LV_USE_FREETYPE + /*Memory used by FreeType to cache characters [bytes] (-1: no caching)*/ + #define LV_FREETYPE_CACHE_SIZE (16 * 1024) + #if LV_FREETYPE_CACHE_SIZE >= 0 + /* 1: bitmap cache use the sbit cache, 0:bitmap cache use the image cache. */ + /* sbit cache:it is much more memory efficient for small bitmaps(font size < 256) */ + /* if font size >= 256, must be configured as image cache */ + #define LV_FREETYPE_SBIT_CACHE 0 + /* Maximum number of opened FT_Face/FT_Size objects managed by this cache instance. */ + /* (0:use system defaults) */ + #define LV_FREETYPE_CACHE_FT_FACES 0 + #define LV_FREETYPE_CACHE_FT_SIZES 0 + #endif +#endif + +/*Rlottie library*/ +#define LV_USE_RLOTTIE 0 + +/*FFmpeg library for image decoding and playing videos + *Supports all major image formats so do not enable other image decoder with it*/ +#define LV_USE_FFMPEG 0 +#if LV_USE_FFMPEG + /*Dump input information to stderr*/ + #define LV_FFMPEG_AV_DUMP_FORMAT 0 +#endif + +/*----------- + * Others + *----------*/ + +/*1: Enable API to take snapshot for object*/ +#define LV_USE_SNAPSHOT 0 + +/*1: Enable Monkey test*/ +#define LV_USE_MONKEY 0 + +/*1: Enable grid navigation*/ +#define LV_USE_GRIDNAV 0 + +/*1: Enable lv_obj fragment*/ +#define LV_USE_FRAGMENT 0 + +/*================== +* EXAMPLES +*==================*/ + +/*Enable the examples to be built with the library*/ +#define LV_BUILD_EXAMPLES 1 + +/*--END OF LV_CONF_H--*/ + +#endif /*LV_CONF_H*/ + +#endif /*End of "Content enable"*/ \ No newline at end of file diff --git a/src/lv_demo_conf.h b/src/lv_demo_conf.h new file mode 100644 index 0000000..8f8e35b --- /dev/null +++ b/src/lv_demo_conf.h @@ -0,0 +1,58 @@ +/** + * @file lv_demo_conf.h + * Configuration file for v8.1.1-dev + * + */ +/* + * COPY THIS FILE AS lv_demo_conf.h + */ + +/* clang-format off */ +#if 0 /*Set it to "1" to enable the content*/ + +#ifndef LV_DEMO_CONF_H +#define LV_DEMO_CONF_H + + +/******************* + * GENERAL SETTING + *******************/ +#define LV_EX_PRINTF 0 /*Enable printf-ing data in demoes and examples*/ +#define LV_EX_KEYBOARD 0 /*Add PC keyboard support to some examples (`lv_drivers` repository is required)*/ +#define LV_EX_MOUSEWHEEL 0 /*Add 'encoder' (mouse wheel) support to some examples (`lv_drivers` repository is required)*/ + +/********************* + * DEMO USAGE + *********************/ + +/*Show some widget*/ +#define LV_USE_DEMO_WIDGETS 0 +#if LV_USE_DEMO_WIDGETS +#define LV_DEMO_WIDGETS_SLIDESHOW 0 +#endif + +/*Printer demo, optimized for 800x480*/ +#define LV_USE_DEMO_PRINTER 0 + +/*Demonstrate the usage of encoder and keyboard*/ +#define LV_USE_DEMO_KEYPAD_AND_ENCODER 0 + +/*Benchmark your system*/ +#define LV_USE_DEMO_BENCHMARK 0 + +/*Stress test for LVGL*/ +#define LV_USE_DEMO_STRESS 0 + +/*Music player demo*/ +#define LV_USE_DEMO_MUSIC 1 +#if LV_USE_DEMO_MUSIC +# define LV_DEMO_MUSIC_SQUARE 0 +# define LV_DEMO_MUSIC_LANDSCAPE 0 +# define LV_DEMO_MUSIC_ROUND 0 +# define LV_DEMO_MUSIC_LARGE 0 +# define LV_DEMO_MUSIC_AUTO_PLAY 0 +#endif + +#endif /*LV_DEMO_CONF_H*/ + +#endif /*End of "Content enable"*/ \ No newline at end of file diff --git a/src/main copy b/src/main copy new file mode 100644 index 0000000..0671e4f --- /dev/null +++ b/src/main copy @@ -0,0 +1,541 @@ +#include + +#include + +// ESP32でLovyanGFXを独自設定で利用する場合の設定例 + +/// 独自の設定を行うクラスを、LGFX_Deviceから派生して作成します。 +class LGFX : public lgfx::LGFX_Device +{ + /* + クラス名は"LGFX"から別の名前に変更しても構いません。 + AUTODETECTと併用する場合は"LGFX"は使用されているため、LGFX以外の名前に変更してください。 + また、複数枚のパネルを同時使用する場合もそれぞれに異なる名前を付けてください。 + ※ クラス名を変更する場合はコンストラクタの名前も併せて同じ名前に変更が必要です。 + + 名前の付け方は自由に決めて構いませんが、設定が増えた場合を想定し、 + 例えばESP32 DevKit-CでSPI接続のILI9341の設定を行った場合、 + LGFX_DevKitC_SPI_ILI9341 + のような名前にし、ファイル名とクラス名を一致させておくことで、利用時に迷いにくくなります。 + //*/ + + // 接続するパネルの型にあったインスタンスを用意します。 + // lgfx::Panel_GC9A01 _panel_instance; + // lgfx::Panel_GDEW0154M09 _panel_instance; + // lgfx::Panel_HX8357B _panel_instance; + // lgfx::Panel_HX8357D _panel_instance; + // lgfx::Panel_ILI9163 _panel_instance; + // lgfx::Panel_ILI9341 _panel_instance; + // lgfx::Panel_ILI9342 _panel_instance; + // lgfx::Panel_ILI9481 _panel_instance; + // lgfx::Panel_ILI9486 _panel_instance; + // lgfx::Panel_ILI9488 _panel_instance; + // lgfx::Panel_IT8951 _panel_instance; + // lgfx::Panel_RA8875 _panel_instance; + // lgfx::Panel_SH110x _panel_instance; // SH1106, SH1107 + // lgfx::Panel_SSD1306 _panel_instance; + // lgfx::Panel_SSD1327 _panel_instance; + // lgfx::Panel_SSD1331 _panel_instance; + // lgfx::Panel_SSD1351 _panel_instance; // SSD1351, SSD1357 + // lgfx::Panel_SSD1963 _panel_instance; + // lgfx::Panel_ST7735 _panel_instance; + // lgfx::Panel_ST7735S _panel_instance; + lgfx::Panel_ST7789 _panel_instance; + // lgfx::Panel_ST7796 _panel_instance; + + // パネルを接続するバスの種類にあったインスタンスを用意します。 + lgfx::Bus_SPI _bus_instance; // SPIバスのインスタンス + // lgfx::Bus_I2C _bus_instance; // I2Cバスのインスタンス + // lgfx::Bus_Parallel8 _bus_instance; // 8ビットパラレルバスのインスタンス + + // バックライト制御が可能な場合はインスタンスを用意します。(必要なければ削除) + // lgfx::Light_PWM _light_instance; + + // タッチスクリーンの型にあったインスタンスを用意します。(必要なければ削除) + // lgfx::Touch_CST816S _touch_instance; + // lgfx::Touch_FT5x06 _touch_instance; // FT5206, FT5306, FT5406, FT6206, FT6236, FT6336, FT6436 + // lgfx::Touch_GSL1680E_800x480 _touch_instance; // GSL_1680E, 1688E, 2681B, 2682B + // lgfx::Touch_GSL1680F_800x480 _touch_instance; + // lgfx::Touch_GSL1680F_480x272 _touch_instance; + // lgfx::Touch_GSLx680_320x320 _touch_instance; + // lgfx::Touch_GT911 _touch_instance; + // lgfx::Touch_STMPE610 _touch_instance; + // lgfx::Touch_TT21xxx _touch_instance; // TT21100 + // lgfx::Touch_XPT2046 _touch_instance; + +public: + // コンストラクタを作成し、ここで各種設定を行います。 + // クラス名を変更した場合はコンストラクタも同じ名前を指定してください。 + LGFX(void) + { + { // バス制御の設定を行います。 + auto cfg = _bus_instance.config(); // バス設定用の構造体を取得します。 + + // SPIバスの設定 + cfg.spi_host = SPI2_HOST; // 使用するSPIを選択 ESP32-S2,C3 : SPI2_HOST or SPI3_HOST / ESP32 : VSPI_HOST or HSPI_HOST + // ※ ESP-IDFバージョンアップに伴い、VSPI_HOST , HSPI_HOSTの記述は非推奨になるため、エラーが出る場合は代わりにSPI2_HOST , SPI3_HOSTを使用してください。 + cfg.spi_mode = 0; // SPI通信モードを設定 (0 ~ 3) + cfg.freq_write = 40000000; // 送信時のSPIクロック (最大80MHz, 80MHzを整数で割った値に丸められます) + cfg.freq_read = 16000000; // 受信時のSPIクロック + cfg.spi_3wire = true; // 受信をMOSIピンで行う場合はtrueを設定 + cfg.use_lock = true; // トランザクションロックを使用する場合はtrueを設定 + cfg.dma_channel = SPI_DMA_CH_AUTO; // 使用するDMAチャンネルを設定 (0=DMA不使用 / 1=1ch / 2=ch / SPI_DMA_CH_AUTO=自動設定) + // ※ ESP-IDFバージョンアップに伴い、DMAチャンネルはSPI_DMA_CH_AUTO(自動設定)が推奨になりました。1ch,2chの指定は非推奨になります。 + cfg.pin_sclk = 2; // SPIのSCLKピン番号を設定 + cfg.pin_mosi = 3; // SPIのMOSIピン番号を設定 + cfg.pin_miso = -1; // SPIのMISOピン番号を設定 (-1 = disable) + cfg.pin_dc = 8; // SPIのD/Cピン番号を設定 (-1 = disable) + // SDカードと共通のSPIバスを使う場合、MISOは省略せず必ず設定してください。 + //*/ + /* + // I2Cバスの設定 + cfg.i2c_port = 0; // 使用するI2Cポートを選択 (0 or 1) + cfg.freq_write = 400000; // 送信時のクロック + cfg.freq_read = 400000; // 受信時のクロック + cfg.pin_sda = 21; // SDAを接続しているピン番号 + cfg.pin_scl = 22; // SCLを接続しているピン番号 + cfg.i2c_addr = 0x3C; // I2Cデバイスのアドレス + //*/ + /* + // 8ビットパラレルバスの設定 + cfg.i2s_port = I2S_NUM_0; // 使用するI2Sポートを選択 (I2S_NUM_0 or I2S_NUM_1) (ESP32のI2S LCDモードを使用します) + cfg.freq_write = 20000000; // 送信クロック (最大20MHz, 80MHzを整数で割った値に丸められます) + cfg.pin_wr = 4; // WR を接続しているピン番号 + cfg.pin_rd = 2; // RD を接続しているピン番号 + cfg.pin_rs = 15; // RS(D/C)を接続しているピン番号 + cfg.pin_d0 = 12; // D0を接続しているピン番号 + cfg.pin_d1 = 13; // D1を接続しているピン番号 + cfg.pin_d2 = 26; // D2を接続しているピン番号 + cfg.pin_d3 = 25; // D3を接続しているピン番号 + cfg.pin_d4 = 17; // D4を接続しているピン番号 + cfg.pin_d5 = 16; // D5を接続しているピン番号 + cfg.pin_d6 = 27; // D6を接続しているピン番号 + cfg.pin_d7 = 14; // D7を接続しているピン番号 + //*/ + + _bus_instance.config(cfg); // 設定値をバスに反映します。 + _panel_instance.setBus(&_bus_instance); // バスをパネルにセットします。 + } + + { // 表示パネル制御の設定を行います。 + auto cfg = _panel_instance.config(); // 表示パネル設定用の構造体を取得します。 + + cfg.pin_cs = 5; // CSが接続されているピン番号 (-1 = disable) + cfg.pin_rst = 7; // RSTが接続されているピン番号 (-1 = disable) + cfg.pin_busy = -1; // BUSYが接続されているピン番号 (-1 = disable) + + // ※ 以下の設定値はパネル毎に一般的な初期値が設定されていますので、不明な項目はコメントアウトして試してみてください。 + + cfg.panel_width = 135; // 実際に表示可能な幅 + cfg.panel_height = 240; // 実際に表示可能な高さ + cfg.offset_x = 53; // パネルのX方向オフセット量 + cfg.offset_y = 40; // パネルのY方向オフセット量 + cfg.offset_rotation = 0; // 回転方向の値のオフセット 0~7 (4~7は上下反転) + cfg.dummy_read_pixel = 8; // ピクセル読出し前のダミーリードのビット数 + cfg.dummy_read_bits = 1; // ピクセル以外のデータ読出し前のダミーリードのビット数 + cfg.readable = true; // データ読出しが可能な場合 trueに設定 + cfg.invert = false; // パネルの明暗が反転してしまう場合 trueに設定 + cfg.rgb_order = false; // パネルの赤と青が入れ替わってしまう場合 trueに設定 + cfg.dlen_16bit = false; // 16bitパラレルやSPIでデータ長を16bit単位で送信するパネルの場合 trueに設定 + cfg.bus_shared = true; // SDカードとバスを共有している場合 trueに設定(drawJpgFile等でバス制御を行います) + + // 以下はST7735やILI9163のようにピクセル数が可変のドライバで表示がずれる場合にのみ設定してください。 + // cfg.memory_width = 240; // ドライバICがサポートしている最大の幅 + // cfg.memory_height = 320; // ドライバICがサポートしている最大の高さ + + _panel_instance.config(cfg); + } + + // //* + // { // バックライト制御の設定を行います。(必要なければ削除) + // auto cfg = _light_instance.config(); // バックライト設定用の構造体を取得します。 + + // cfg.pin_bl = 32; // バックライトが接続されているピン番号 + // cfg.invert = false; // バックライトの輝度を反転させる場合 true + // cfg.freq = 44100; // バックライトのPWM周波数 + // cfg.pwm_channel = 7; // 使用するPWMのチャンネル番号 + + // _light_instance.config(cfg); + // _panel_instance.setLight(&_light_instance); // バックライトをパネルにセットします。 + // } + // //*/ + + // //* + // { // タッチスクリーン制御の設定を行います。(必要なければ削除) + // auto cfg = _touch_instance.config(); + + // cfg.x_min = 0; // タッチスクリーンから得られる最小のX値(生の値) + // cfg.x_max = 239; // タッチスクリーンから得られる最大のX値(生の値) + // cfg.y_min = 0; // タッチスクリーンから得られる最小のY値(生の値) + // cfg.y_max = 319; // タッチスクリーンから得られる最大のY値(生の値) + // cfg.pin_int = 38; // INTが接続されているピン番号 + // cfg.bus_shared = true; // 画面と共通のバスを使用している場合 trueを設定 + // cfg.offset_rotation = 0;// 表示とタッチの向きのが一致しない場合の調整 0~7の値で設定 + + // // SPI接続の場合 + // cfg.spi_host = VSPI_HOST;// 使用するSPIを選択 (HSPI_HOST or VSPI_HOST) + // cfg.freq = 1000000; // SPIクロックを設定 + // cfg.pin_sclk = 18; // SCLKが接続されているピン番号 + // cfg.pin_mosi = 23; // MOSIが接続されているピン番号 + // cfg.pin_miso = 19; // MISOが接続されているピン番号 + // cfg.pin_cs = 5; // CSが接続されているピン番号 + + // // I2C接続の場合 + // cfg.i2c_port = 1; // 使用するI2Cを選択 (0 or 1) + // cfg.i2c_addr = 0x38; // I2Cデバイスアドレス番号 + // cfg.pin_sda = 23; // SDAが接続されているピン番号 + // cfg.pin_scl = 32; // SCLが接続されているピン番号 + // cfg.freq = 400000; // I2Cクロックを設定 + + // _touch_instance.config(cfg); + // _panel_instance.setTouch(&_touch_instance); // タッチスクリーンをパネルにセットします。 + // } + // //*/ + + setPanel(&_panel_instance); // 使用するパネルをセットします。 + } +}; + +// 準備したクラスのインスタンスを作成します。 +static LGFX lcd; +static LGFX_Sprite sprite(&lcd); +// void setup(void) +// { +// // SPIバスとパネルの初期化を実行すると使用可能になります。 +// display.init(); + +// display.setTextSize((std::max(display.width(), display.height()) + 255) >> 8); + +// // タッチが使用可能な場合のキャリブレーションを行います。(省略可) +// if (display.touch()) +// { +// if (display.width() < display.height()) +// display.setRotation(display.getRotation() ^ 1); + +// // 画面に案内文章を描画します。 +// display.setTextDatum(textdatum_t::middle_center); +// display.drawString("touch the arrow marker.", display.width() >> 1, display.height() >> 1); +// display.setTextDatum(textdatum_t::top_left); + +// // タッチを使用する場合、キャリブレーションを行います。画面の四隅に表示される矢印の先端を順にタッチしてください。 +// std::uint16_t fg = TFT_WHITE; +// std::uint16_t bg = TFT_BLACK; +// if (display.isEPD()) +// std::swap(fg, bg); +// display.calibrateTouch(nullptr, fg, bg, std::max(display.width(), display.height()) >> 3); +// } + +// display.fillScreen(TFT_BLACK); +// } + +// uint32_t count = ~0; +// void loop(void) +// { +// display.startWrite(); +// display.setRotation(++count & 7); +// display.setColorDepth((count & 8) ? 16 : 24); + +// display.setTextColor(TFT_WHITE); +// display.drawNumber(display.getRotation(), 16, 0); + +// display.setTextColor(0xFF0000U); +// display.drawString("R", 30, 16); +// display.setTextColor(0x00FF00U); +// display.drawString("G", 40, 16); +// display.setTextColor(0x0000FFU); +// display.drawString("B", 50, 16); + +// display.drawRect(30, 30, display.width() - 60, display.height() - 60, count * 7); +// display.drawFastHLine(0, 0, 10); + +// display.endWrite(); + +// int32_t x, y; +// if (display.getTouch(&x, &y)) +// { +// display.fillRect(x - 2, y - 2, 5, 5, count * 7); +// } +// } + +void setup(void) +{ +// 最初に初期化関数を呼び出します。 + lcd.init(); + + +// 回転方向を 0~3 の4方向から設定します。(4~7を使用すると上下反転になります。) + lcd.setRotation(1); + + +// バックライトの輝度を 0~255 の範囲で設定します。 + lcd.setBrightness(128); + + +// 必要に応じてカラーモードを設定します。(初期値は16) +// 16の方がSPI通信量が少なく高速に動作しますが、赤と青の諧調が5bitになります。 +// 24の方がSPI通信量が多くなりますが、諧調表現が綺麗になります。 +//lcd.setColorDepth(16); // RGB565の16ビットに設定 + lcd.setColorDepth(24); // RGB888の24ビットに設定(表示される色数はパネル性能によりRGB666の18ビットになります) + + +// 基本的な図形の描画関数は以下の通りです。 +/* + fillScreen ( color); // 画面全体の塗り潰し + drawPixel ( x, y , color); // 点 + drawFastVLine ( x, y , h , color); // 垂直線 + drawFastHLine ( x, y, w , color); // 水平線 + drawRect ( x, y, w, h , color); // 矩形の外周 + fillRect ( x, y, w, h , color); // 矩形の塗り + drawRoundRect ( x, y, w, h, r, color); // 角丸の矩形の外周 + fillRoundRect ( x, y, w, h, r, color); // 角丸の矩形の塗り + drawCircle ( x, y , r, color); // 円の外周 + fillCircle ( x, y , r, color); // 円の塗り + drawEllipse ( x, y, rx, ry , color); // 楕円の外周 + fillEllipse ( x, y, rx, ry , color); // 楕円の塗り + drawLine ( x0, y0, x1, y1 , color); // 2点間の直線 + drawTriangle ( x0, y0, x1, y1, x2, y2, color); // 3点間の三角形の外周 + fillTriangle ( x0, y0, x1, y1, x2, y2, color); // 3点間の三角形の塗り + drawBezier ( x0, y0, x1, y1, x2, y2, color); // 3点間のベジエ曲線 + drawBezier ( x0, y0, x1, y1, x2, y2, x3, y3, color); // 4点間のベジエ曲線 + drawArc ( x, y, r0, r1, angle0, angle1, color); // 円弧の外周 + fillArc ( x, y, r0, r1, angle0, angle1, color); // 円弧の塗り +*/ + + +// 例えばdrawPixelで点を書く場合は、引数は X座標,Y座標,色 の3つ。 + lcd.drawPixel(0, 0, 0xFFFF); // 座標0:0に白の点を描画 + + +// カラーコードを生成する関数が用意されており、色の指定に使用できます。 +// 引数は、赤,緑,青をそれぞれ 0~255で指定します。 +// 色情報の欠落を防ぐため、color888を使う事を推奨します。 + lcd.drawFastVLine(2, 0, 100, lcd.color888(255, 0, 0)); // 赤で垂直の線を描画 + lcd.drawFastVLine(4, 0, 100, lcd.color565( 0, 255, 0)); // 緑で垂直の線を描画 + lcd.drawFastVLine(6, 0, 100, lcd.color332( 0, 0, 255)); // 青で垂直の線を描画 + + +// カラーコード生成関数を使用しない場合は以下のようになります。 +// RGB888 24ビットで指定 uint32_t型 +// RGB565 16ビットで指定 uint16_t型、int32_t型 +// RGB332 8ビットで指定 uint8_t型 + +// uint32_t型を使用すると、RGB888の24ビットとして扱われます。 +// 16進数2桁で赤緑青の順に記述できます。 +// uint32_t型の変数を使うか、末尾にUを付けるか、uint32_t型にキャストして使用します。 + uint32_t red = 0xFF0000; + lcd.drawFastHLine(0, 2, 100, red); // 赤で水平の線を描画 + lcd.drawFastHLine(0, 4, 100, 0x00FF00U); // 緑で水平の線を描画 + lcd.drawFastHLine(0, 6, 100, (uint32_t)0xFF); // 青で水平の線を描画 + + +// uint16_t型およびint32_t型を使用すると、RGB565の16ビットとして扱われます。 +// 特別な書き方をしない場合はint32_t型として扱われるので、この方式になります。 +// (AdafruitGFX や TFT_eSPI との互換性のために、このようにしています。) + uint16_t green = 0x07E0; + lcd.drawRect(10, 10, 50, 50, 0xF800); // 赤で矩形の外周を描画 + lcd.drawRect(12, 12, 50, 50, green); // 緑で矩形の外周を描画 + lcd.drawRect(14, 14, 50, 50, (uint16_t)0x1F); // 青で矩形の外周を描画 + + +// int8_t型、uint8_t型を使用すると、RGB332の8ビットとして扱われます。 + uint8_t blue = 0x03; + lcd.fillRect(20, 20, 20, 20, (uint8_t)0xE0); // 赤で矩形の塗りを描画 + lcd.fillRect(30, 30, 20, 20, (uint8_t)0x1C); // 緑で矩形の塗りを描画 + lcd.fillRect(40, 40, 20, 20, blue); // 青で矩形の塗りを描画 + + +// 描画関数の引数の色は省略できます。 +// 省略した場合、setColor関数で設定した色 または最後に使用した色を描画色として使用します。 +// 同じ色で繰り返し描画する場合は、省略した方がわずかに速く動作します。 + lcd.setColor(0xFF0000U); // 描画色に赤色を指定 + lcd.fillCircle ( 40, 80, 20 ); // 赤色で円の塗り + lcd.fillEllipse( 80, 40, 10, 20); // 赤色で楕円の塗り + lcd.fillArc ( 80, 80, 20, 10, 0, 90); // 赤色で円弧の塗り + lcd.fillTriangle(80, 80, 60, 80, 80, 60); // 赤色で三角の塗り + lcd.setColor(0x0000FFU); // 描画色に青色を指定 + lcd.drawCircle ( 40, 80, 20 ); // 青色で円の外周 + lcd.drawEllipse( 80, 40, 10, 20); // 青色で楕円の外周 + lcd.drawArc ( 80, 80, 20, 10, 0, 90); // 青色で円弧の外周 + lcd.drawTriangle(60, 80, 80, 80, 80, 60); // 青色で三角の外周 + lcd.setColor(0x00FF00U); // 描画色に緑色を指定 + lcd.drawBezier( 60, 80, 80, 80, 80, 60); // 緑色で二次ベジエ曲線 + lcd.drawBezier( 60, 80, 80, 20, 20, 80, 80, 60);// 緑色で三次ベジエ曲線 + +// グラデーションの線を描画するdrawGradientLine は色の指定を省略できません。 + lcd.drawGradientLine( 0, 80, 80, 0, 0xFF0000U, 0x0000FFU);// 赤から青へのグラデーション直線 + + delay(1000); + +// clearまたはfillScreenで画面全体を塗り潰せます。 +// fillScreenはfillRectの画面全体を指定したのと同じで、色の指定は描画色の扱いになります。 + lcd.fillScreen(0xFFFFFFu); // 白で塗り潰し + lcd.setColor(0x00FF00u); // 描画色に緑色を指定 + lcd.fillScreen(); // 緑で塗り潰し + +// clearは描画系の関数とは別で背景色という扱いで色を保持しています。 +// 背景色は出番が少ないですが、スクロール機能使用時の隙間を塗る色としても使用されます。 + lcd.clear(0xFFFFFFu); // 背景色に白を指定して塗り潰し + lcd.setBaseColor(0x000000u);// 背景色に黒を指定 + lcd.clear(); // 黒で塗り潰し + + +// SPIバスの確保と解放は描画関数を呼び出した時に自動的に行われますが、 +// 描画スピードを重視する場合は、描画処理の前後に startWriteとendWriteを使用します。 +// SPIバスの確保と解放が抑制され、速度が向上します。 +// 電子ペーパー(EPD)の場合、startWrite()以降の描画は、endWrite()を呼ぶ事で画面に反映されます。 + lcd.drawLine(0, 1, 39, 40, red); // SPIバス確保、線を描画、SPIバス解放 + lcd.drawLine(1, 0, 40, 39, blue); // SPIバス確保、線を描画、SPIバス解放 + lcd.startWrite(); // SPIバス確保 + lcd.drawLine(38, 0, 0, 38, 0xFFFF00U); // 線を描画 + lcd.drawLine(39, 1, 1, 39, 0xFF00FFU); // 線を描画 + lcd.drawLine(40, 2, 2, 40, 0x00FFFFU); // 線を描画 + lcd.endWrite(); // SPIバス解放 + + +// startWriteとendWriteは呼出し回数を内部でカウントしており、 +// 繰り返し呼び出した場合は最初と最後のみ動作します。 +// startWriteとendWriteは必ず対になるように使用してください。 +// (SPIバスを占有して構わない場合は、最初にstartWriteを一度呼び、endWriteしない使い方も可能です。) + lcd.startWrite(); // カウント+1、SPIバス確保 + lcd.startWrite(); // カウント+1 + lcd.startWrite(); // カウント+1 + lcd.endWrite(); // カウント-1 + lcd.endWrite(); // カウント-1 + lcd.endWrite(); // カウント-1、SPIバス解放 + lcd.endWrite(); // 何もしない +// なお過剰にendWriteを呼び出した場合は何も行わず、カウントがマイナスになることもありません。 + + +// startWriteのカウントの状態に依らず、強制的にSPIバスを解放・確保したい場合は、 +// endTransaction・beginTransactionを使用します。 +// カウントはクリアされないので、辻褄が合わなくならないよう注意してください。 + lcd.startWrite(); // カウント+1、SPIバス確保 + lcd.startWrite(); // カウント+1 + lcd.drawPixel(0, 0); // 描画 + lcd.endTransaction(); // SPIバス解放 + // ここで他のSPIデバイスの使用が可能 + // 同じSPIバスの別のデバイス(SDカード等)を使う場合、 + // 必ずSPIバスが解放された状態で行ってください。 + lcd.beginTransaction(); // SPIバスの確保 + lcd.drawPixel(0, 0); // 描画 + lcd.endWrite(); // カウント-1 + lcd.endWrite(); // カウント-1、SPIバス解放 + + + +// drawPixelとは別に、writePixelという点を描画する関数があります。 +// drawPixelは必要に応じてSPIバスの確保を行うのに対し、 +// writePixelはSPIバスの状態をチェックしません。 + lcd.startWrite(); // SPIバス確保 + for (uint32_t x = 0; x < 128; ++x) { + for (uint32_t y = 0; y < 128; ++y) { + lcd.writePixel(x, y, lcd.color888( x*2, x + y, y*2)); + } + } + lcd.endWrite(); // SPIバス解放 +// 名前が write~ で始まる関数は全て明示的にstartWriteを呼び出しておく必要があります。 +// writePixel、writeFastVLine、writeFastHLine、writeFillRect が該当します。 + + delay(1000); + +// スプライト(オフスクリーン)への描画も同様の描画関数が使えます。 +// 最初にスプライトの色深度をsetColorDepthで指定します。(省略した場合は16として扱われます。) +//sprite.setColorDepth(1); // 1ビット( 2色)パレットモードに設定 +//sprite.setColorDepth(2); // 2ビット( 4色)パレットモードに設定 +//sprite.setColorDepth(4); // 4ビット(16色)パレットモードに設定 +//sprite.setColorDepth(8); // RGB332の8ビットに設定 +//sprite.setColorDepth(16); // RGB565の16ビットに設定 + sprite.setColorDepth(24); // RGB888の24ビットに設定 + + +// ※ setColorDepth(8);を設定後に createPalette()を呼ぶ事で、256色パレットモードになります +// sprite.createPalette(); + + +// createSpriteで幅と高さを指定してメモリを確保します。 +// 消費するメモリは色深度と面積に比例します。大きすぎるとメモリ確保に失敗しますので注意してください。 + sprite.createSprite(65, 65); // 幅65、高さ65でスプライトを作成。 + + for (uint32_t x = 0; x < 64; ++x) { + for (uint32_t y = 0; y < 64; ++y) { + sprite.drawPixel(x, y, lcd.color888(3 + x*4, (x + y)*2, 3 + y*4)); // スプライトに描画 + } + } + sprite.drawRect(0, 0, 65, 65, 0xFFFF); + +// 作成したスプライトはpushSpriteで任意の座標に出力できます。 +// 出力先はインスタンス作成時に引数で渡したLGFXになります。 + sprite.pushSprite(64, 0); // lcdの座標64,0にスプライトを描画 + +// spriteのインスタンス作成時に描画先のポインタを渡していない場合や、 +// 複数のLGFXがある場合などは、出力先を第一引数に指定してpushSpriteすることもできます。 + sprite.pushSprite(&lcd, 0, 64); // lcdの座標0,64にスプライトを描画 + + delay(1000); + + // pushRotateZoomでスプライトを回転拡大縮小して描画できます。 + // setPivotで設定した座標が回転中心として扱われ、描画先の座標に回転中心が位置するように描画されます。 + sprite.setPivot(32, 32); // 座標32,32を中心として扱う + int32_t center_x = lcd.width()/2; + int32_t center_y = lcd.height()/2; + lcd.startWrite(); + for (int angle = 0; angle <= 360; ++angle) { + sprite.pushRotateZoom(center_x, center_y, angle, 2.5, 3); // 画面中心に角度angle、幅2.5倍、高さ3倍で描画 + + if ((angle % 36) == 0) lcd.display(); // 電子ペーパーの場合の表示更新を 36回に一度行う + } + lcd.endWrite(); + + delay(1000); + + // 使用しなくなったスプライトのメモリを解放するには deleteSprite を使用します。 + sprite.deleteSprite(); + + // deleteSprite の後でも、同じインスタンスの再利用が可能です。 + sprite.setColorDepth(4); // 4ビット(16色)パレットモードに設定 + sprite.createSprite(65, 65); + + // パレットモードのスプライトでは、描画関数の引数の色をパレット番号として扱います。 + // pushSprite等で描画する際に、パレットを参照して実際の描画色が決まります。 + + // 4ビット(16色)パレットモードの場合、パレット番号は0~15が使用可能です。 + // パレットの初期色は、0が黒,末尾のパレットが白で、0から末尾にかけてグラデーションになっています。 + // パレットの色を設定するには setPaletteColor を使用します。 + sprite.setPaletteColor(1, 0x0000FFU); // パレット1番を青に設定 + sprite.setPaletteColor(2, 0x00FF00U); // パレット2番を緑に設定 + sprite.setPaletteColor(3, 0xFF0000U); // パレット3番を赤に設定 + + sprite.fillRect(10, 10, 45, 45, 1); // パレット1番で矩形の塗り + sprite.fillCircle(32, 32, 22, 2); // パレット2番で円の塗り + sprite.fillTriangle(32, 12, 15, 43, 49, 43, 3); // パレット3番で三角の塗り + + // pushSpriteの最後の引数で、描画しない色を指定することができます。 + sprite.pushSprite( 0, 0, 0); // パレット0を透過扱いでスプライトを描画 + sprite.pushSprite(65, 0, 1); // パレット1を透過扱いでスプライトを描画 + sprite.pushSprite( 0, 65, 2); // パレット2を透過扱いでスプライトを描画 + sprite.pushSprite(65, 65, 3); // パレット3を透過扱いでスプライトを描画 + + delay(5000); + + lcd.startWrite(); // ここでstartWrite()することで、SPIバスを占有したままにする。 +} + +void loop(void) +{ + static int count = 0; + static int a = 0; + static int x = 0; + static int y = 0; + static float zoom = 3; + ++count; + if ((a += 1) >= 360) a -= 360; + if ((x += 2) >= lcd.width()) x -= lcd.width(); + if ((y += 1) >= lcd.height()) y -= lcd.height(); + sprite.setPaletteColor(1, lcd.color888( 0, 0, count & 0xFF)); + sprite.setPaletteColor(2, lcd.color888( 0,~count & 0xFF, 0)); + sprite.setPaletteColor(3, lcd.color888( count & 0xFF, 0, 0)); + + sprite.pushRotateZoom(x, y, a, zoom, zoom, 0); + + if ((count % 100) == 0) lcd.display(); // 電子ペーパーの場合の表示更新を 100回に一度行う +} \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..2b8809d --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,390 @@ +#include +#include + +INA226 ina(Wire); + +// #include +// #include "misakiUTF16FontData.h" +#include +// ESP32でLovyanGFXを独自設定で利用する場合の設定例 + +/// 独自の設定を行うクラスを、LGFX_Deviceから派生して作成します。 +class LGFX : public lgfx::LGFX_Device +{ + lgfx::Panel_ST7789 _panel_instance; + lgfx::Bus_SPI _bus_instance; // SPIバスのインスタンス + lgfx::Light_PWM _light_instance; + +public: + // コンストラクタを作成し、ここで各種設定を行います。 + // クラス名を変更した場合はコンストラクタも同じ名前を指定してください。 + LGFX(void) + { + { // バス制御の設定を行います。 + auto cfg = _bus_instance.config(); // バス設定用の構造体を取得します。 + + // SPIバスの設定 + cfg.spi_host = SPI2_HOST; // 使用するSPIを選択 ESP32-S2,C3 : SPI2_HOST or SPI3_HOST / ESP32 : VSPI_HOST or HSPI_HOST + // ※ ESP-IDFバージョンアップに伴い、VSPI_HOST , HSPI_HOSTの記述は非推奨になるため、エラーが出る場合は代わりにSPI2_HOST , SPI3_HOSTを使用してください。 + cfg.spi_mode = 3; // SPI通信モードを設定 (0 ~ 3) + cfg.freq_write = 80000000; // 送信時のSPIクロック (最大80MHz, 80MHzを整数で割った値に丸められます) + cfg.freq_read = 16000000; // 受信時のSPIクロック + cfg.spi_3wire = true; // 受信をMOSIピンで行う場合はtrueを設定 + cfg.use_lock = true; // トランザクションロックを使用する場合はtrueを設定 + cfg.dma_channel = SPI_DMA_CH_AUTO; // 使用するDMAチャンネルを設定 (0=DMA不使用 / 1=1ch / 2=ch / SPI_DMA_CH_AUTO=自動設定) + // ※ ESP-IDFバージョンアップに伴い、DMAチャンネルはSPI_DMA_CH_AUTO(自動設定)が推奨になりました。1ch,2chの指定は非推奨になります。 + cfg.pin_sclk = 4; // SPIのSCLKピン番号を設定 + cfg.pin_mosi = 5; // SPIのMOSIピン番号を設定 + cfg.pin_miso = -1; // SPIのMISOピン番号を設定 (-1 = disable) + cfg.pin_dc = 6; // SPIのD/Cピン番号を設定 (-1 = disable) + // SDカードと共通のSPIバスを使う場合、MISOは省略せず必ず設定してください。 + _bus_instance.config(cfg); // 設定値をバスに反映します。 + _panel_instance.setBus(&_bus_instance); // バスをパネルにセットします。 + } + + { // 表示パネル制御の設定を行います。 + auto cfg = _panel_instance.config(); // 表示パネル設定用の構造体を取得します。 + + cfg.pin_cs = 8; // CSが接続されているピン番号 (-1 = disable) + cfg.pin_rst = 7; // RSTが接続されているピン番号 (-1 = disable) + cfg.pin_busy = -1; // BUSYが接続されているピン番号 (-1 = disable) + + // ※ 以下の設定値はパネル毎に一般的な初期値が設定されていますので、不明な項目はコメントアウトして試してみてください。 + + cfg.panel_width = 172; // 実際に表示可能な幅 + cfg.panel_height = 320; // 実際に表示可能な高さ + cfg.offset_x = 34; // パネルのX方向オフセット量 + cfg.offset_y = 0; // パネルのY方向オフセット量 + cfg.offset_rotation = 3; // 回転方向の値のオフセット 0~7 (4~7は上下反転) + cfg.dummy_read_pixel = 8; // ピクセル読出し前のダミーリードのビット数 + cfg.dummy_read_bits = 1; // ピクセル以外のデータ読出し前のダミーリードのビット数 + cfg.readable = true; // データ読出しが可能な場合 trueに設定 + cfg.invert = false; // パネルの明暗が反転してしまう場合 trueに設定 + cfg.rgb_order = false; // パネルの赤と青が入れ替わってしまう場合 trueに設定 + cfg.dlen_16bit = false; // 16bitパラレルやSPIでデータ長を16bit単位で送信するパネルの場合 trueに設定 + cfg.bus_shared = true; // SDカードとバスを共有している場合 trueに設定(drawJpgFile等でバス制御を行います) + + // 以下はST7735やILI9163のようにピクセル数が可変のドライバで表示がずれる場合にのみ設定してください。 + // cfg.memory_width = 240; // ドライバICがサポートしている最大の幅 + // cfg.memory_height = 320; // ドライバICがサポートしている最大の高さ + + _panel_instance.config(cfg); + } + + { // バックライト制御の設定を行います。(必要なければ削除) + auto cfg = _light_instance.config(); // バックライト設定用の構造体を取得します。 + + cfg.pin_bl = 10; // バックライトが接続されているピン番号 + cfg.invert = true; // バックライトの輝度を反転させる場合 true + cfg.freq = 44100; // バックライトのPWM周波数 + cfg.pwm_channel = 7; // 使用するPWMのチャンネル番号 + + _light_instance.config(cfg); + _panel_instance.setLight(&_light_instance); // バックライトをパネルにセットします。 + } + + setPanel(&_panel_instance); // 使用するパネルをセットします。 + } +}; + +static LGFX lcd; +// static LGFX_Sprite sprite(&lcd); + +void drawGradation(void) +{ + // 背景にグラデーションを描画する + lcd.startWrite(); + lcd.setAddrWindow(0, 0, lcd.width(), lcd.height()); + for (int y = 0; y < lcd.height(); ++y) + { + for (int x = 0; x < lcd.width(); ++x) + { + lcd.writeColor(lcd.color888(x >> 1, (x + y) >> 2, y >> 1), 1); + } + } + lcd.endWrite(); +} + +void checkConfig() +{ + Serial.print("Mode: "); + switch (ina.getMode()) + { + case INA226_MODE_POWER_DOWN: + Serial.println("Power-Down"); + break; + case INA226_MODE_SHUNT_TRIG: + Serial.println("Shunt Voltage, Triggered"); + break; + case INA226_MODE_BUS_TRIG: + Serial.println("Bus Voltage, Triggered"); + break; + case INA226_MODE_SHUNT_BUS_TRIG: + Serial.println("Shunt and Bus, Triggered"); + break; + case INA226_MODE_ADC_OFF: + Serial.println("ADC Off"); + break; + case INA226_MODE_SHUNT_CONT: + Serial.println("Shunt Voltage, Continuous"); + break; + case INA226_MODE_BUS_CONT: + Serial.println("Bus Voltage, Continuous"); + break; + case INA226_MODE_SHUNT_BUS_CONT: + Serial.println("Shunt and Bus, Continuous"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Samples average: "); + switch (ina.getAverages()) + { + case INA226_AVERAGES_1: + Serial.println("1 sample"); + break; + case INA226_AVERAGES_4: + Serial.println("4 samples"); + break; + case INA226_AVERAGES_16: + Serial.println("16 samples"); + break; + case INA226_AVERAGES_64: + Serial.println("64 samples"); + break; + case INA226_AVERAGES_128: + Serial.println("128 samples"); + break; + case INA226_AVERAGES_256: + Serial.println("256 samples"); + break; + case INA226_AVERAGES_512: + Serial.println("512 samples"); + break; + case INA226_AVERAGES_1024: + Serial.println("1024 samples"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Bus conversion time: "); + switch (ina.getBusConversionTime()) + { + case INA226_BUS_CONV_TIME_140US: + Serial.println("140uS"); + break; + case INA226_BUS_CONV_TIME_204US: + Serial.println("204uS"); + break; + case INA226_BUS_CONV_TIME_332US: + Serial.println("332uS"); + break; + case INA226_BUS_CONV_TIME_588US: + Serial.println("558uS"); + break; + case INA226_BUS_CONV_TIME_1100US: + Serial.println("1.100ms"); + break; + case INA226_BUS_CONV_TIME_2116US: + Serial.println("2.116ms"); + break; + case INA226_BUS_CONV_TIME_4156US: + Serial.println("4.156ms"); + break; + case INA226_BUS_CONV_TIME_8244US: + Serial.println("8.244ms"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Shunt conversion time: "); + switch (ina.getShuntConversionTime()) + { + case INA226_SHUNT_CONV_TIME_140US: + Serial.println("140uS"); + break; + case INA226_SHUNT_CONV_TIME_204US: + Serial.println("204uS"); + break; + case INA226_SHUNT_CONV_TIME_332US: + Serial.println("332uS"); + break; + case INA226_SHUNT_CONV_TIME_588US: + Serial.println("558uS"); + break; + case INA226_SHUNT_CONV_TIME_1100US: + Serial.println("1.100ms"); + break; + case INA226_SHUNT_CONV_TIME_2116US: + Serial.println("2.116ms"); + break; + case INA226_SHUNT_CONV_TIME_4156US: + Serial.println("4.156ms"); + break; + case INA226_SHUNT_CONV_TIME_8244US: + Serial.println("8.244ms"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Max possible current: "); + Serial.print(ina.getMaxPossibleCurrent()); + Serial.println(" A"); + + Serial.print("Max current: "); + Serial.print(ina.getMaxCurrent()); + Serial.println(" A"); + + Serial.print("Max shunt voltage: "); + Serial.print(ina.getMaxShuntVoltage()); + Serial.println(" V"); + + Serial.print("Max power: "); + Serial.print(ina.getMaxPower()); + Serial.println(" W"); +} + +void setup(void) +{ + lcd.init(); + lcd.fillScreen(0xFFFFFFU); + // drawGradation(); + lcd.setFont(&fonts::Font7); + // lcd.setTextDatum(textdatum_t::bottom_right); + lcd.setTextDatum(bottom_right); + // lcd.setTextColor(0x000000U, 0xFFFFFFU); + // lcd.fillScreen(0xFFFFFFU); + lcd.setTextColor(0xFFFFFFU, 0x000000U); + lcd.fillScreen(0xFFFFFFU); + lcd.setBrightness(128); + pinMode(10, OUTPUT); + digitalWrite(10, 0); + + Serial.begin(115200); + + Wire.begin(1, 0, 100000); + // Default INA226 address is 0x40 + bool success = ina.begin(); + // Check if the connection was successful, stop if not + if (!success) + { + Serial.println("Connection error"); + while (1) + ; + } + // Configure INA226 + ina.configure(INA226_AVERAGES_1, INA226_BUS_CONV_TIME_1100US, INA226_SHUNT_CONV_TIME_1100US, INA226_MODE_SHUNT_BUS_CONT); + // Calibrate INA226. Rshunt = 0.001 ohm, Max excepted current = 4A + ina.calibrate(0.001, 40); + // Display configuration + checkConfig(); +} + +unsigned short int lastX, lastY; +unsigned char firstPoint = 1; +void drawCurve(short int rawValue) +{ + unsigned short int x, y; + y = 120 - rawValue / 280; // data processing code + // 这里之所以是120-rawValue/280,与屏幕的扫描方向有关,如果出现上下颠倒的情况,可以改成120 + + if (firstPoint) // 如果是第一次画点,则无需连线,直接描点即可 + { + lcd.drawPixel(0, y); + lastX = 0; + lastY = y; + firstPoint = 0; + } + else + { + x = lastX + 1; + if (x < 320) // 不超过屏幕宽度 + { + lcd.drawLine(lastX, lastY, x, y); + lastX = x; + lastY = y; + } + else // 超出屏幕宽度,清屏,从第一个点开始绘制,实现动态更新效果 + { + lcd.fillScreen(0xFFFFFFU); // 清屏,白色背景 + lcd.drawPixel(0, y); + lastX = 0; + lastY = y; + } + } +} + +void loop(void) +{ + // Serial.print("Bus voltage: "); + // Serial.print(ina.readBusVoltage(), 5); + // Serial.println(" V"); + + // Serial.print("Bus power: "); + // Serial.print(ina.readBusPower(), 5); + // Serial.println(" W"); + + // Serial.print("Shunt voltage: "); + // Serial.print(ina.readShuntVoltage(), 5); + // Serial.println(" V"); + + // Serial.print("Shunt current: "); + // Serial.print(ina.readShuntCurrent(), 5); + // Serial.println(" A"); + + // Serial.println(""); + delay(10); + // delay(1000); + + // lcd.setFont(&fonts::Roboto_Thin_24); + lcd.setTextColor(0x000000U, 0x000000U); + lcd.setFont(&fonts::Font4); + lcd.setTextDatum(bottom_center); + // lcd.drawString("V", 180, 50); + // lcd.drawString("A", 180, 108); + // lcd.drawString("W", 180, 166); + + lcd.setTextDatum(top_left); + lcd.drawString("Current", 20, 0); + + lcd.setFont(&fonts::Font6); + lcd.setTextDatum(bottom_right); + // lcd.drawFloat(ina.readBusVoltage(), 4, 160, 58); + // lcd.drawFloat(abs(ina.readShuntCurrent()), 4, 160, 116); + // lcd.drawFloat(ina.readBusPower(), 4, 160, 174); + + lcd.setTextColor(0xFFFFFFU, 0x000000U); + + float current = abs(ina.readShuntCurrent()); + drawCurve(current * 10000); + Serial.print(current, 4); + Serial.print("\r\n"); + // lcd.drawNumber(ina.readBusVoltage(), 120, 120); + // ※ 名前が"Free"で始まるフォントは 9pt 12pt 18pt 24ptの4種類があります。 + // drawNumberTest( &fonts::Font0 ); + // drawNumberTest( &fonts::Font2 ); + // drawNumberTest( &fonts::Font4 ); + // drawNumberTest( &fonts::Font6 ); + // drawNumberTest( &fonts::Font7 ); + // drawNumberTest( &fonts::Font8 ); + // drawNumberTest( &fonts::TomThumb ); + // drawNumberTest( &fonts::FreeMono9pt7b ); + // drawNumberTest( &fonts::FreeMonoBold9pt7b ); + // drawNumberTest( &fonts::FreeMonoOblique9pt7b ); + // drawNumberTest( &fonts::FreeMonoBoldOblique9pt7b); + // drawNumberTest( &fonts::FreeSans9pt7b ); + // drawNumberTest( &fonts::FreeSansBold9pt7b ); + // drawNumberTest( &fonts::FreeSansOblique9pt7b ); + // drawNumberTest( &fonts::FreeSansBoldOblique9pt7b); + // drawNumberTest( &fonts::FreeSerif9pt7b ); + // drawNumberTest( &fonts::FreeSerifBold9pt7b ); + // drawNumberTest( &fonts::FreeSerifItalic9pt7b ); + // drawNumberTest( &fonts::FreeSerifBoldItalic9pt7b); + // drawNumberTest( &fonts::Orbitron_Light_24 ); + // drawNumberTest( &fonts::Roboto_Thin_24 ); + // drawNumberTest( &fonts::Satisfy_24 ); + // drawNumberTest( &fonts::Yellowtail_32 ); +} \ No newline at end of file diff --git a/src/misakiUTF16FontData.h b/src/misakiUTF16FontData.h new file mode 100644 index 0000000..1454711 --- /dev/null +++ b/src/misakiUTF16FontData.h @@ -0,0 +1,1093 @@ +// +// 美咲フォント 教育フォント1710字(半角+全角) by たま吉さん +// 2016/03/16 全角小文字英数字の不具合対応 +// 2016/07/10 fdata[]を競合しないよう、static宣言追加 +// 2019/01/30 fdata[]ftable[]の非AVR系対応 +// 2019/07/16 1フォントを7バイトに圧縮 + +#ifndef misakiUTF16FontData_h +#define misakiUTF16FontData_h + +#ifdef __AVR__ +PROGMEM static const uint8_t fdata[] = { +#else // __AVR__ +static const uint8_t fdata[] = { +#endif // __AVR__ +0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x40,0x40,0x40,0x00,0x40,0x00, +0xa0,0xa0,0x00,0x00,0x00,0x00,0x00,0xa0,0xe0,0xa0,0xa0,0xe0,0xa0,0x00, +0x40,0xe0,0xc0,0x60,0xe0,0x40,0x00,0x00,0x80,0x20,0x40,0x80,0x20,0x00, +0x40,0xa0,0x40,0x60,0xc0,0xe0,0x00,0x40,0x80,0x00,0x00,0x00,0x00,0x00, +0x20,0x40,0x40,0x40,0x40,0x40,0x20,0x80,0x40,0x40,0x40,0x40,0x40,0x80, +0x40,0xe0,0x40,0xa0,0x00,0x00,0x00,0x00,0x40,0x40,0xe0,0x40,0x40,0x00, +0x00,0x00,0x00,0x00,0x00,0x40,0x80,0x00,0x00,0x00,0xe0,0x00,0x00,0x00, +0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x20,0x40,0x80,0x00,0x00, +0x00,0x40,0xa0,0xe0,0xa0,0x40,0x00,0x00,0x40,0xc0,0x40,0x40,0xe0,0x00, +0x00,0xc0,0x20,0x40,0x80,0xe0,0x00,0x00,0xc0,0x20,0x40,0x20,0xc0,0x00, +0x00,0x20,0x60,0xa0,0xe0,0x20,0x00,0x00,0xe0,0x80,0xc0,0x20,0xc0,0x00, +0x00,0x60,0x80,0xc0,0xa0,0x40,0x00,0x00,0xe0,0x20,0x40,0x40,0x40,0x00, +0x00,0x40,0xa0,0x40,0xa0,0x40,0x00,0x00,0x40,0xa0,0x60,0x20,0xc0,0x00, +0x00,0x00,0x40,0x00,0x00,0x40,0x00,0x00,0x00,0x40,0x00,0x00,0x40,0x80, +0x00,0x20,0x40,0x80,0x40,0x20,0x00,0x00,0x00,0xe0,0x00,0xe0,0x00,0x00, +0x00,0x80,0x40,0x20,0x40,0x80,0x00,0x40,0xa0,0x20,0x40,0x00,0x40,0x00, +0x40,0xa0,0x20,0x60,0xa0,0x40,0x00,0x40,0xa0,0xa0,0xe0,0xa0,0xa0,0x00, +0xc0,0xa0,0xc0,0xa0,0xa0,0xc0,0x00,0x60,0x80,0x80,0x80,0x80,0x60,0x00, +0xc0,0xa0,0xa0,0xa0,0xa0,0xc0,0x00,0xe0,0x80,0xc0,0x80,0x80,0xe0,0x00, +0xe0,0x80,0xc0,0x80,0x80,0x80,0x00,0x60,0x80,0x80,0xa0,0xa0,0x60,0x00, +0xa0,0xa0,0xa0,0xe0,0xa0,0xa0,0x00,0xe0,0x40,0x40,0x40,0x40,0xe0,0x00, +0x20,0x20,0x20,0x20,0xa0,0x40,0x00,0xa0,0xa0,0xc0,0xa0,0xa0,0xa0,0x00, +0x80,0x80,0x80,0x80,0x80,0xe0,0x00,0xa0,0xe0,0xe0,0xa0,0xa0,0xa0,0x00, +0xc0,0xa0,0xa0,0xa0,0xa0,0xa0,0x00,0x40,0xa0,0xa0,0xa0,0xa0,0x40,0x00, +0xc0,0xa0,0xa0,0xc0,0x80,0x80,0x00,0x40,0xa0,0xa0,0xa0,0xa0,0x40,0x20, +0xc0,0xa0,0xa0,0xc0,0xa0,0xa0,0x00,0x60,0x80,0x40,0x20,0x20,0xc0,0x00, +0xe0,0x40,0x40,0x40,0x40,0x40,0x00,0xa0,0xa0,0xa0,0xa0,0xa0,0xe0,0x00, +0xa0,0xa0,0xa0,0xa0,0xc0,0x80,0x00,0xa0,0xa0,0xa0,0xe0,0xe0,0xa0,0x00, +0xa0,0xa0,0x40,0x40,0xa0,0xa0,0x00,0xa0,0xa0,0x40,0x40,0x40,0x40,0x00, +0xe0,0x20,0x40,0x40,0x80,0xe0,0x00,0x60,0x40,0x40,0x40,0x40,0x40,0x60, +0x80,0x40,0x20,0x10,0x08,0x04,0x02,0xc0,0x40,0x40,0x40,0x40,0x40,0xc0, +0x40,0xa0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0, +0x40,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0xa0,0xa0,0x60,0x00, +0x80,0x80,0xc0,0xa0,0xa0,0xc0,0x00,0x00,0x00,0x60,0x80,0x80,0x60,0x00, +0x20,0x20,0x60,0xa0,0xa0,0x60,0x00,0x00,0x00,0x60,0xe0,0x80,0x60,0x00, +0x60,0x40,0xe0,0x40,0x40,0x40,0x00,0x00,0x00,0x60,0xa0,0x60,0x20,0xc0, +0x80,0x80,0xc0,0xa0,0xa0,0xa0,0x00,0x40,0x00,0x40,0x40,0x40,0x40,0x00, +0x40,0x00,0x40,0x40,0x40,0x40,0x80,0x80,0x80,0xa0,0xc0,0xa0,0xa0,0x00, +0xc0,0x40,0x40,0x40,0x40,0x40,0x00,0x00,0x00,0xc0,0xe0,0xe0,0xa0,0x00, +0x00,0x00,0xc0,0xa0,0xa0,0xa0,0x00,0x00,0x00,0x40,0xa0,0xa0,0x40,0x00, +0x00,0x00,0xc0,0xa0,0xa0,0xc0,0x80,0x00,0x00,0x60,0xa0,0xa0,0x60,0x20, +0x00,0x00,0xa0,0xc0,0x80,0x80,0x00,0x00,0x00,0x60,0xc0,0x60,0xc0,0x00, +0x00,0x40,0xe0,0x40,0x40,0x60,0x00,0x00,0x00,0xa0,0xa0,0xa0,0xe0,0x00, +0x00,0x00,0xa0,0xa0,0xc0,0x80,0x00,0x00,0x00,0xa0,0xa0,0xe0,0xe0,0x00, +0x00,0x00,0xa0,0x40,0x40,0xa0,0x00,0x00,0x00,0xa0,0xa0,0x60,0x20,0xc0, +0x00,0x00,0xe0,0x20,0x40,0xe0,0x00,0x20,0x40,0x40,0x80,0x40,0x40,0x20, +0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x80,0x40,0x40,0x20,0x40,0x40,0x80, +0x04,0x3c,0x4a,0x48,0x52,0x3c,0x20,0x18,0x24,0x70,0x20,0x60,0x92,0x6c, +0xa0,0x40,0xe0,0x40,0xe0,0x40,0x00,0x1c,0x20,0x18,0x24,0x18,0x04,0x38, +0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x02,0x02,0x00, +0x40,0xa0,0x40,0x00,0x00,0x00,0x00,0x10,0x10,0xfe,0x10,0x10,0x00,0xfe, +0x08,0x10,0x00,0x00,0x00,0x00,0x00,0x3c,0x74,0x74,0x34,0x14,0x14,0x14, +0x82,0x44,0x28,0x10,0x28,0x44,0x82,0x00,0x10,0x00,0xfe,0x00,0x10,0x00, +0x10,0x28,0x28,0x44,0x7c,0x82,0x82,0x7c,0x42,0x42,0x7c,0x42,0x42,0x7c, +0x7e,0x40,0x40,0x40,0x40,0x40,0x40,0x10,0x28,0x28,0x44,0x44,0x82,0xfe, +0x7e,0x40,0x40,0x7c,0x40,0x40,0x7e,0x7e,0x02,0x04,0x08,0x10,0x20,0x7e, +0x42,0x42,0x42,0x7e,0x42,0x42,0x42,0x38,0x44,0x82,0xba,0x82,0x44,0x38, +0x38,0x10,0x10,0x10,0x10,0x10,0x38,0x42,0x44,0x48,0x50,0x68,0x44,0x42, +0x10,0x28,0x28,0x44,0x44,0x82,0x82,0x82,0xc6,0xaa,0xaa,0x92,0x92,0x82, +0x42,0x62,0x52,0x4a,0x46,0x42,0x42,0x7e,0x00,0x00,0x3c,0x00,0x00,0x7e, +0x18,0x24,0x42,0x42,0x42,0x24,0x18,0x7e,0x42,0x42,0x42,0x42,0x42,0x42, +0x7c,0x42,0x42,0x7c,0x40,0x40,0x40,0x7e,0x20,0x10,0x08,0x10,0x20,0x7e, +0xfe,0x10,0x10,0x10,0x10,0x10,0x10,0x82,0x44,0x28,0x10,0x10,0x10,0x10, +0x10,0x7c,0x92,0x92,0x92,0x7c,0x10,0x82,0x44,0x28,0x10,0x28,0x44,0x82, +0x92,0x54,0x54,0x38,0x10,0x10,0x10,0x38,0x44,0x82,0x82,0x44,0x28,0xee, +0x00,0x00,0x1a,0x24,0x48,0x4a,0x34,0x0c,0x12,0x2c,0x22,0x32,0x4c,0x40, +0x00,0x00,0x64,0x18,0x10,0x30,0x20,0x18,0x24,0x10,0x28,0x48,0x48,0x30, +0x00,0x00,0x18,0x24,0x30,0x44,0x38,0x2c,0x10,0x20,0x20,0x18,0x04,0x18, +0x00,0x00,0x2c,0x52,0x12,0x24,0x04,0x18,0x24,0x24,0x7c,0x48,0x48,0x30, +0x00,0x00,0x10,0x10,0x20,0x28,0x10,0x00,0x00,0x24,0x28,0x30,0x50,0x4c, +0x10,0x08,0x08,0x18,0x28,0x28,0x44,0x00,0x00,0x12,0x12,0x24,0x3a,0x40, +0x00,0x00,0x44,0x24,0x28,0x30,0x20,0x1c,0x20,0x3c,0x40,0x38,0x04,0x18, +0x00,0x00,0x18,0x24,0x44,0x48,0x30,0x00,0x00,0x3e,0x54,0x14,0x24,0x46, +0x00,0x00,0x1c,0x22,0x22,0x5c,0x40,0x00,0x00,0x1e,0x24,0x44,0x48,0x30, +0x00,0x00,0x3e,0x48,0x10,0x14,0x08,0x00,0x00,0x32,0x52,0x22,0x24,0x18, +0x04,0x04,0x3c,0x4a,0x4a,0x3c,0x10,0x00,0x00,0x34,0x08,0x10,0x30,0x4c, +0x04,0x04,0x68,0x2a,0x4a,0x3c,0x10,0x00,0x00,0x22,0x4a,0x4a,0x5a,0x24, +0x24,0x7e,0x40,0x7c,0x40,0x40,0x7e,0x10,0x28,0x28,0x44,0x7c,0x82,0x82, +0x7e,0x40,0x40,0x7c,0x42,0x42,0x7c,0x7c,0x42,0x42,0x7c,0x42,0x42,0x7c, +0x7e,0x40,0x40,0x40,0x40,0x40,0x40,0x3c,0x24,0x24,0x24,0x44,0xfe,0x82, +0x7e,0x40,0x40,0x7c,0x40,0x40,0x7e,0x92,0x54,0x54,0x38,0x54,0x54,0x92, +0x3c,0x42,0x02,0x1c,0x02,0x42,0x3c,0x42,0x42,0x46,0x4a,0x52,0x62,0x42, +0x24,0x5a,0x46,0x4a,0x52,0x62,0x42,0x46,0x48,0x48,0x70,0x48,0x44,0x42, +0x3e,0x22,0x22,0x22,0x22,0x22,0xc2,0x44,0x44,0x44,0xaa,0xaa,0x92,0x92, +0x42,0x42,0x42,0x7e,0x42,0x42,0x42,0x18,0x24,0x42,0x42,0x42,0x24,0x18, +0x7e,0x42,0x42,0x42,0x42,0x42,0x42,0x7c,0x42,0x42,0x7c,0x40,0x40,0x40, +0x1c,0x22,0x40,0x40,0x40,0x22,0x1c,0xfe,0x10,0x10,0x10,0x10,0x10,0x10, +0x42,0x24,0x24,0x18,0x08,0x10,0x60,0x10,0x7c,0x92,0x92,0x92,0x7c,0x10, +0x82,0x44,0x28,0x10,0x28,0x44,0x82,0x44,0x44,0x44,0x44,0x44,0x7e,0x02, +0x42,0x42,0x42,0x42,0x3e,0x02,0x02,0x92,0x92,0x92,0x92,0x92,0x92,0xfe, +0x92,0x92,0x92,0x92,0x92,0xfe,0x02,0x60,0x20,0x20,0x3c,0x22,0x22,0x3c, +0x42,0x42,0x42,0x72,0x4a,0x4a,0x72,0x20,0x20,0x20,0x3c,0x22,0x22,0x3c, +0x38,0x44,0x02,0x3e,0x02,0x44,0x38,0x9c,0xa2,0xa2,0xe2,0xa2,0xa2,0x9c, +0x3e,0x42,0x42,0x3e,0x22,0x22,0x42,0x00,0x00,0x38,0x04,0x3c,0x44,0x3c, +0x1c,0x20,0x78,0x44,0x44,0x44,0x38,0x00,0x00,0x78,0x44,0x78,0x44,0x78, +0x00,0x00,0x7c,0x40,0x40,0x40,0x40,0x00,0x00,0x38,0x28,0x28,0x7c,0x44, +0x00,0x00,0x38,0x44,0x7c,0x40,0x38,0x00,0x00,0x92,0x54,0x38,0x54,0x92, +0x00,0x00,0x38,0x44,0x18,0x44,0x38,0x00,0x00,0x44,0x4c,0x54,0x64,0x44, +0x28,0x10,0x44,0x4c,0x54,0x64,0x44,0x00,0x00,0x4c,0x50,0x70,0x48,0x44, +0x00,0x00,0x3c,0x24,0x24,0x24,0xc4,0x00,0x00,0x44,0x6c,0x54,0x54,0x44, +0x00,0x00,0x44,0x44,0x7c,0x44,0x44,0x00,0x00,0x38,0x44,0x44,0x44,0x38, +0x00,0x00,0x7c,0x44,0x44,0x44,0x44,0x00,0x00,0x78,0x44,0x78,0x40,0x40, +0x00,0x00,0x38,0x44,0x40,0x44,0x38,0x00,0x00,0x7c,0x10,0x10,0x10,0x10, +0x00,0x00,0x44,0x28,0x28,0x10,0x60,0x10,0x10,0x38,0x54,0x54,0x38,0x10, +0x00,0x00,0x44,0x28,0x10,0x28,0x44,0x00,0x00,0x48,0x48,0x48,0x7c,0x04, +0x00,0x00,0x44,0x44,0x44,0x3c,0x04,0x00,0x00,0x54,0x54,0x54,0x54,0x7c, +0x00,0x00,0x54,0x54,0x54,0x7e,0x02,0x00,0x00,0x60,0x20,0x3c,0x22,0x3c, +0x00,0x00,0x44,0x44,0x74,0x4c,0x74,0x00,0x00,0x40,0x40,0x78,0x44,0x78, +0x00,0x00,0x38,0x44,0x1c,0x44,0x38,0x00,0x00,0x4c,0x52,0x72,0x52,0x4c, +0x00,0x00,0x3c,0x44,0x3c,0x24,0x44,0x28,0x00,0x38,0x44,0x7c,0x40,0x38, +0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00, +0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x02,0x04,0x06,0x00,0x00,0x00,0x00, +0xc0,0x40,0x80,0x00,0x00,0x00,0x00,0x12,0x24,0x36,0x00,0x00,0x00,0x00, +0xd8,0x48,0x90,0x00,0x00,0x00,0x00,0x10,0x38,0x10,0x10,0x10,0x10,0x10, +0x10,0x38,0x10,0x10,0x10,0x38,0x10,0x00,0x00,0x00,0x44,0x00,0x00,0x00, +0x00,0x00,0x00,0x92,0x00,0x00,0x00,0x40,0x40,0x80,0x00,0x00,0x00,0x00, +0x50,0x50,0xa0,0x00,0x00,0x00,0x00,0x92,0x44,0x28,0x92,0x28,0x44,0x92, +0xe0,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0xac,0x52,0x10,0x10,0x12,0x0c, +0x90,0x90,0xd4,0xba,0x9a,0x9a,0x94,0xe2,0x42,0x4a,0x56,0x5a,0x52,0x4a, +0x10,0x28,0x10,0x28,0x44,0x7c,0x82,0x10,0x10,0x10,0x10,0x10,0x10,0x10, +0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x54,0x54,0x54,0x54,0x54,0x54,0x54, +0xa2,0xa2,0x94,0x94,0x94,0x88,0x88,0x44,0x44,0x28,0x28,0x28,0x10,0x10, +0x8a,0x8a,0x52,0x52,0x52,0x22,0x22,0xaa,0xaa,0xaa,0xaa,0xaa,0x4a,0x4a, +0xba,0xba,0xba,0xba,0x5a,0x5a,0x5a,0xa2,0x94,0x94,0x88,0x94,0x94,0xa2, +0x44,0x28,0x28,0x10,0x28,0x28,0x44,0x00,0x20,0x40,0xfe,0x40,0x20,0x00, +0x10,0x38,0x54,0x10,0x10,0x10,0x10,0x00,0x08,0x04,0xfe,0x04,0x08,0x00, +0x10,0x10,0x10,0x10,0x54,0x38,0x10,0x00,0x08,0xfc,0x02,0xfc,0x08,0x00, +0x00,0x28,0x7c,0x82,0x7c,0x28,0x00,0x82,0x82,0x7c,0x44,0x28,0x28,0x10, +0x18,0x24,0x04,0x34,0x48,0x48,0x30,0x7e,0x02,0x02,0x7e,0x02,0x02,0x7e, +0xfe,0x82,0x44,0x44,0x28,0x28,0x10,0x00,0x3e,0x40,0x7e,0x40,0x3e,0x00, +0x00,0x7c,0x02,0x7e,0x02,0x7c,0x00,0x7e,0x20,0x10,0x08,0x10,0x20,0x7e, +0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x1e,0x10,0x20,0x20,0xe0,0x40,0x40, +0x00,0x6c,0x92,0x90,0x92,0x6c,0x00,0x00,0x6c,0x92,0x92,0x92,0x6c,0x00, +0x00,0x40,0x40,0x40,0x40,0x40,0x7e,0x00,0x02,0x04,0x08,0x10,0x20,0x7e, +0x10,0x10,0x28,0x28,0x44,0x44,0x82,0x82,0x44,0x44,0x28,0x28,0x10,0x10, +0x00,0x3c,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x3c,0x00, +0x18,0x20,0x20,0x10,0x08,0x08,0x30,0x36,0x48,0x48,0x24,0x12,0x12,0x6c, +0x18,0x20,0x38,0x54,0x38,0x08,0x30,0x00,0x10,0x00,0x00,0x00,0x44,0x00, +0x00,0x44,0x00,0x00,0x00,0x10,0x00,0x00,0x4c,0x92,0x92,0x92,0x64,0x00, +0x40,0x00,0xfe,0x00,0xfe,0x00,0x04,0x00,0x04,0xfe,0x10,0xfe,0x40,0x00, +0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x06,0x38,0xc0,0x38,0x06,0x00,0xfe, +0xc0,0x38,0x06,0x38,0xc0,0x00,0xfe,0x00,0x24,0x48,0x90,0x48,0x24,0x00, +0x00,0x48,0x24,0x12,0x24,0x48,0x00,0x00,0x3e,0x40,0x40,0x40,0x3e,0x00, +0x00,0x7c,0x02,0x02,0x02,0x7c,0x00,0x3e,0x40,0x40,0x40,0x3e,0x00,0x7e, +0x7c,0x02,0x02,0x02,0x7c,0x00,0x7e,0x00,0x10,0x10,0x10,0x10,0x10,0xfe, +0x00,0x10,0x10,0x10,0x10,0x10,0xfe,0x00,0x02,0x06,0x0a,0x12,0x22,0x7e, +0x7c,0x82,0x00,0x00,0x00,0x00,0x00,0x7c,0x92,0xb2,0x92,0x92,0x92,0x7c, +0x7c,0xb2,0x8a,0x92,0xa2,0xba,0x7c,0x7c,0xb2,0x8a,0x92,0x8a,0xb2,0x7c, +0x7c,0x8a,0x9a,0xaa,0xba,0x8a,0x7c,0x7c,0xba,0xa2,0xb2,0x8a,0xb2,0x7c, +0x7c,0x9a,0xa2,0xb2,0xaa,0x92,0x7c,0x7c,0xba,0x8a,0x92,0x92,0x92,0x7c, +0x7c,0x92,0xaa,0x92,0xaa,0x92,0x7c,0x7c,0x92,0xaa,0x9a,0x8a,0xb2,0x7c, +0x7c,0xa2,0xee,0xaa,0xae,0xa2,0x7c,0x7c,0xa6,0xee,0xa6,0xa6,0xa6,0x7c, +0x7c,0xaa,0xe6,0xae,0xaa,0xae,0x7c,0x7c,0xaa,0xe6,0xaa,0xa6,0xaa,0x7c, +0x7c,0xaa,0xea,0xae,0xae,0xa6,0x7c,0x7c,0xae,0xea,0xae,0xa6,0xaa,0x7c, +0x7c,0xa6,0xea,0xae,0xae,0xae,0x7c,0x7c,0xae,0xe6,0xaa,0xaa,0xaa,0x7c, +0x7c,0xae,0xee,0xa2,0xae,0xae,0x7c,0x7c,0xae,0xee,0xae,0xa6,0xaa,0x7c, +0x7c,0xe2,0xae,0xea,0xce,0xe2,0x7c,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe, +0xfe,0x82,0x82,0x82,0x82,0x82,0xfe,0x10,0x10,0x38,0x38,0x7c,0x7c,0xfe, +0x10,0x10,0x28,0x28,0x44,0x44,0xfe,0xfe,0x7c,0x7c,0x38,0x38,0x10,0x10, +0xfe,0x44,0x44,0x28,0x28,0x10,0x10,0x10,0x38,0x7c,0xfe,0x7c,0x38,0x10, +0x10,0x28,0x44,0x82,0x44,0x28,0x10,0x38,0x44,0x82,0x82,0x82,0x44,0x38, +0x38,0x44,0xba,0xaa,0xba,0x44,0x38,0x38,0x7c,0xfe,0xfe,0xfe,0x7c,0x38, +0x7c,0x82,0x82,0x82,0x82,0x82,0x7c,0x10,0x10,0xfe,0x38,0x38,0x6c,0x44, +0x10,0x10,0xfe,0x28,0x38,0x6c,0x44,0x38,0x44,0x44,0x38,0x10,0x7c,0x10, +0x1e,0x06,0x0a,0x72,0x90,0x90,0x60,0x10,0x18,0x14,0x14,0x30,0x70,0x60, +0x20,0x20,0x28,0x34,0x24,0x28,0x30,0x04,0x26,0x3c,0x66,0x3c,0x64,0x20, +0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x40, +0x00,0x00,0x00,0x00,0x40,0xa0,0x40,0x00,0x00,0x24,0x24,0x24,0x48,0x00, +0x00,0x20,0x3c,0x44,0xa8,0x10,0x08,0x02,0x34,0x48,0x94,0xa4,0xc0,0x80, +0x00,0x38,0x44,0x82,0x82,0x44,0x38,0x02,0x04,0x08,0x10,0x08,0x04,0x02, +0x80,0x40,0x20,0x10,0x20,0x40,0x80,0x0a,0x14,0x28,0x50,0x28,0x14,0x0a, +0xa0,0x50,0x28,0x14,0x28,0x50,0xa0,0x1e,0x10,0x10,0x10,0x10,0x10,0x00, +0x00,0x10,0x10,0x10,0x10,0x10,0xf0,0x3e,0x22,0x2e,0x28,0x28,0x38,0x00, +0x00,0x38,0x28,0x28,0xe8,0x88,0xf8,0x0e,0x0c,0x08,0x08,0x08,0x0c,0x0e, +0xe0,0x60,0x20,0x20,0x20,0x60,0xe0,0xfe,0x00,0xfe,0x10,0x10,0x10,0x10, +0x00,0xfe,0xfe,0x00,0xfe,0xfe,0x00,0x06,0x18,0x10,0x10,0x10,0x18,0x06, +0xc0,0x30,0x10,0x10,0x10,0x30,0xc0,0x00,0x00,0x60,0x92,0x0c,0x00,0x00, +0x14,0x14,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa0,0x50,0x50, +0x00,0x10,0x3c,0x10,0x3c,0x5a,0x32,0x20,0x7c,0x20,0x3c,0x6a,0xb2,0x64, +0x00,0x00,0x48,0x44,0x44,0x50,0x20,0x00,0x88,0x84,0x82,0x82,0x50,0x20, +0x00,0x38,0x00,0x38,0x44,0x08,0x30,0x3c,0x00,0x3c,0x42,0x02,0x04,0x38, +0x00,0x38,0x00,0x78,0x10,0x30,0x4c,0x3c,0x00,0x7c,0x08,0x18,0x28,0x46, +0x00,0x20,0x74,0x20,0x38,0x64,0x28,0x20,0xf4,0x22,0x3c,0x62,0xa2,0x6c, +0x20,0x20,0xf4,0x2a,0x4a,0x48,0xb0,0x2a,0x20,0xf4,0x2a,0x4a,0x48,0xb0, +0x10,0x7c,0x08,0x7e,0x24,0x40,0x3c,0x14,0x7c,0x08,0x7e,0x24,0x40,0x3c, +0x04,0x08,0x30,0x40,0x30,0x08,0x04,0x04,0x08,0x36,0x40,0x30,0x08,0x04, +0x88,0x88,0xbe,0x88,0x88,0x88,0x10,0x8a,0x88,0xbe,0x88,0x88,0x88,0x10, +0x00,0x3c,0x00,0x00,0x20,0x40,0x3e,0x0a,0x3c,0x00,0x00,0x20,0x40,0x3e, +0x08,0x08,0x7e,0x04,0x24,0x40,0x3c,0x0a,0x08,0x7e,0x04,0x24,0x40,0x3c, +0x20,0x20,0x20,0x20,0x20,0x22,0x1c,0x2a,0x20,0x20,0x20,0x20,0x22,0x1c, +0x08,0xfe,0x18,0x28,0x18,0x08,0x10,0x0a,0xfe,0x18,0x28,0x18,0x08,0x10, +0x24,0x24,0xfe,0x24,0x2c,0x20,0x1e,0x26,0x24,0xfe,0x24,0x2c,0x20,0x1e, +0x3c,0x08,0x10,0x7e,0x10,0x10,0x0c,0x3c,0x0a,0x10,0x7e,0x10,0x10,0x0c, +0x20,0xf0,0x2e,0x40,0x48,0x50,0x8e,0x2a,0xf0,0x2e,0x40,0x48,0x50,0x8e, +0x08,0x7e,0x10,0x1c,0x22,0x02,0x1c,0x0a,0x7e,0x10,0x1c,0x22,0x02,0x1c, +0x00,0x00,0x00,0x18,0x64,0x04,0x18,0x00,0x3c,0xc2,0x02,0x02,0x1c,0x00, +0x0a,0x3c,0xc2,0x02,0x02,0x1c,0x00,0x0e,0x74,0x08,0x10,0x10,0x08,0x06, +0x0e,0x74,0x0a,0x10,0x10,0x08,0x06,0x20,0x20,0x26,0x18,0x20,0x40,0x3e, +0x2a,0x20,0x26,0x18,0x20,0x40,0x3e,0x20,0xf4,0x22,0x44,0x9c,0x26,0x18, +0x80,0x9c,0x80,0x80,0x90,0xa0,0x9e,0x08,0x48,0x5c,0x6a,0xb2,0xa6,0x56, +0x20,0x2c,0xf2,0x22,0x66,0xaa,0x24,0x00,0x38,0x54,0x92,0xa2,0x44,0x18, +0x84,0x84,0xbe,0x84,0x9c,0xa4,0x9a,0x86,0x84,0xbe,0x84,0x9c,0xa4,0x9a, +0x84,0x8a,0xbe,0x84,0x9c,0xa4,0x9a,0x28,0xe4,0x26,0x44,0x44,0x44,0x38, +0x2a,0xe4,0x26,0x44,0x44,0x44,0x38,0x2c,0xea,0x26,0x44,0x44,0x44,0x38, +0x10,0x08,0x10,0x10,0x4c,0x4a,0xb2,0x16,0x08,0x10,0x10,0x4c,0x4a,0xb2, +0x14,0x0a,0x14,0x10,0x4c,0x4a,0xb2,0x00,0x20,0x50,0x88,0x06,0x00,0x00, +0x0a,0x20,0x50,0x88,0x06,0x00,0x00,0x04,0x2a,0x54,0x88,0x06,0x00,0x00, +0x80,0xbe,0x88,0xbe,0x88,0xbc,0xba,0x8a,0xbe,0x88,0xbe,0x88,0xbc,0xba, +0x84,0xba,0x8c,0xbe,0x88,0xbc,0xba,0x08,0x7e,0x08,0x7e,0x08,0x7c,0x7a, +0x70,0x10,0x24,0x7c,0xa6,0xc4,0x18,0x20,0xf4,0x22,0x60,0xa0,0x62,0x3c, +0x08,0x48,0x5c,0x6a,0xb2,0xa2,0x54,0x10,0x7c,0x20,0x7c,0x22,0x22,0x1c, +0x00,0x28,0x2c,0x72,0x14,0x10,0x08,0x48,0x5c,0xe2,0x24,0x20,0x10,0x10, +0x00,0x10,0x58,0x74,0x54,0x18,0x20,0x10,0xbc,0xd2,0x92,0xbc,0x10,0x20, +0x00,0x08,0x08,0x0c,0x38,0x48,0x34,0x08,0x08,0x0e,0x08,0x38,0x4c,0x32, +0x30,0x08,0x40,0x5c,0x62,0x02,0x3c,0x58,0x64,0x44,0x44,0x04,0x08,0x30, +0x3c,0x08,0x10,0x3c,0x42,0x32,0x3c,0x20,0x2c,0xf4,0x24,0x64,0xa4,0x22, +0x3c,0x08,0x10,0x3c,0x42,0x02,0x3c,0x00,0x10,0x14,0x7a,0x32,0x52,0x14, +0x20,0x2c,0xf2,0x22,0x62,0xa2,0x2c,0x70,0x10,0x3c,0x52,0x96,0xaa,0x44, +0x38,0x10,0x38,0x44,0x18,0x6c,0x92,0x10,0x7c,0x20,0x76,0x98,0x28,0x1e, +0x10,0x10,0x20,0x20,0x50,0x52,0x8c,0xa0,0x50,0x00,0x00,0x00,0x00,0x00, +0x40,0xa0,0x40,0x00,0x00,0x00,0x00,0x00,0x20,0x10,0x08,0x0c,0x30,0x00, +0x0a,0x20,0x10,0x08,0x0c,0x30,0x00,0x00,0x00,0x7c,0x14,0x18,0x10,0x20, +0x7e,0x02,0x14,0x18,0x10,0x10,0x20,0x00,0x00,0x04,0x08,0x18,0x68,0x08, +0x02,0x04,0x08,0x18,0x68,0x08,0x08,0x00,0x00,0x10,0x7c,0x44,0x08,0x30, +0x10,0x7e,0x42,0x02,0x04,0x08,0x30,0x00,0x00,0x00,0x38,0x10,0x10,0x7c, +0x00,0x7c,0x10,0x10,0x10,0xfe,0x00,0x00,0x00,0x08,0x7c,0x18,0x68,0x18, +0x08,0xfe,0x08,0x18,0x28,0xc8,0x18,0x10,0x7e,0x12,0x12,0x12,0x22,0x46, +0x12,0x7e,0x12,0x12,0x12,0x22,0x46,0x10,0x7c,0x10,0x10,0x7e,0x08,0x08, +0x14,0x7c,0x10,0x10,0x7e,0x08,0x08,0x10,0x1e,0x22,0x42,0x04,0x08,0x30, +0x12,0x1e,0x22,0x42,0x04,0x08,0x30,0x40,0x7e,0x48,0x88,0x08,0x10,0x20, +0x4a,0x7e,0x48,0x88,0x08,0x10,0x20,0x00,0x7e,0x02,0x02,0x02,0x02,0x7e, +0x0a,0x7e,0x02,0x02,0x02,0x02,0x7e,0x24,0xfe,0x24,0x24,0x04,0x08,0x30, +0x2a,0xfe,0x24,0x24,0x04,0x08,0x30,0x40,0x20,0x42,0x22,0x04,0x08,0x70, +0x4a,0x20,0x42,0x22,0x04,0x08,0x70,0x00,0x7c,0x04,0x08,0x08,0x34,0xc2, +0x0a,0x7c,0x04,0x08,0x08,0x34,0xc2,0x20,0x20,0xfe,0x22,0x24,0x20,0x1e, +0x2a,0x20,0xfe,0x22,0x24,0x20,0x1e,0x42,0x22,0x22,0x02,0x04,0x08,0x30, +0x46,0x22,0x22,0x02,0x04,0x08,0x30,0x10,0x1e,0x22,0x5a,0x04,0x08,0x30, +0x12,0x1e,0x22,0x5a,0x04,0x08,0x30,0x0c,0x70,0x10,0xfe,0x10,0x10,0x20, +0x0a,0x70,0x10,0xfe,0x10,0x10,0x20,0x00,0x00,0x00,0x54,0x54,0x08,0x30, +0x00,0xa2,0x52,0x52,0x04,0x08,0x30,0x0a,0xa0,0x52,0x52,0x04,0x08,0x30, +0x7c,0x00,0xfe,0x10,0x10,0x10,0x20,0x7a,0x00,0xfe,0x10,0x10,0x10,0x20, +0x20,0x20,0x20,0x38,0x24,0x20,0x20,0x2a,0x20,0x20,0x38,0x24,0x20,0x20, +0x10,0x10,0xfe,0x10,0x10,0x20,0x40,0x00,0x7c,0x00,0x00,0x00,0xfe,0x00, +0x7c,0x04,0x34,0x08,0x18,0x24,0xc0,0x10,0x7c,0x08,0x10,0x34,0xd2,0x10, +0x04,0x04,0x04,0x08,0x10,0x20,0xc0,0x00,0x28,0x24,0x24,0x42,0x42,0x82, +0x06,0x28,0x24,0x24,0x42,0x42,0x82,0x04,0x2a,0x24,0x24,0x42,0x42,0x82, +0x40,0x40,0x46,0x78,0x40,0x40,0x3e,0x4a,0x40,0x46,0x78,0x40,0x40,0x3e, +0x44,0x4a,0x46,0x78,0x40,0x40,0x3e,0x00,0x7e,0x02,0x02,0x04,0x08,0x30, +0x0a,0x7e,0x02,0x02,0x04,0x08,0x30,0x04,0x7a,0x06,0x02,0x04,0x08,0x30, +0x00,0x20,0x50,0x88,0x04,0x02,0x00,0x0a,0x20,0x50,0x88,0x04,0x02,0x00, +0x04,0x2a,0x54,0x88,0x04,0x02,0x00,0x10,0x10,0xfe,0x10,0x54,0x92,0x30, +0x1a,0x10,0xfe,0x10,0x54,0x92,0x30,0x14,0x1a,0xfc,0x10,0x54,0x92,0x30, +0x00,0xfe,0x02,0x04,0x28,0x10,0x08,0x70,0x0c,0x20,0x18,0x00,0x70,0x0c, +0x10,0x10,0x20,0x20,0x48,0x44,0xfa,0x04,0x04,0x74,0x08,0x14,0x24,0xc0, +0x3c,0x10,0x10,0x7e,0x10,0x10,0x0e,0x00,0x00,0x20,0x3c,0x64,0x10,0x10, +0x20,0x2e,0xf2,0x24,0x10,0x10,0x10,0x00,0x00,0x00,0x38,0x08,0x08,0x7c, +0x00,0x78,0x08,0x08,0x08,0xfe,0x00,0x00,0x00,0x3c,0x04,0x1c,0x04,0x3c, +0x00,0x7e,0x02,0x3e,0x02,0x02,0x7e,0x3c,0x00,0x7e,0x02,0x04,0x08,0x30, +0x44,0x44,0x44,0x44,0x04,0x08,0x30,0x08,0x28,0x28,0x28,0x2a,0x4c,0x88, +0x20,0x20,0x20,0x22,0x24,0x28,0x30,0x00,0x7e,0x42,0x42,0x42,0x42,0x7e, +0x00,0x00,0x7c,0x44,0x04,0x08,0x30,0x00,0x7e,0x42,0x02,0x04,0x08,0x30, +0x04,0x7e,0x24,0x24,0xfe,0x04,0x04,0x00,0x7c,0x08,0x10,0x10,0xfe,0x00, +0x7e,0x02,0x3e,0x02,0x04,0x08,0x30,0x40,0x20,0x02,0x02,0x04,0x08,0x70, +0x12,0x7e,0x42,0x02,0x04,0x08,0x30,0x00,0x00,0x10,0x7c,0x14,0x24,0x4c, +0x00,0x00,0x20,0x3c,0x48,0x08,0x10,0x00,0x00,0x00,0x30,0x30,0x00,0x00, +0x00,0x00,0x80,0x7e,0x00,0x00,0x00,0x00,0x00,0x20,0x10,0x08,0x08,0x00, +0x0a,0x00,0x20,0x10,0x08,0x08,0x00,0x44,0xf2,0xbe,0xea,0xfe,0xaa,0x6c, +0x54,0xba,0x92,0xbe,0xd6,0x9e,0x54,0x44,0xaa,0xbe,0xea,0xaa,0xa6,0x44, +0x7c,0x92,0x9a,0x92,0x92,0xba,0x7c,0x7c,0x92,0xfe,0xd6,0xfe,0x92,0x7c, +0x7c,0xba,0x92,0x9a,0x92,0x92,0x7c,0x7c,0xfa,0xa2,0xba,0xd2,0xba,0x7c, +0x7c,0xa2,0xfa,0xa2,0xda,0x9a,0x7c,0x00,0x00,0xc6,0xea,0xe6,0xe2,0xac, +0x80,0x80,0xa6,0xaa,0xc6,0xa2,0xac,0x00,0x00,0xcc,0xee,0xee,0xee,0xaa, +0x00,0x00,0x6c,0x8e,0x8e,0x8e,0x6a,0x80,0x80,0xac,0xae,0xce,0xae,0xaa, +0x06,0x02,0xd4,0xae,0xa8,0xa8,0xa8,0x00,0x00,0x66,0x88,0x88,0x88,0x66, +0xaa,0xaa,0xaa,0xcc,0xaa,0xaa,0xaa,0x00,0x00,0x04,0xfe,0x00,0x00,0x00, +0xfe,0x10,0x10,0x10,0x10,0x10,0x30,0x20,0x20,0x2e,0xf0,0x20,0x22,0x1e, +0xfe,0x20,0x3c,0x24,0x24,0x44,0x8c,0x00,0x7c,0x00,0x38,0x00,0x00,0xfe, +0x10,0x10,0x1c,0x10,0x10,0x10,0xfe,0xfe,0x10,0x18,0x14,0x10,0x10,0x10, +0xfe,0x10,0x10,0x34,0xd2,0x10,0x10,0x54,0x54,0xfe,0x54,0x5c,0x40,0x7e, +0xfe,0x10,0xfe,0x92,0xd6,0xfe,0x82,0x24,0xfe,0x28,0x6a,0x6c,0x28,0xfe, +0x10,0xfe,0x92,0x92,0xfe,0x10,0x10,0x20,0xf8,0x28,0x68,0x38,0x4a,0x8e, +0x20,0x10,0xfe,0x10,0x7c,0x10,0xfe,0x20,0x3c,0x44,0x88,0x08,0x34,0xc2, +0x0c,0x70,0xfe,0x54,0xfe,0x38,0xd6,0x20,0xf8,0x28,0x28,0x48,0x4a,0x8e, +0x18,0x68,0xf8,0x28,0x78,0x5a,0x7e,0x3c,0xd4,0x04,0x74,0x14,0xfc,0x26, +0x7c,0x28,0x10,0xfe,0x12,0x10,0x30,0x38,0xc8,0x3c,0xfe,0x14,0x7c,0x30, +0x10,0xfe,0x54,0xfc,0x16,0xfc,0x30,0x00,0x7c,0x00,0x00,0x00,0x00,0xfe, +0x7c,0x10,0x10,0x7c,0x24,0x24,0xfe,0x10,0xfe,0x40,0x40,0x40,0x40,0x3e, +0x10,0xfe,0x28,0xc6,0x28,0x10,0xee,0x10,0xfe,0x44,0x7c,0x10,0x54,0xb2, +0x10,0x10,0x10,0x28,0x28,0x44,0x82,0x20,0x4e,0xc0,0x40,0x40,0x40,0x5e, +0x10,0x28,0xde,0x00,0x7c,0x08,0x30,0x28,0x48,0xc8,0x48,0x50,0x54,0x7a, +0x28,0x48,0xfe,0x48,0x48,0x48,0x5c,0x24,0x54,0xde,0x76,0x54,0x52,0x5e, +0x24,0x5e,0xc4,0x54,0x4c,0x44,0x4c,0x2a,0x48,0xde,0x48,0x44,0x44,0x42, +0x10,0x28,0xde,0x00,0xfe,0x12,0x10,0x44,0x54,0x4c,0x44,0x64,0x8c,0x32, +0x3e,0x50,0xde,0x5a,0x5a,0x64,0x5a,0x28,0x7e,0xea,0x6a,0x7e,0x48,0x48, +0x2c,0x4e,0xd4,0x44,0x5e,0x44,0x44,0x24,0x58,0xc8,0x7e,0x48,0x48,0x5c, +0x28,0x7e,0xc8,0x5c,0x5c,0x6a,0x48,0x10,0x28,0xde,0x00,0xfe,0x24,0xfa, +0x3c,0x40,0xfe,0x48,0x48,0x54,0x7a,0x32,0x56,0xd2,0x5a,0x72,0x44,0x5a, +0x28,0x7e,0xd4,0x54,0x54,0x58,0x7e,0x22,0x5c,0xd4,0x5e,0x54,0x52,0x5e, +0x28,0x44,0xde,0x44,0x4e,0x44,0x5e,0x28,0x7e,0xc8,0x5c,0x6a,0x5c,0x48, +0x3e,0x42,0xde,0x56,0x5e,0x42,0x46,0x10,0x28,0xfe,0x10,0xfe,0x54,0xb2, +0x28,0x4e,0xd8,0x4e,0x48,0x4e,0x48,0x28,0x7e,0xda,0x5e,0x78,0x48,0x76, +0x3a,0x56,0xde,0x6e,0x5a,0x52,0x66,0x54,0x7e,0xd4,0xd4,0x7e,0x40,0x62, +0x3e,0x48,0xde,0x5a,0x5a,0x5a,0x5e,0x3e,0x5c,0xdc,0x48,0x58,0x48,0x76, +0x3e,0x48,0xd0,0x4a,0x7e,0x48,0x6a,0x3c,0x54,0xdc,0x48,0x7e,0x5c,0x6a, +0x2c,0x5e,0xc0,0x4c,0x40,0x5e,0x5e,0x28,0x6e,0xf4,0x6a,0x64,0x62,0x4c, +0x54,0x76,0xd4,0xf6,0x54,0x76,0x54,0x28,0x7e,0xc8,0x7c,0x5a,0x74,0x5a, +0x10,0x28,0xfe,0x38,0x20,0x5c,0x9c,0x3e,0x6a,0xfe,0x6a,0x76,0x7e,0x7e, +0x28,0x7e,0xd4,0x7e,0x40,0x5c,0x5c,0x2c,0x64,0xfe,0x68,0x7e,0x64,0x5a, +0x54,0x7e,0xd4,0xfe,0x5c,0x54,0x5c,0x24,0x5e,0xc4,0x56,0x56,0x50,0x5e, +0x28,0x7e,0xd4,0x7e,0x5e,0x48,0x58,0x34,0x5e,0xee,0x54,0x7e,0x54,0x6e, +0x3a,0x6e,0xfe,0x6e,0x7a,0x42,0x6a,0x54,0x7e,0xd4,0xfe,0x60,0x5e,0x56, +0x30,0x5e,0xf4,0x5c,0x5e,0x6a,0x56,0x34,0x5e,0xf6,0x76,0x56,0x7a,0x4a, +0x2c,0x74,0xdc,0x5c,0x5a,0x6c,0x5a,0x28,0x7e,0xd4,0x7e,0x5c,0x72,0x6e, +0x3e,0x5c,0xdc,0x7e,0x76,0x48,0x76,0x7c,0x00,0xfe,0x28,0x28,0x4a,0x8e, +0x7c,0x44,0x44,0x7c,0x28,0x2a,0xce,0x28,0xaa,0x2c,0x6c,0xaa,0x28,0xce, +0x50,0x7c,0x90,0xfe,0x28,0x2a,0xce,0x10,0x54,0x10,0xfe,0x28,0x2a,0xce, +0x5c,0x54,0x5c,0x54,0x5c,0x2a,0xce,0x54,0xfe,0xba,0x28,0x38,0x2a,0xce, +0x70,0x10,0x10,0x28,0x28,0x44,0x82,0x10,0x28,0xfe,0x10,0x7c,0x10,0xfe, +0x28,0x28,0x28,0x28,0x44,0x44,0x82,0x28,0x28,0x44,0x92,0x10,0x24,0xfa, +0x10,0xfe,0x00,0x28,0x28,0x44,0x82,0x28,0x7c,0x28,0x28,0xfe,0x00,0xc6, +0x0c,0x70,0x7c,0x48,0xfe,0x00,0xc6,0x7c,0x44,0x7c,0x44,0xfe,0x00,0xc6, +0x28,0x7c,0x6c,0x7c,0xfe,0x00,0xc6,0x10,0xfe,0x92,0xaa,0xc6,0x82,0x86, +0xfe,0x92,0x92,0xfe,0x82,0x82,0x86,0x7e,0x6a,0x6a,0xfe,0x6a,0x6a,0x42, +0xfe,0x54,0x7c,0x54,0xfe,0x44,0x4c,0xfe,0xa2,0x3c,0x20,0xfe,0x08,0x18, +0x18,0x68,0x10,0x28,0xd6,0x30,0x0c,0x88,0x14,0x2e,0x00,0xbe,0x8a,0x88, +0x40,0x7c,0x54,0xd4,0x26,0x50,0x8e,0x10,0x54,0x54,0x7c,0x92,0x92,0xfe, +0xfe,0x12,0x12,0x22,0x22,0x42,0x86,0x28,0x28,0x44,0xbe,0x14,0x24,0xcc, +0x5e,0x4a,0xea,0x4a,0x4a,0x6a,0x16,0x72,0x2a,0x2a,0xfa,0x22,0x22,0x26, +0xf2,0x4a,0x6a,0xaa,0x62,0x42,0x86,0x5e,0xea,0x2a,0x4a,0xea,0x6a,0x56, +0x22,0xaa,0x22,0xfa,0x22,0xfa,0x26,0xf2,0x9a,0xfa,0x4a,0x72,0x52,0xb6, +0x72,0x2a,0xfa,0x2a,0x72,0xa2,0x26,0x62,0x7a,0xaa,0x7a,0x22,0xfa,0xaa, +0x7a,0x4a,0x7a,0x52,0x7a,0x5a,0x96,0x54,0x38,0xfe,0x44,0xbe,0x14,0x6c, +0x22,0xfa,0x4a,0xaa,0x52,0x22,0xd6,0xe2,0xaa,0xea,0xaa,0xe2,0x02,0xa6, +0x24,0xfe,0x00,0xea,0xaa,0xe2,0xa6,0xfa,0x56,0x76,0x06,0xfa,0xaa,0xfa, +0x22,0xfa,0xaa,0x7a,0x22,0xfa,0x76,0x22,0x5a,0xea,0x6a,0x42,0x72,0xb6, +0x22,0x3a,0xea,0xda,0xb2,0xda,0xb6,0x10,0xfe,0x12,0x22,0x22,0x42,0x86, +0x08,0xfe,0x4a,0x4a,0x6a,0xca,0x16,0x40,0xfe,0x5a,0x5a,0x5a,0x5a,0xbe, +0x74,0x5e,0x76,0x56,0x76,0x5a,0xea,0x2e,0xfa,0x54,0x6a,0xbc,0x14,0x6c, +0x54,0xfe,0x92,0x7c,0x14,0x24,0xcc,0x28,0xfe,0x5a,0x8a,0x5a,0x2a,0xd6, +0x7c,0x08,0x7c,0x54,0xfe,0x22,0xc6,0x64,0xae,0x76,0x76,0x2a,0x6a,0xbe, +0xe8,0x5e,0xea,0xea,0xea,0x4a,0xf6,0xe8,0x2e,0x54,0xea,0x7e,0xaa,0x76, +0xf6,0xa4,0xfe,0xac,0xfe,0xaa,0xb6,0x28,0x7c,0xec,0x76,0xbc,0x14,0x6c, +0x54,0xfe,0x56,0xf6,0xf6,0x2a,0xfa,0x40,0x7e,0xba,0x0a,0x7a,0x40,0x7e, +0x30,0x50,0xd2,0x5c,0x50,0x52,0x5e,0x28,0x28,0xea,0x2c,0x68,0xaa,0x2e, +0xfe,0x84,0xb4,0x88,0x94,0xa0,0xfe,0xfe,0x90,0x9c,0xbe,0x88,0xb6,0xfe, +0x10,0x10,0xfe,0x10,0x10,0x10,0x10,0x0c,0x70,0x10,0xfe,0x10,0x10,0x10, +0x40,0x7c,0x90,0x10,0xfe,0x10,0x10,0x10,0x54,0x10,0x7c,0x10,0xfe,0x10, +0x10,0xfe,0x44,0x44,0xaa,0xfe,0x10,0x48,0x5e,0xea,0x40,0x4a,0x7e,0x56, +0x10,0xfe,0x10,0xfe,0xaa,0xfe,0x92,0x54,0x7c,0x54,0x7c,0x54,0xfe,0x10, +0x4a,0x7e,0xdc,0x5c,0x7e,0x54,0x4c,0x2e,0xca,0x8a,0xea,0x8a,0xe8,0x08, +0x38,0xc8,0x7e,0x5c,0x54,0x52,0x9e,0x2e,0xca,0xee,0xaa,0xea,0x28,0x48, +0x7e,0x5c,0x5c,0x44,0x7e,0x48,0x98,0x7e,0x48,0x5c,0x5c,0x48,0x6a,0x98, +0x54,0x7e,0x60,0x76,0x5a,0x74,0x9a,0x10,0x7c,0x10,0xfe,0x10,0x24,0xfa, +0x28,0x74,0xfe,0x54,0xa2,0x08,0x70,0x20,0xfe,0x20,0x3c,0x54,0x48,0xb6, +0x7e,0x40,0x7c,0x54,0x54,0x48,0xb6,0x2e,0xa2,0xaa,0xaa,0xb4,0xe4,0x2a, +0xf0,0x5e,0x72,0x7a,0x54,0xfa,0x10,0xfe,0x54,0xfe,0xba,0x28,0x10,0xee, +0x00,0x7e,0x42,0x42,0x42,0x7e,0x42,0x10,0x10,0xfe,0x10,0x7c,0x44,0x7c, +0x20,0x3e,0x42,0xba,0x2a,0x3a,0x06,0xfe,0x04,0x74,0x54,0x74,0x04,0x0c, +0x10,0x10,0x24,0xfa,0x00,0x7c,0x7c,0x10,0x7c,0x54,0x7c,0x30,0x10,0xee, +0x20,0xfe,0x20,0x7c,0xa4,0x24,0x3c,0x38,0x28,0xfe,0x20,0x3c,0x04,0x1c, +0xfe,0x02,0x7a,0x02,0x7a,0x7a,0x06,0x18,0x68,0x10,0x28,0xc6,0x38,0x38, +0x10,0x28,0xde,0x00,0x7c,0x44,0x7c,0xfe,0x82,0xba,0x82,0xba,0xaa,0xba, +0x3c,0x24,0x58,0x10,0x3e,0xd2,0x1e,0x0c,0x70,0x40,0x7e,0x40,0x5c,0x9c, +0x10,0xfe,0x82,0xba,0xaa,0xba,0x86,0x7c,0x14,0xfe,0x14,0x3e,0xe2,0x3e, +0xfe,0x10,0x34,0xd2,0x7c,0x44,0x7c,0x3c,0xd4,0xd6,0xd2,0xea,0x24,0x5a, +0x50,0x7c,0x90,0xfe,0x00,0x7c,0x7c,0x7e,0x52,0x7a,0x52,0x7e,0x6a,0xba, +0x08,0xfc,0xa8,0xbe,0xe8,0x1c,0x2a,0x06,0xf8,0xea,0xc8,0xfe,0x08,0x18, +0x10,0x28,0xde,0x00,0xee,0xea,0x08,0x70,0x2e,0xfa,0x2a,0x7a,0xaa,0x2e, +0x7c,0x44,0x7c,0x00,0xee,0xaa,0xee,0x38,0x28,0x7c,0x7c,0x44,0x7c,0xc6, +0x1c,0xf4,0xbe,0xa2,0xfe,0x22,0x3e,0x10,0xfe,0x24,0xfe,0xaa,0xde,0x9a, +0xee,0xaa,0xee,0x82,0xba,0xaa,0xba,0x24,0xfe,0x10,0xfe,0x54,0xfe,0x7c, +0x10,0xfe,0x7c,0x28,0xfe,0x44,0x7c,0x54,0xfe,0xaa,0x38,0x10,0x7c,0x7c, +0x6c,0x6c,0x10,0xfe,0x10,0xee,0x6c,0xfe,0xaa,0xaa,0xae,0xc2,0x82,0xfe, +0xfe,0x82,0xba,0xaa,0xba,0x82,0xfe,0xfe,0x92,0xfe,0x92,0xaa,0xc6,0xfe, +0xfe,0x8a,0xfe,0xaa,0x8a,0x9a,0xfe,0xfe,0x92,0xfe,0xba,0xd6,0x92,0xfe, +0xfe,0xaa,0xfe,0xaa,0xfe,0xaa,0xfe,0xfe,0xd2,0x86,0xaa,0x9a,0xa6,0xfe, +0xfe,0x92,0xba,0x92,0xaa,0xba,0xfe,0xfe,0xba,0x92,0xba,0x96,0xba,0xfe, +0xfe,0xba,0xfe,0xaa,0xba,0xd6,0xfe,0x10,0x10,0x7c,0x10,0x10,0x10,0xfe, +0x7e,0x48,0x48,0x5c,0x48,0x48,0xbe,0x20,0xfe,0x28,0x5c,0xc8,0x48,0x7e, +0x44,0x54,0xde,0x76,0x54,0xd2,0x1e,0x5e,0x50,0xfe,0x5a,0x5a,0xe4,0x1a, +0x50,0x5e,0xe2,0x4a,0x66,0xda,0x06,0x0c,0x70,0xfe,0x54,0xfe,0x10,0xfe, +0xfa,0x56,0xfe,0x52,0xba,0x10,0xfe,0x44,0x7e,0xe4,0x7c,0x6e,0xf4,0x2a, +0x44,0x7e,0xc4,0x74,0x76,0xcc,0x32,0x28,0x7c,0x28,0xfe,0x44,0x92,0x38, +0x48,0x7e,0xc8,0x54,0x7e,0xc4,0x14,0x54,0xfe,0xaa,0x38,0x7c,0x10,0xfe, +0x2e,0x7a,0xf8,0x5e,0xfa,0x74,0x2a,0x5c,0x54,0xfe,0x50,0x5e,0xea,0x16, +0x50,0x5e,0xf4,0x5c,0x40,0xdc,0x3e,0x48,0x7e,0xd4,0x7e,0x5c,0xdc,0x26, +0x28,0xfe,0x38,0xfe,0x44,0x92,0x38,0x54,0x7e,0xea,0x7e,0x5c,0xd4,0x1c, +0x10,0x10,0xfe,0x10,0x10,0x10,0x7c,0x10,0xfe,0x10,0x7c,0x54,0x7c,0x80, +0x10,0xfe,0x10,0xfe,0x82,0x28,0xce,0x10,0xfe,0x28,0xba,0x68,0x10,0xee, +0xfe,0x38,0x38,0x38,0x68,0x10,0xee,0x10,0x1e,0x22,0xda,0x04,0x08,0x70, +0x48,0x78,0x58,0xbc,0x1a,0x28,0xc8,0x18,0x68,0x10,0xee,0x32,0x0c,0x70, +0x10,0xfe,0x28,0x4e,0xda,0x44,0x5a,0x28,0xfe,0x54,0xfe,0xaa,0x18,0x70, +0x10,0x10,0xfe,0x10,0x10,0x28,0xc6,0xfe,0x10,0x7c,0x10,0x10,0x28,0xc6, +0x10,0x10,0xfe,0x10,0x10,0x28,0xd6,0x10,0x7c,0x10,0xfe,0x10,0x28,0xc6, +0x10,0x7c,0x54,0xfe,0x10,0x28,0xc6,0x50,0x7c,0x90,0xfe,0x10,0x28,0xc6, +0x10,0x7c,0x38,0xfe,0x54,0x92,0x28,0x10,0xfe,0x74,0xba,0x7c,0x54,0x7c, +0x10,0x10,0xfe,0x24,0x68,0x18,0xe6,0x2e,0x22,0xf4,0x5e,0x64,0x34,0xcc, +0x48,0x5c,0xe8,0xbe,0xc8,0x5c,0xaa,0x10,0xfe,0x14,0x7c,0xfe,0x28,0xf6, +0x44,0x5e,0xe4,0xbe,0xd6,0x76,0x84,0x24,0x24,0xfa,0x5e,0x60,0x3e,0xce, +0x38,0xfe,0x38,0xd6,0x7c,0x28,0xf6,0x90,0x1e,0xaa,0x14,0xfe,0x28,0xf6, +0x5c,0x44,0xfe,0xaa,0xdc,0x7c,0x88,0x7c,0x08,0x10,0xfe,0x10,0x10,0x30, +0x10,0xfe,0xba,0x08,0xfe,0x10,0x30,0x20,0xfe,0x2c,0x44,0xfe,0x48,0x58, +0x12,0x7c,0x18,0xfe,0x24,0xde,0x08,0x38,0xfe,0x3c,0xda,0x08,0xfe,0x10, +0x54,0xfe,0xba,0x08,0xfe,0x10,0x30,0xee,0x24,0x48,0x64,0xde,0x44,0xd6, +0x10,0xfe,0xba,0x10,0xfe,0x10,0x1e,0x10,0xfe,0xba,0x10,0xfe,0x10,0x30, +0x10,0xfe,0x82,0x08,0xfe,0x28,0x18,0x10,0xfe,0x92,0x7c,0x28,0x18,0xe6, +0x10,0xfe,0xba,0x00,0xfe,0x28,0xce,0x10,0xfe,0xba,0x00,0xfe,0x54,0xb2, +0x10,0xfe,0xba,0x28,0x3c,0x24,0x3c,0x10,0xfe,0x92,0x7c,0x7c,0x54,0x7c, +0x10,0xfe,0xba,0x10,0x5c,0x50,0xbe,0x10,0xfe,0xba,0x10,0x38,0x14,0xfe, +0x10,0xfe,0xba,0x10,0xfe,0x10,0xee,0x10,0xfe,0x9a,0x68,0x10,0xee,0x38, +0x10,0xfe,0xba,0x00,0x38,0x28,0xfe,0x10,0xfe,0xb2,0x28,0x74,0x10,0xfe, +0x10,0xfe,0xaa,0x38,0x10,0x7c,0x7c,0x10,0xfe,0x92,0x7c,0x10,0xfe,0x38, +0x10,0xfe,0xba,0x30,0xda,0x2c,0xda,0x10,0xfe,0xaa,0x54,0x28,0xfe,0x38, +0x10,0xfe,0x82,0x5e,0xc8,0x5e,0x5e,0x10,0xfe,0x92,0x28,0xfe,0x54,0x74, +0x10,0xfe,0xaa,0x60,0xba,0x54,0x7c,0x10,0xfe,0xaa,0x38,0x7c,0x54,0x7c, +0x10,0xfe,0xaa,0x7c,0x7c,0xb2,0x08,0x10,0xfe,0xea,0x44,0xba,0x54,0xb2, +0x08,0xfe,0x08,0x28,0x18,0x08,0x18,0x10,0x7c,0x10,0xfe,0x08,0xfe,0x28, +0x22,0xfe,0x12,0x5a,0x26,0x52,0x86,0x10,0xfe,0x38,0x38,0xfe,0x28,0x18, +0x22,0x7e,0x52,0x7a,0xd6,0x32,0xd6,0x46,0x78,0xea,0x44,0xfe,0x54,0x4c, +0x24,0xfe,0x5c,0x6c,0xfe,0x28,0x18,0x54,0x3e,0xdc,0x5c,0xfe,0x28,0x18, +0x10,0x10,0x54,0x52,0x92,0x10,0x30,0x10,0x54,0x52,0x90,0x34,0x18,0xe0, +0x26,0xf4,0x5e,0x74,0x24,0xb4,0x6a,0x7c,0x44,0x7c,0x50,0x48,0x44,0x82, +0x7c,0x44,0x7e,0x42,0x7a,0x6a,0xba,0x7e,0x7e,0x48,0x7e,0x48,0x5c,0x9c, +0x7e,0x42,0x7e,0x48,0x7e,0x6a,0xbe,0x7e,0x42,0x7e,0x54,0x7a,0x48,0xbe, +0x7e,0x42,0x7e,0x54,0x7e,0x68,0xb6,0x7e,0x7e,0x4c,0x5c,0x7e,0x6e,0xba, +0x7e,0x7e,0x54,0x6a,0x7e,0x54,0x9c,0x10,0x10,0x92,0x92,0x92,0x92,0xfe, +0x54,0x7c,0x00,0xfe,0x40,0xbc,0x3c,0x92,0xfe,0x40,0x5c,0x48,0x7e,0x88, +0x10,0x7c,0x7c,0x40,0x7e,0xaa,0xfa,0x42,0x52,0x52,0x52,0x52,0x42,0x82, +0x52,0x52,0xf6,0xf6,0x52,0x52,0x92,0x54,0x7c,0x7c,0x10,0xfe,0x38,0xd6, +0x00,0x7c,0x10,0x10,0x10,0x10,0xfe,0x20,0xfe,0x20,0x3c,0x48,0x88,0x7e, +0x24,0xfe,0x10,0xfe,0x5c,0x48,0xbe,0xfc,0x04,0x04,0xfc,0x80,0x82,0x7e, +0x54,0x38,0xfe,0x4c,0xba,0x20,0x3c,0x10,0xfe,0x10,0x7c,0x54,0x54,0x10, +0x20,0xfe,0x28,0x7e,0xaa,0x2a,0x08,0x64,0x18,0x24,0xfe,0x48,0xbe,0x2a, +0x5e,0xe8,0xfe,0xaa,0xea,0xea,0x08,0x08,0x7e,0x54,0x7e,0x48,0x7e,0xaa, +0x54,0xfe,0x54,0xfe,0x92,0x7c,0x54,0x5c,0xc4,0xfe,0xea,0x5c,0x5c,0x88, +0x5e,0xd0,0xdc,0xd0,0x7e,0x54,0x5a,0x54,0xfe,0xaa,0x38,0x7c,0x54,0x10, +0x28,0xfe,0x38,0xfe,0x56,0xbc,0x34,0x7c,0x10,0x10,0xfe,0x10,0x10,0x10, +0xfe,0x54,0x38,0x10,0xfe,0x10,0x10,0x40,0x7e,0x90,0x7c,0x50,0xfe,0x10, +0x10,0x7c,0xfe,0x28,0xfe,0x7c,0x10,0xe4,0x4a,0xe0,0xae,0x44,0xee,0x44, +0x28,0x2e,0xda,0x6a,0x2a,0x5a,0xf6,0x08,0x7e,0x40,0x7e,0x48,0x48,0x98, +0x08,0x7e,0x40,0x48,0x48,0x54,0xba,0x08,0x7e,0x5c,0x44,0x7e,0x4a,0x98, +0x08,0x7e,0x5e,0x54,0x5e,0x54,0xba,0x08,0x7e,0x48,0x4e,0x48,0x5e,0x9e, +0x08,0x7e,0x52,0x5e,0x72,0x5a,0x96,0x08,0x7e,0x54,0x7e,0x54,0x48,0xb6, +0x08,0x7e,0x54,0x6a,0x5c,0x48,0xbe,0x08,0x7e,0x48,0x7e,0x5c,0x7e,0x88, +0x08,0x7e,0x72,0x54,0x6e,0x54,0xae,0x08,0x7e,0x4e,0x7c,0x6a,0x5c,0xaa, +0xc2,0x5c,0x86,0x54,0xde,0x40,0xbe,0xdc,0x4e,0x9c,0x48,0xde,0x48,0xbe, +0x10,0x24,0xfa,0x28,0xfe,0x28,0x48,0x0a,0xfe,0x08,0x78,0x24,0x34,0xc2, +0x7c,0x04,0x7c,0x40,0xfe,0x02,0x0e,0xf2,0x12,0xf2,0x82,0xf2,0x12,0x32, +0x24,0xfe,0x12,0x7e,0x50,0x3e,0xd2,0xee,0x22,0xee,0x88,0x66,0xaa,0x66, +0xde,0x50,0xdc,0x90,0xfe,0x54,0xda,0xc8,0x52,0xfe,0x9c,0xdc,0x4a,0xfe, +0x52,0x34,0x7e,0x02,0x3e,0x02,0x7e,0xfa,0x54,0x52,0xfc,0x50,0x52,0x94, +0x5c,0x94,0x66,0xdc,0x54,0x48,0x76,0x50,0x88,0x7e,0xc8,0x5c,0x48,0x7e, +0x7c,0x94,0x48,0xf6,0x5c,0x48,0x7e,0x48,0x9c,0x48,0xfe,0x44,0x7e,0x54, +0x48,0xbc,0x4e,0xfc,0x48,0x7e,0x48,0x48,0x90,0x4a,0xfe,0x54,0x48,0x76, +0x48,0x9c,0x48,0xfe,0x4c,0x58,0x6e,0x4a,0xbe,0x44,0xd6,0x54,0x54,0x6e, +0x5c,0x94,0x7e,0xc4,0x7e,0x54,0x4c,0x50,0x9e,0x6c,0xcc,0x54,0x48,0x76, +0x48,0xbe,0x5c,0xdc,0x40,0x72,0x6e,0x20,0x10,0x20,0x64,0x62,0xa4,0x3c, +0x20,0x14,0x24,0xaa,0xb2,0x20,0xde,0x10,0xfe,0x10,0x7c,0x00,0xca,0xba, +0x10,0xfe,0x40,0x7c,0x54,0xca,0xba,0x08,0x7e,0x50,0x48,0x50,0x76,0x9c, +0x10,0x7c,0x54,0x7c,0x10,0xca,0xba,0x48,0xdc,0xcc,0x7e,0x48,0x48,0x76, +0x10,0x28,0xde,0x38,0x08,0xc2,0xba,0x7c,0x54,0x7c,0x54,0x7c,0xca,0xba, +0x38,0xc8,0x7c,0x04,0x7c,0xca,0xba,0x58,0xde,0xe8,0x48,0x5c,0x48,0x7e, +0x7c,0x54,0x6c,0x7c,0x54,0xca,0xba,0x10,0x7c,0x44,0x7c,0x7c,0xca,0xba, +0xfe,0x7c,0x7c,0xfe,0x54,0xca,0xba,0x28,0xee,0x28,0xee,0x28,0xc2,0xba, +0x48,0xdc,0xc8,0x7e,0x54,0x5c,0x54,0x2e,0xfa,0x6e,0xba,0x2e,0xc0,0xba, +0x10,0x7c,0x28,0xfe,0x38,0xca,0xba,0xfe,0x54,0xfe,0xaa,0x5c,0x28,0xd6, +0x04,0x7e,0x74,0xb2,0x00,0xca,0xba,0x54,0xf6,0x50,0x74,0x56,0xc8,0xba, +0x5c,0xf6,0xdc,0x5c,0x5c,0x5c,0x62,0x10,0xfe,0x92,0x7c,0x38,0xca,0xba, +0x04,0x7e,0x44,0x74,0x56,0x54,0xaa,0x1a,0x68,0xfe,0x28,0xfa,0x24,0x6a, +0xaa,0x08,0xfe,0xf4,0x26,0xf4,0x2a,0xfe,0x00,0x7c,0x44,0x7c,0x40,0x80, +0xf2,0x0c,0x78,0x5e,0x7a,0x4a,0x92,0x0c,0x70,0xfe,0x10,0xfe,0x10,0x30, +0x08,0xfe,0x08,0x0c,0x18,0xe8,0x18,0x5e,0xe4,0x44,0x64,0xc4,0x44,0xcc, +0x54,0xd4,0x5e,0x54,0xd4,0x5c,0xf6,0x38,0x08,0xd2,0x7c,0x54,0xba,0x10, +0x48,0xfe,0x48,0x7c,0xd4,0x48,0xf6,0x5c,0xd4,0x66,0x5c,0xd4,0x48,0xf6, +0x44,0xd8,0x50,0x5e,0xd4,0x64,0xc4,0x5e,0xf2,0x5e,0x72,0xde,0x40,0xde, +0x5e,0xea,0x52,0x66,0xde,0x52,0xde,0x7e,0xdc,0x48,0x5c,0xc8,0x7e,0xc8, +0x44,0xde,0x50,0x54,0xd4,0x6a,0xce,0x48,0xd4,0x6e,0x40,0xdc,0x54,0xdc, +0x48,0xdc,0x48,0x7e,0xc4,0x7e,0xd4,0x52,0xdc,0x52,0x5e,0xc0,0x5e,0xde, +0x54,0xfe,0x44,0xba,0x7c,0xfe,0x30,0x48,0xd4,0x6a,0x5c,0xfe,0x54,0xdc, +0x7e,0xd4,0x7e,0x62,0xdc,0x48,0xf6,0x46,0xf8,0x6a,0x44,0xfe,0x5c,0xea, +0x7e,0xe2,0x54,0x66,0xfe,0x5c,0xea,0x48,0xfe,0x54,0x7e,0xd4,0x4c,0xf2, +0x54,0xde,0x74,0x5e,0xd4,0x54,0xde,0x4c,0xec,0x5e,0x44,0xd6,0x54,0xee, +0x7e,0xea,0x7e,0x5c,0xdc,0x7e,0xc8,0x4c,0xec,0x5e,0x72,0xde,0x40,0xd2, +0x5c,0xd4,0x7e,0x6a,0xfe,0x5c,0xea,0x10,0xfe,0x10,0x78,0x28,0x10,0xee, +0xe8,0x2e,0xfa,0x8a,0xaa,0xe4,0x1a,0x24,0xf6,0x4a,0x7a,0x5a,0x54,0xba, +0xf4,0x26,0x2a,0xba,0xaa,0xb4,0xca,0x48,0xee,0x5a,0xea,0xaa,0xe4,0x1a, +0x24,0xf6,0x2a,0xba,0x6a,0xb4,0x6a,0xe8,0xae,0xfa,0xaa,0xea,0x04,0xaa, +0x24,0x76,0x2a,0xfa,0x5a,0xb4,0x2a,0x54,0xf6,0x5a,0xfa,0x5a,0x74,0x5a, +0x54,0xf6,0x5a,0x7a,0x9a,0x54,0x3a,0xac,0x76,0xaa,0x4a,0xfa,0x54,0xea, +0x26,0xfa,0x74,0xaa,0xfe,0x5c,0xfe,0x24,0xf6,0x5a,0xfa,0xaa,0xdc,0xfa, +0x10,0xfe,0x28,0x28,0x10,0x28,0xc6,0xa4,0x54,0xe4,0x54,0xc6,0xfc,0x44, +0xd2,0xac,0xf8,0xae,0xda,0x8a,0xf2,0x22,0xfc,0x58,0x2e,0xfa,0x72,0xaa, +0x10,0xfe,0x20,0x3c,0x24,0x44,0x8c,0x48,0xee,0x54,0x68,0x7a,0xac,0xaa, +0x48,0xee,0x58,0x6c,0x7e,0xa4,0xaa,0x48,0xee,0x5c,0x6c,0x7e,0xa0,0xb2, +0x7e,0x42,0x42,0x7e,0x42,0x42,0x7e,0xbe,0xa2,0xa2,0xbe,0xa2,0xa2,0xbe, +0x7c,0x44,0x7c,0x44,0x7c,0xfe,0x10,0xee,0xaa,0xee,0xaa,0xee,0x12,0x26, +0x7c,0x44,0x7c,0x20,0x7e,0xaa,0x56,0x28,0x7c,0x28,0xfe,0x7c,0x44,0x7c, +0x7c,0x44,0x7e,0x50,0xbc,0x10,0xfe,0x08,0xfc,0xb4,0xfe,0xa8,0xe8,0x36, +0x10,0x7c,0x38,0xfe,0x44,0xba,0x38,0x08,0xee,0xb8,0xee,0xa8,0xee,0x08, +0x1e,0xea,0xb2,0xe6,0xbe,0xf2,0x1e,0x7c,0x44,0x78,0x44,0xba,0x28,0xfe, +0x08,0xfc,0xa8,0xfe,0xa4,0xfe,0x14,0x0c,0xf4,0xbe,0xea,0xbe,0xd4,0x26, +0x7c,0x44,0xfe,0x44,0x7c,0x54,0xb2,0x04,0xee,0xa4,0xfe,0xaa,0xee,0x0a, +0x7c,0x44,0x7c,0x38,0xfe,0x34,0xdc,0x06,0xf8,0xaa,0xfe,0xaa,0xf4,0x2a, +0x08,0xfe,0xb4,0xfe,0xa0,0xec,0x0c,0x28,0xfe,0x38,0xfe,0x44,0xba,0x38, +0x7c,0x7c,0x28,0xfe,0x54,0x38,0xd6,0x1e,0xea,0xbe,0xe4,0xae,0xfc,0x0e, +0x28,0xfe,0xaa,0xfe,0xaa,0xaa,0xfe,0x10,0x7c,0x16,0xfc,0x10,0xfe,0x7c, +0x7c,0x44,0xfe,0x52,0x5a,0xf4,0x1a,0x3e,0x22,0x3e,0x22,0x3e,0x42,0x86, +0x20,0xfe,0x20,0x7c,0xa4,0x3c,0x24,0x7e,0x52,0x70,0x5e,0x7a,0x54,0xba, +0x4e,0xea,0xae,0xea,0x8e,0xaa,0xd6,0x2e,0xfa,0x4e,0x72,0xfe,0x10,0xfe, +0xee,0x4a,0xee,0xaa,0x4e,0xea,0x56,0x5e,0xfa,0x5e,0x7a,0xfe,0x0a,0x96, +0x10,0xfe,0x10,0x38,0x54,0x92,0x10,0x10,0x7c,0x10,0xfe,0x10,0x38,0xd6, +0x10,0xfe,0x10,0x7c,0x10,0x38,0xd6,0x10,0xfe,0x10,0x38,0x54,0xba,0x10, +0x28,0xf8,0x28,0x78,0x68,0xaa,0x2e,0x5c,0xd4,0x54,0xd4,0xd4,0x54,0x66, +0x44,0xfe,0x44,0xc6,0xcc,0x74,0x4c,0x24,0xfe,0x24,0x74,0x6c,0xa4,0x2c, +0x10,0xfe,0x54,0x7c,0x10,0x38,0xd6,0x18,0x68,0x10,0xee,0x7c,0x38,0xd6, +0x10,0xfe,0x54,0x10,0xfe,0x38,0xd6,0x10,0xfe,0x54,0x7c,0x54,0x38,0xd6, +0x54,0xd4,0x62,0xc8,0xc8,0x54,0x7a,0x5e,0xd0,0x5e,0xda,0xda,0x64,0x5a, +0x24,0xfe,0x24,0x6c,0x76,0xa4,0x24,0x50,0xde,0x74,0xd4,0xd4,0x48,0x76, +0x7c,0x54,0x7c,0x54,0xfe,0x38,0xd6,0x48,0xfe,0x48,0xfc,0xd4,0x48,0x76, +0x90,0x3c,0x94,0x26,0xfe,0x38,0xd6,0x50,0xc8,0x7e,0xc8,0xdc,0x48,0x7e, +0x10,0xfe,0x38,0xd6,0x7c,0x44,0xfe,0x54,0xfe,0x92,0x7c,0x10,0x38,0xd6, +0x48,0xfe,0x54,0xe2,0xd4,0x48,0x76,0x58,0xdc,0x68,0xfe,0xc8,0x5c,0x6a, +0x5e,0xf2,0x5e,0xf2,0xde,0x54,0x5a,0x4c,0xd4,0x48,0xd4,0xe2,0x5c,0x5c, +0x10,0xfe,0xaa,0x74,0xfe,0x38,0xd6,0x6a,0xc4,0x48,0xfe,0xd4,0x4c,0x72, +0x50,0xde,0x4c,0xfe,0xd4,0x5e,0x44,0x44,0xfe,0x54,0xfc,0xd6,0x54,0x4a, +0x48,0xdc,0x7e,0xd4,0xea,0x5c,0x48,0x10,0x7c,0x38,0x54,0xfe,0x6c,0xb6, +0x44,0xde,0x44,0xd6,0xd6,0x50,0x5e,0x48,0xd4,0x7e,0xea,0xfe,0x48,0x76, +0xaa,0xfe,0x28,0x7c,0xfe,0x38,0xd6,0x5e,0xe8,0x4c,0xf6,0xd6,0x44,0x5e, +0x92,0x6c,0xba,0x10,0xfe,0x38,0xd6,0x54,0xfe,0x54,0xfe,0xdc,0x7e,0x54, +0x54,0xfe,0x5c,0xfe,0xea,0x5c,0x6a,0x7e,0xdc,0x5c,0xc0,0xfe,0x48,0x6a, +0x54,0xfe,0x5c,0xd4,0xfe,0x48,0x76,0x48,0xee,0x54,0xee,0xdc,0x4c,0x4e, +0x54,0xfe,0x54,0xfe,0xdc,0x5c,0x62,0x52,0xfe,0x52,0xfa,0xee,0x52,0x7a, +0x5c,0xfe,0x54,0xea,0xfe,0x62,0x6a,0x52,0xe4,0x52,0xfc,0xd6,0x54,0x6a, +0x40,0x7e,0x52,0x90,0x10,0x28,0xc6,0x90,0x1e,0x2a,0x08,0x88,0x94,0xa2, +0x54,0x86,0x2a,0x54,0x84,0x74,0x7a,0xe8,0x2e,0xb6,0xe4,0x24,0xa4,0x7a, +0x10,0x10,0x5c,0x50,0x50,0x50,0xfe,0xfe,0x10,0x10,0x5c,0x50,0x50,0xfe, +0x6a,0x08,0xfe,0x28,0x74,0x64,0xf2,0x10,0x5c,0x50,0xfe,0x54,0x9a,0x70, +0x10,0x5e,0xfc,0x76,0x5a,0x76,0x7e,0x7e,0x54,0x7e,0x54,0x46,0x54,0xbe, +0xfe,0x48,0x6a,0xac,0x68,0x4a,0x8e,0xea,0x5e,0x68,0xbc,0x6a,0x44,0x9a, +0x2e,0x4a,0x60,0x4e,0x6a,0xc4,0x5a,0x5e,0x2a,0xd0,0x2e,0xfa,0x74,0xaa, +0x3c,0x34,0x24,0xfe,0x54,0x7e,0x0c,0x40,0x7e,0xb4,0xfe,0x54,0x7e,0x0c, +0x10,0x7c,0x10,0xfe,0x54,0xfe,0x7c,0x48,0x48,0x7a,0x4c,0x48,0x7a,0xce, +0x0c,0x70,0x1e,0xf0,0x1e,0xf0,0x1e,0x0c,0x70,0x50,0x7e,0x48,0x44,0xe2, +0x7c,0x44,0x7c,0x50,0x7e,0x48,0xe6,0x40,0x7e,0xb8,0x7c,0x54,0x24,0xd2, +0x10,0x12,0xf4,0x38,0x54,0x92,0x30,0x50,0x12,0xf4,0x38,0x54,0x92,0x30, +0x30,0x00,0x32,0xd4,0x58,0x94,0x32,0x14,0xfe,0x10,0x54,0x38,0xd4,0x32, +0x84,0x14,0x9e,0x36,0x94,0x92,0x9e,0x88,0x1c,0x8c,0x3e,0x88,0x88,0xb6, +0xa0,0x3e,0xd8,0x3c,0x84,0x84,0x82,0xbe,0x02,0xba,0x2a,0xba,0x82,0x86, +0x88,0x3e,0xaa,0x3e,0xaa,0xaa,0xbe,0x88,0x08,0x94,0x3a,0x80,0x9c,0x9c, +0x94,0x14,0x94,0x22,0x9c,0x94,0x9c,0x10,0x7c,0x44,0x7c,0xda,0x54,0xb2, +0x88,0x1c,0x88,0x3e,0x88,0x94,0xba,0x88,0x3e,0xaa,0x3c,0xb4,0xa8,0xd6, +0x88,0x3e,0x94,0x14,0x94,0x98,0xbe,0x90,0x08,0xbe,0x08,0x9c,0x88,0xbe, +0x98,0x00,0x98,0x6a,0xac,0xca,0x98,0x94,0x3e,0x88,0x1c,0x88,0xbe,0x88, +0x98,0x1e,0xa8,0x3e,0x94,0x94,0xa6,0x84,0x18,0xbe,0x08,0x9c,0x94,0x9c, +0x84,0x38,0xa6,0x38,0xb6,0xb4,0xd2,0x88,0x3e,0x94,0x3a,0x98,0x9a,0xaa, +0x8a,0x3e,0x88,0x3c,0x8a,0x84,0xba,0x94,0x22,0x88,0x14,0xa2,0x9c,0x9c, +0xa0,0x3e,0x9c,0x7e,0xb4,0xbe,0x8c,0xaa,0x08,0xbe,0x22,0xbe,0xa2,0xa6, +0x88,0x3e,0x90,0x16,0xba,0x94,0x9a,0xbe,0x22,0x94,0x26,0xbe,0x9c,0xaa, +0xbe,0x22,0xbe,0x24,0xb6,0xa4,0xb6,0x88,0x1c,0x88,0x3e,0x94,0x9c,0x94, +0x88,0x3e,0x94,0x08,0xb6,0x9c,0xa4,0x84,0x3e,0xa4,0x3c,0xa6,0xbc,0xda, +0xbc,0x24,0xbc,0x00,0xbc,0xac,0xfe,0xba,0x2e,0xbe,0x2e,0xba,0x82,0xaa, +0x94,0x3e,0x94,0x7e,0xaa,0xd0,0x9c,0xae,0x7a,0xae,0x7a,0xde,0xfa,0x8a, +0x9c,0x14,0xbe,0x10,0x9e,0xaa,0x96,0x94,0x3e,0x94,0x7e,0xaa,0xbe,0xa2, +0xbe,0x24,0xae,0x2e,0xa4,0xb6,0xcc,0x94,0x1e,0xb4,0x1e,0x90,0xfe,0x10, +0x8c,0x34,0x9e,0x1a,0x9e,0x80,0xaa,0x88,0x3e,0xa2,0x1c,0xaa,0x9c,0xa2, +0x94,0x7e,0xaa,0x3e,0xfe,0x88,0xb6,0x96,0x3e,0x96,0x3a,0xbe,0x88,0xaa, +0xbe,0x1a,0xbe,0x3a,0x9e,0xba,0x92,0x94,0x36,0xba,0x7a,0x9a,0xac,0xda, +0x10,0x10,0x54,0x58,0x10,0x28,0xc6,0x5e,0x44,0xe4,0xc4,0x44,0x64,0x8c, +0x7e,0x48,0x6a,0x6c,0x48,0x54,0xa2,0x4a,0x94,0x4a,0x10,0x54,0x28,0xc6, +0x92,0xfe,0x48,0x6a,0x6c,0x48,0xb6,0x10,0x1c,0x10,0x7c,0x7c,0x00,0xaa, +0x80,0xfe,0x54,0xfe,0x54,0xfe,0xaa,0x74,0x5e,0xb4,0x24,0xca,0x00,0xaa, +0x48,0x5c,0xfe,0xd4,0x7e,0x54,0xa6,0xfe,0xaa,0xf2,0xae,0xee,0x00,0xaa, +0x28,0xfc,0x5c,0x7c,0xae,0x00,0xaa,0x28,0x6c,0xf4,0x6c,0xb6,0x00,0xaa, +0x54,0x5e,0xec,0xd4,0x6a,0x40,0xaa,0x28,0xc6,0x28,0x28,0x10,0x28,0xc6, +0x48,0x48,0x7e,0x40,0x7c,0x44,0x84,0xae,0xa8,0xee,0x8a,0xea,0xb4,0xaa, +0x50,0x7c,0x90,0x10,0xfe,0x10,0x10,0xd0,0xde,0xf4,0x54,0xd4,0x48,0x76, +0xd0,0xde,0xee,0x4e,0xd6,0x6a,0x56,0xc8,0xdc,0xc8,0x7e,0xc4,0x7e,0x54, +0x14,0x10,0xfe,0x10,0x10,0x28,0xc6,0xbe,0x52,0xb2,0x76,0xb0,0x32,0xde, +0x4a,0x48,0xfe,0x48,0xc8,0x54,0x62,0xa8,0x5e,0xba,0x7e,0xa8,0x2a,0xde, +0x10,0xfe,0x54,0x20,0x54,0xfe,0x10,0xfe,0x10,0x10,0x7c,0x10,0x14,0xfe, +0xfe,0x10,0x10,0x7c,0x10,0x10,0xfe,0xe6,0x4c,0x6c,0xee,0x4c,0xd4,0x2e, +0xfe,0x52,0x5e,0xf2,0x5e,0xec,0x16,0xca,0x7e,0x48,0xea,0x5c,0xea,0x18, +0xfe,0x6a,0x7e,0xea,0x7e,0xc8,0x3e,0x50,0x7e,0x90,0x10,0x7c,0x10,0xfe, +0x10,0xfe,0x24,0x7e,0x5c,0x48,0xbe,0x7e,0x52,0x7e,0x52,0x7e,0x52,0x96, +0xfe,0x92,0x92,0xfe,0x92,0x92,0xfe,0x10,0xfe,0x92,0xfe,0x92,0x92,0xfe, +0x10,0xfe,0x92,0xfe,0x92,0xfe,0x10,0x7c,0x54,0x7c,0x54,0xfe,0x22,0xc6, +0xf0,0xbe,0xf4,0xb4,0xb4,0xf4,0x0c,0xfe,0x10,0xba,0xba,0xba,0x82,0xfe, +0x7c,0x54,0x7c,0x54,0x7c,0xaa,0x48,0x5e,0x56,0xf6,0xde,0x56,0x76,0x9e, +0x2e,0xc6,0x96,0xea,0x7c,0x54,0x7c,0x06,0xea,0xe4,0xea,0xf0,0xee,0x0e, +0xfe,0x54,0xfe,0x38,0xd6,0x7c,0x7c,0x7c,0x54,0x7c,0x28,0xfe,0x00,0xc6, +0x9e,0xe4,0x9e,0x6a,0xec,0x58,0xb6,0x08,0x7e,0xdc,0x7e,0xea,0x76,0xa2, +0x08,0x7e,0xc4,0x7e,0xea,0x7e,0xaa,0x74,0xaa,0x44,0xba,0x7c,0x28,0xce, +0x74,0xaa,0x44,0xba,0x28,0x10,0xfe,0x10,0x7e,0x42,0x7e,0x42,0x42,0x7e, +0xfe,0x10,0x7c,0x44,0x7c,0x44,0x7c,0x48,0xee,0xb2,0xea,0xa6,0xe2,0x06, +0x10,0x7c,0x44,0x7c,0xfe,0x10,0xfe,0x08,0x7e,0x4a,0x7c,0x54,0x48,0xb6, +0x00,0x7c,0x54,0x54,0x54,0x54,0xfe,0x24,0xfe,0x44,0x82,0x7c,0x54,0xfe, +0x04,0x7e,0x64,0xaa,0x7c,0x54,0xfe,0xee,0xaa,0xee,0x12,0x7c,0x54,0xfe, +0x7e,0x42,0x7e,0x42,0x7e,0x42,0x7e,0x10,0xfe,0x10,0xbc,0xa4,0xbc,0xfe, +0x2e,0xfa,0x2e,0x7a,0x6e,0xaa,0x2e,0x10,0x54,0x92,0x3c,0xe4,0x3c,0x3c, +0x0c,0x70,0x3c,0xfe,0x7c,0xa4,0x3c,0x3c,0xa4,0xbc,0xa4,0xfe,0x10,0x92, +0x10,0xfe,0x38,0x38,0xfe,0x00,0xc6,0xfe,0xb2,0xfe,0xb2,0xfe,0xb4,0xfa, +0x24,0xfe,0x10,0xfe,0x5c,0x5c,0x9c,0x40,0x7c,0x90,0xfe,0x10,0x28,0xc6, +0x40,0x7e,0xaa,0x7a,0x2a,0x5a,0x8e,0x9e,0xe0,0x5e,0xf2,0x5e,0x6c,0x9e, +0xfe,0x20,0x20,0x7c,0xa4,0x24,0x3c,0xe8,0x5c,0x5a,0x88,0x6a,0x64,0x18, +0xfe,0x4a,0x4a,0x9e,0x6a,0x6a,0x12,0xe4,0x5e,0x56,0x9e,0x7a,0x74,0x0a, +0xe4,0x5e,0x56,0x8c,0x7e,0x6c,0x0e,0xea,0x5e,0x4a,0x94,0x6a,0x74,0x1e, +0x7c,0x00,0xfe,0x10,0x54,0x92,0x30,0x48,0xe8,0x28,0x48,0xe8,0x4a,0x4e, +0x44,0xe4,0x2e,0x44,0xe4,0x44,0x5e,0x5c,0xf4,0x3c,0x54,0xfc,0x54,0x7e, +0x5e,0xf2,0x32,0x5e,0xec,0x4c,0x56,0x48,0xfe,0x2a,0x7e,0xea,0x7e,0x48, +0xfe,0x54,0x7c,0x00,0xfe,0x54,0xb2,0x76,0x52,0xac,0x44,0xba,0x54,0xb2, +0x24,0xfe,0x6c,0xb6,0xfe,0x54,0xb2,0x5e,0xec,0x2c,0x40,0xfe,0x56,0x5e, +0x74,0x24,0xf4,0x24,0x78,0xaa,0x2e,0xc8,0x48,0xea,0x6c,0xc8,0xd4,0x62, +0xe4,0x54,0xe4,0x54,0xc6,0xfc,0x44,0xc8,0x5c,0xda,0x68,0xca,0xc4,0x58, +0xd0,0x4a,0xd2,0x74,0xfa,0xd0,0x6e,0xec,0x54,0xe8,0x56,0xea,0xc4,0x58, +0xdc,0x54,0xfe,0x48,0xdc,0xc8,0x7e,0xd4,0x7e,0xe2,0x7e,0xd4,0xd4,0x66, +0xc4,0x58,0xfe,0x5c,0xdc,0xc8,0x7e,0x2e,0xfa,0x20,0xfe,0xaa,0x74,0xaa, +0xc8,0x5c,0xc8,0x7e,0xdc,0xdc,0x62,0x10,0xfe,0x82,0x28,0x28,0x44,0x82, +0x10,0xfe,0xaa,0x4c,0xf8,0x2a,0xce,0x10,0xfe,0xaa,0x4c,0x38,0x10,0xfe, +0x10,0xfe,0xaa,0x4c,0x30,0xca,0xba,0x10,0xfe,0x44,0x24,0x28,0x28,0xfe, +0x10,0x7c,0x28,0xfe,0x44,0xfe,0x10,0x10,0x7c,0x28,0xfe,0x7c,0x10,0xfe, +0x24,0xfe,0x5a,0xfe,0x5a,0x6c,0xb6,0x48,0x6e,0xb4,0x24,0x24,0x24,0x2c, +0x48,0x6e,0xb4,0x10,0xfe,0x10,0xee,0x48,0x6e,0xb4,0x10,0x7c,0x54,0x7c, +0x48,0x6e,0xb4,0x7c,0x50,0x3e,0xd2,0x48,0x6e,0xb4,0x7e,0x14,0xfe,0x10, +0x48,0x6e,0xb4,0x18,0xfe,0x28,0x18,0x48,0x6e,0xb4,0x68,0x7e,0x6a,0xb6, +0x48,0x6e,0xb4,0x38,0xc6,0x38,0x38,0x48,0x6e,0xb4,0xfe,0x92,0x38,0xd6, +0x48,0x6e,0xb4,0x7c,0x44,0xfe,0x48,0x48,0x6e,0xb4,0xfe,0xb2,0x3c,0x3c, +0x48,0x6e,0xb4,0x2a,0xfe,0x7a,0xae,0x48,0x6e,0xb4,0xee,0xea,0x9a,0xe8, +0x48,0x6e,0xb4,0x4c,0xee,0x38,0xd6,0x48,0x6e,0xb4,0xee,0xee,0xba,0xba, +0x54,0x10,0xfe,0x10,0x38,0xd6,0x10,0xb4,0x54,0xe2,0x5c,0xd4,0xd4,0x6c, +0xa8,0x5c,0xc8,0x7e,0xd4,0xdc,0x54,0x88,0x7e,0xec,0x66,0xfc,0xea,0x4e, +0x10,0x64,0x18,0x24,0xfa,0x10,0x92,0x7c,0x10,0x60,0x14,0xfa,0x10,0x92, +0x5e,0x82,0x42,0xbe,0x50,0xf2,0x5e,0x48,0x8e,0x52,0xaa,0x46,0xe2,0x46, +0x40,0x9e,0x44,0xa4,0x44,0xe4,0x5e,0x48,0xbe,0x6a,0xaa,0x76,0xe2,0x66, +0x48,0xbe,0x48,0xaa,0x7e,0xc8,0x4e,0x42,0x9c,0x54,0xbe,0x54,0xf4,0x5a, +0x7c,0x94,0x56,0x92,0x5a,0xe4,0x5a,0x10,0x7c,0xfe,0x24,0xfa,0x10,0x92, +0x5e,0x96,0x56,0xbe,0x56,0xf6,0x5e,0x4c,0x94,0x48,0xb6,0x48,0xe0,0x4c, +0x5c,0x94,0x5c,0xb4,0x5c,0xd4,0x7e,0x7c,0x94,0x48,0xb6,0x5c,0xc8,0x7e, +0x48,0xbe,0x48,0x9c,0x40,0xdc,0x5c,0x48,0x94,0x6e,0x80,0x5c,0xd4,0x5c, +0x48,0xbe,0x54,0xba,0x54,0xd4,0x66,0x48,0x94,0x6e,0x80,0x7e,0xd4,0x7a, +0x4c,0xb4,0x5e,0xba,0x5e,0xf0,0x5e,0x4c,0x8c,0x40,0xbe,0x52,0xfe,0x52, +0x48,0xbe,0x48,0xbe,0x62,0xd4,0x66,0x48,0x9c,0x54,0x9c,0x7e,0xea,0x48, +0x54,0xa2,0x54,0xba,0x40,0xf2,0x6e,0x5c,0x84,0x7e,0x88,0x6a,0xdc,0x6a, +0x48,0x9c,0x54,0x9c,0x7a,0xdc,0x6a,0x7e,0x94,0x5c,0x90,0x5e,0xee,0x4a, +0x48,0xbe,0x5c,0x9c,0x48,0xdc,0x6a,0x5a,0xae,0x54,0xb6,0x54,0xdc,0x56, +0x48,0xbe,0x62,0x9e,0x74,0xd6,0x56,0x48,0x9c,0x48,0xbe,0x5c,0xdc,0x62, +0x56,0xbc,0x5e,0xbc,0x46,0xdc,0x5a,0xfe,0xfe,0x28,0xee,0x28,0xee,0x48, +0xfe,0xaa,0xfe,0x24,0xbc,0xa4,0xfe,0xfe,0xaa,0xfe,0x38,0xfe,0x34,0xdc, +0x24,0xfe,0x10,0x7c,0x10,0xfe,0x10,0x24,0xfe,0x7c,0x10,0xfe,0x10,0xee, +0xfa,0x5e,0xf4,0x5e,0x64,0xfe,0x74,0x24,0xfe,0x10,0xfe,0x2a,0xfc,0x2a, +0xfe,0x12,0x5a,0x12,0x36,0xda,0x36,0xfe,0x5a,0x36,0xda,0x7c,0x28,0xfe, +0xfe,0x5a,0x36,0xda,0x20,0x7c,0x7c,0x12,0x7c,0x18,0xfe,0x3c,0xd0,0x1e, +0x12,0x7c,0x18,0xfe,0x30,0xde,0x02,0x12,0x7c,0x18,0xfe,0x20,0xdc,0x1c, +0x54,0xfe,0x54,0xd4,0x7e,0xd4,0x64,0xfe,0x24,0x3c,0x3c,0x24,0xfe,0x04, +0xfe,0x6a,0xfe,0x10,0x7c,0x10,0xfe,0xee,0xee,0x82,0xfe,0xba,0xfa,0x8a, +0xf6,0x7c,0x6e,0x7c,0x66,0xf4,0x3a,0x10,0xfe,0x92,0xaa,0x92,0xaa,0x86, +0xfe,0xaa,0xea,0xbe,0xe0,0xa2,0xbe,0x10,0xfe,0x24,0xfa,0x44,0x7c,0x44, +0xe4,0xbe,0xe4,0xbe,0xf6,0xb6,0xa4,0xfe,0x92,0xfe,0x7c,0x44,0x7c,0x44, +0x28,0xee,0x28,0xfe,0x44,0x7c,0x44,0xe8,0xae,0xf6,0xaa,0xf6,0xbe,0xa2, +0x24,0x56,0xf4,0x76,0x56,0x74,0x56,0xe4,0xb8,0xe6,0xb8,0xf6,0xb4,0xb2, +0xfa,0xa2,0xf4,0xaa,0xf6,0xb2,0xbe,0xee,0xaa,0xfe,0xa8,0xee,0xb6,0xaa, +0xf0,0xbe,0xec,0xac,0xf4,0xa8,0xb6,0xf4,0xbe,0xe4,0xbe,0xf4,0xb4,0xba, +0xfe,0x90,0xfc,0x84,0xfc,0x90,0xfe,0xf4,0xa6,0xfe,0x96,0xf0,0xae,0xfe, +0x10,0x7e,0x42,0x7a,0x5e,0x42,0x7e,0xfe,0x28,0x74,0x10,0x7c,0x10,0xfe, +0x46,0xba,0xee,0xba,0xfe,0x00,0xc6,0x0c,0x70,0xfe,0x10,0x7c,0x44,0x7c, +0x10,0x28,0xd6,0x38,0xfe,0x44,0x7c,0x48,0xfe,0xa0,0xbc,0xf4,0xb4,0xb6, +0x4a,0xea,0xaa,0xb0,0xee,0xaa,0xae,0x10,0x7c,0x44,0x7c,0x7c,0x48,0xe6, +0x38,0xc8,0x7c,0x54,0x7c,0x42,0x3e,0x28,0xfe,0x28,0x4a,0xcc,0x4a,0x4e, +0x28,0xfe,0x28,0x7c,0xfe,0x24,0xfa,0x28,0xfe,0x7c,0x48,0xfe,0x28,0xd8, +0x28,0xfe,0x20,0xfe,0x40,0xbc,0x3c,0x28,0xfe,0x28,0xfe,0x10,0x7c,0x7c, +0x28,0xfe,0x28,0x54,0xfe,0x10,0xee,0x28,0xfe,0x10,0x28,0xfe,0x10,0x92, +0x28,0xfe,0x7c,0x44,0x7c,0xfe,0x10,0x28,0xfe,0x28,0x5e,0xc2,0x5a,0x5a, +0x28,0xfe,0x54,0x08,0xfe,0x38,0xd6,0x28,0xfe,0x8c,0x34,0x88,0x36,0x9c, +0x28,0xfe,0x5c,0x40,0xfe,0x38,0xd6,0x28,0xfe,0x3c,0x18,0xfe,0x34,0xdc, +0x28,0xfe,0x32,0xd4,0x52,0xfe,0xaa,0x28,0xfe,0x28,0x7c,0x76,0x74,0xba, +0x28,0xfe,0xba,0x6c,0xfe,0x38,0xd6,0x10,0x7c,0x54,0x54,0x7c,0x14,0xfa, +0xfe,0x10,0xee,0x54,0x7c,0x14,0xfa,0x20,0x7c,0x54,0x54,0x54,0x54,0xfe, +0x10,0x7c,0xfe,0x50,0x9a,0x54,0x92,0x5c,0x80,0x7e,0xc4,0x44,0x44,0x4c, +0x56,0xb8,0x56,0xfa,0x7a,0x52,0x56,0x56,0xb8,0x56,0xfa,0x52,0x7a,0x46, +0x56,0xb8,0x5e,0xea,0x52,0x7a,0x56,0x10,0xfe,0x10,0x2a,0xec,0x24,0x72, +0x10,0x7c,0x10,0xfc,0x2a,0xe4,0x32,0x28,0x7a,0x28,0xfe,0x66,0xd4,0x6a, +0x48,0xfe,0x48,0xdc,0xfe,0x68,0xb6,0x10,0xfe,0x54,0x7c,0xfe,0x68,0xb6, +0x4a,0xfe,0x28,0x5e,0xfa,0x7e,0x5a,0x62,0x7a,0xaa,0x72,0xfe,0x68,0xb6, +0x50,0xfe,0x2c,0x4c,0xf4,0x68,0x56,0xfe,0x28,0xfe,0xaa,0xce,0x82,0xfe, +0xfe,0x54,0x7c,0x10,0xfe,0x28,0xf6,0x7c,0x44,0x7c,0x44,0x7c,0x2a,0xce, +0x5e,0xf2,0x5e,0xf2,0x5e,0x6c,0x96,0x5e,0xf2,0x3e,0x52,0xfe,0x4c,0x56, +0x54,0xfe,0xaa,0x38,0x28,0x3a,0xce,0xe8,0xce,0xe6,0x38,0x38,0x3a,0xce, +0x2e,0xfa,0x5e,0x2a,0xfe,0x74,0xaa,0x4e,0x7a,0xae,0x7a,0xee,0x6c,0x76, +0x38,0xc8,0x7e,0x52,0x7e,0x42,0x86,0x6e,0xa6,0x7a,0x7e,0x74,0x5e,0xb4, +0x38,0xfe,0x00,0x38,0x00,0x7c,0x7c,0x44,0xe4,0x1e,0xc4,0x04,0xe4,0xe4, +0x44,0xde,0x04,0xd4,0x0c,0xc4,0xcc,0x52,0xda,0x1a,0xda,0x1a,0xd2,0xe2, +0x5e,0xe2,0x02,0xde,0x10,0xd2,0xde,0x48,0xfe,0x10,0xde,0x12,0xd2,0xe6, +0x5c,0xd4,0x26,0xdc,0x14,0xc8,0xf6,0x50,0xdc,0x28,0xc8,0x3e,0xc8,0xc8, +0x5e,0xd2,0x1e,0xd4,0x14,0xd2,0xe2,0x5e,0xe4,0x04,0xd6,0x14,0xd4,0xfe, +0xbe,0xc8,0x2a,0xc8,0x3e,0xc8,0xc8,0x5e,0xe2,0x1a,0xc2,0x1a,0xda,0xc6, +0x4a,0xc8,0x3e,0xc4,0x3c,0xd4,0xfa,0x48,0xdc,0x08,0xbe,0x04,0xfe,0xd4, +0x44,0xd8,0x3e,0xc8,0x1c,0xd4,0xdc,0x48,0xfe,0x08,0xdc,0x00,0xd2,0xee, +0x5e,0xd6,0x0a,0xd6,0x00,0xd2,0xee,0xb2,0xdc,0x26,0x94,0x3e,0xd0,0xee, +0x5c,0xc8,0x3c,0xd4,0x3e,0xd4,0xdc,0x44,0xfe,0x24,0xbc,0x2e,0xf4,0xea, +0x46,0xd6,0x1c,0xc4,0x1e,0xc0,0xd2,0x94,0xfe,0x22,0xbe,0x14,0xd4,0xe6, +0x48,0xfe,0x08,0xbe,0x22,0xd4,0xe6,0xbe,0xea,0x3e,0xc8,0x3e,0xdc,0xea, +0xbe,0xea,0x3e,0xaa,0x36,0xfe,0xe2,0xaa,0xd4,0x22,0xc8,0x2a,0xd4,0xe2, +0x48,0xd4,0x2e,0xc0,0x3e,0xfe,0xea,0x4a,0xdc,0x08,0xbe,0x10,0xee,0xce, +0x94,0xfe,0x14,0xbe,0x1c,0xfe,0xd4,0x52,0xfe,0x2a,0xbe,0x2e,0xda,0xea, +0x56,0xfc,0x1e,0xbc,0x06,0xdc,0xda,0x56,0xfa,0x74,0x9a,0x30,0xfe,0x38, +0x94,0xfe,0x08,0xbe,0x16,0xfc,0xd2,0x94,0xfe,0x1c,0xde,0x14,0xc8,0xf6, +0x28,0x44,0x10,0x28,0xc6,0x38,0x38,0xfe,0x00,0x7c,0x44,0x7c,0x28,0xfe, +0x28,0x7c,0x7c,0xfe,0x44,0x38,0xfe,0x38,0xc8,0x3c,0x3c,0xda,0x2c,0xda, +0x7c,0x44,0x7c,0x44,0x7c,0x00,0xc6,0x38,0xc8,0x7c,0x44,0x7c,0x7c,0xc6, +0xe4,0xbe,0xe4,0xa6,0xec,0x14,0xac,0x28,0x44,0xfa,0x28,0x7c,0x7c,0xc6, +0x28,0x4e,0xc8,0x4e,0x3c,0x3c,0xc6,0x10,0x7c,0x10,0xfe,0x44,0x7c,0xc6, +0xe4,0xbe,0xf2,0xae,0xe4,0x04,0xac,0x10,0x7c,0x54,0xfe,0x44,0x7c,0xc6, +0xfe,0xaa,0xfe,0x7c,0x44,0x7c,0xc6,0x2a,0x5e,0xc4,0x42,0x3c,0x3c,0xc6, +0x28,0xfe,0x2a,0xfe,0xc4,0x7c,0xc6,0x2e,0xc6,0xea,0x7c,0x44,0x7c,0xc6, +0x40,0xfe,0x5a,0xbe,0x24,0x3c,0xc6,0x24,0x58,0xfe,0x48,0x3c,0x3c,0xc6, +0x90,0x1e,0x2a,0x94,0x7c,0x7c,0xc6,0x44,0xee,0x44,0xaa,0x7c,0x7c,0xc6, +0x54,0xfe,0xaa,0x7c,0x44,0x7c,0xc6,0x24,0x48,0x6e,0xbc,0x24,0x3c,0xc6, +0x10,0x7c,0x10,0xfe,0x28,0xaa,0x58,0x10,0x7c,0x10,0xfe,0x1c,0x50,0xbe, +0x2e,0xf2,0x2e,0xf8,0x6e,0x60,0x9e,0x7c,0x44,0x7c,0x10,0x5c,0x50,0xbe, +0xe6,0xaa,0xe4,0x4a,0xf0,0xce,0xee,0x10,0x3c,0x24,0x3e,0xfc,0x14,0x6c, +0x10,0xfe,0x54,0x7c,0x54,0xfe,0x10,0xfe,0x92,0xfe,0x7c,0x54,0xfe,0x10, +0xee,0x40,0xfe,0xe4,0x44,0xea,0x5e,0xfc,0x54,0xc8,0xf6,0x5c,0xc8,0x7e, +0xe8,0x54,0xee,0xe0,0x5e,0xfe,0x56,0xe8,0x54,0xee,0xe0,0x5a,0xfa,0x5a, +0x24,0xde,0xea,0x5e,0xe4,0xbe,0xe4,0x28,0x7c,0x7c,0x00,0x7e,0x68,0xb6, +0xbe,0x4a,0x0a,0xd2,0x66,0x40,0xbe,0x84,0x58,0x10,0xde,0x54,0x64,0xbe, +0x9e,0x50,0x1e,0xda,0x54,0x6a,0xbe,0x8a,0x3e,0x08,0xea,0x6a,0x48,0xbe, +0xaa,0x08,0x3e,0xdc,0x6a,0x48,0xbe,0x88,0x5e,0x1e,0xd0,0x5e,0x52,0xbe, +0x9e,0x52,0x1e,0xd2,0x5c,0x56,0xbe,0x94,0x3e,0x08,0xdc,0x48,0x76,0xbe, +0x94,0x3e,0x08,0xea,0x7e,0x50,0xbe,0xbe,0x04,0x3e,0xea,0x7e,0x6a,0xbe, +0x88,0x7e,0x2a,0xfe,0x5c,0x6a,0xbe,0x98,0x1c,0x28,0xfe,0x54,0x5c,0xbe, +0x88,0x3e,0x1c,0xdc,0x7e,0x48,0xbe,0xbe,0x2a,0x3e,0xea,0x76,0x5e,0xbe, +0x94,0x1e,0x34,0xde,0x54,0x5e,0xbe,0x94,0x3e,0x16,0xda,0x6e,0x54,0xbe, +0xbe,0x2a,0x1c,0xdc,0x7e,0x48,0xbe,0x8e,0x4a,0x0a,0xde,0x52,0x5a,0xbe, +0x94,0x3e,0x08,0xd4,0x5c,0x54,0xbe,0x88,0x1c,0x3e,0xd4,0x7e,0x48,0xbe, +0x88,0x1c,0x3e,0xd4,0x5c,0x6a,0xbe,0x88,0x3e,0x14,0xfe,0x6a,0x76,0xbe, +0xb6,0x12,0x24,0xf6,0x5c,0x62,0xbe,0x88,0x3e,0x2a,0xfe,0x5c,0x62,0xbe, +0xf6,0x56,0xfc,0x56,0x66,0xf4,0x74,0x2e,0xfa,0x5c,0xfa,0x0a,0x6c,0x68, +0x7e,0x2a,0xfc,0x6a,0xfa,0x2c,0xf8,0x46,0xbe,0x6c,0xbe,0xe6,0x6c,0xb4, +0x2e,0x7a,0x2c,0xfa,0x4a,0xbc,0x38,0xee,0x42,0xe2,0xee,0xa8,0xea,0xee, +0xbe,0x14,0xbe,0x36,0xa2,0xbe,0xbe,0xea,0x5e,0xea,0xf2,0xac,0xf4,0xea, +0x7c,0x54,0x7c,0x54,0x7c,0x10,0xfe,0x38,0xfe,0x54,0x7c,0x54,0x38,0xfe, +0xfe,0xb2,0xf4,0xbe,0xf6,0x24,0xfc,0x7c,0x44,0xfe,0x54,0x7c,0x10,0xfe, +0x10,0x28,0xfe,0x10,0xfe,0x54,0xfe,0x44,0xa4,0xfe,0x44,0xe4,0x64,0xc4, +0x4c,0xae,0xf4,0x5e,0xe4,0x64,0xda,0x44,0xbe,0xf0,0x54,0xf4,0x6a,0xce, +0x5e,0xb2,0xfe,0x52,0xfe,0x74,0xda,0x5e,0xb2,0xfe,0x52,0xfe,0x7e,0xd2, +0x4a,0xbe,0xe8,0x5c,0xea,0x64,0xda,0x7e,0xa2,0xf6,0x6a,0xf6,0x7e,0xe2, +0x5c,0xa4,0xfe,0x48,0xea,0x5c,0xea,0x48,0xbe,0xd4,0x7e,0xdc,0x5c,0xe6, +0x3c,0x20,0x38,0x20,0xfe,0x28,0x76,0xee,0xaa,0xee,0x82,0x82,0x82,0x86, +0xee,0xaa,0xee,0x92,0xfa,0xb2,0xd6,0xee,0xee,0x82,0xfe,0xaa,0xfe,0xaa, +0xee,0xaa,0xfe,0xaa,0xba,0xaa,0xba,0xee,0xee,0xaa,0x92,0xfe,0x92,0xaa, +0xee,0xee,0x9a,0xaa,0x92,0xee,0xba,0xe4,0xbe,0xc8,0xae,0xaa,0xca,0x96, +0xcc,0xd4,0x88,0xf6,0xdc,0xbe,0x84,0xfe,0xb2,0xde,0xb2,0xbe,0xd4,0x9a, +0xe4,0xf6,0xa4,0xf6,0xdc,0x88,0xbe,0xc8,0xfe,0xae,0xc0,0xfe,0x94,0xa6, +0xc8,0xd4,0xbe,0xc8,0xfe,0x88,0xaa,0xc8,0xdc,0xbe,0xd4,0xe6,0x88,0xbe, +0xc8,0xd4,0xbe,0xea,0xfe,0x88,0xb6,0xdc,0xd4,0xbe,0xd0,0xde,0xaa,0x96, +0xd4,0xfe,0x90,0xea,0xdc,0xaa,0x98,0xe4,0xb6,0xe4,0xb6,0xa8,0xdc,0x9c, +0xde,0xea,0x94,0xe2,0xdc,0x88,0xaa,0xc8,0xfe,0x94,0xfe,0xdc,0xbe,0x88, +0x28,0x7c,0xa8,0x3c,0xfe,0x38,0xd6,0x4a,0xee,0x6c,0xbe,0xec,0x7c,0xae, +0x5a,0xfe,0x5c,0xfe,0xfc,0x2c,0xde,0xfe,0x10,0xfe,0x92,0xb6,0x92,0xb6, +0x38,0xfe,0xb6,0x00,0x7c,0x04,0x7c,0x38,0xfe,0xb6,0x00,0xfe,0x24,0xfa, +0x38,0xfe,0xb6,0x7c,0x54,0x7c,0x0e,0x10,0x7c,0x10,0xfe,0x44,0x7c,0x44, +0x26,0x7a,0x24,0xfe,0x56,0x7e,0x54,0x28,0xee,0x28,0xee,0x28,0xee,0x48, +0xfe,0x10,0xfe,0xaa,0xba,0xaa,0xfe,0x28,0xfe,0x28,0x7c,0x54,0xfe,0x10, +0x10,0x7c,0x28,0xfe,0x7c,0x44,0x7c,0xfe,0x48,0x5e,0x52,0x5e,0xc0,0x12, +0x5e,0x74,0x7e,0x7a,0x7e,0x50,0x9a,0xee,0x24,0x4e,0xea,0x6e,0x40,0xd2, +0x5e,0xa4,0xee,0x0a,0xee,0x60,0x52,0xee,0x04,0xee,0xaa,0x4e,0xe0,0x12, +0x6e,0x64,0xfe,0x2e,0x70,0x6a,0x9e,0x2e,0xf4,0xbe,0x5a,0x2e,0xd0,0x7a, +0x2e,0xf4,0x5e,0xfa,0xae,0x90,0xaa,0xfe,0xa4,0xfe,0xfa,0xae,0xf0,0xaa, +0xae,0x74,0xae,0x2a,0xfe,0x20,0xda,0x7c,0x54,0x7c,0x7c,0x54,0x5c,0xb6, +0xfc,0x54,0xd2,0x7c,0xd6,0x54,0x92,0x10,0x28,0xd6,0x30,0x34,0x28,0x76, +0x5e,0xb0,0x5e,0xda,0xda,0x94,0xea,0x48,0xae,0x56,0xe4,0xe4,0x84,0xea, +0x5e,0xa2,0x5a,0xc2,0xda,0x9a,0xe6,0x24,0xfe,0x10,0xfe,0x7a,0xb4,0x3a, +0x44,0xbe,0x52,0xec,0xee,0x8a,0xee,0x24,0xfe,0x10,0x7c,0x7c,0x44,0x7c, +0x7e,0x50,0x7c,0x50,0x7e,0x02,0xaa,0xee,0xca,0xea,0xcc,0xec,0x2a,0xb2, +0xe8,0xd4,0xfe,0xea,0xfe,0x28,0xb6,0x7c,0x4c,0xfe,0xc6,0x7c,0x44,0x4c, +0x10,0xfe,0x28,0x38,0xfe,0xaa,0xba,0x38,0xc8,0x7c,0x54,0x7c,0x00,0xaa, +0x10,0x7c,0x7c,0x40,0x7e,0x02,0xaa,0x08,0xdc,0xdc,0xd0,0xde,0x02,0x2a, +0x10,0x7c,0x10,0xfe,0x28,0x50,0xae,0x28,0xfe,0x28,0xfe,0x54,0x7c,0xc6, +0x7c,0x54,0x7c,0x10,0xfe,0x00,0xaa,0x10,0x38,0x28,0x7c,0x54,0xfe,0x48, +0x10,0x10,0x10,0x10,0x10,0x00,0x10,0x14,0x7e,0x28,0x28,0x28,0xfc,0x50, +0x08,0x3e,0x48,0x3c,0x12,0x7c,0x10,0x42,0xa4,0x48,0x10,0x24,0x4a,0x84, +0x30,0x48,0x50,0x24,0x54,0x88,0x76,0x02,0x04,0x08,0x08,0x08,0x04,0x02, +0x80,0x40,0x20,0x20,0x20,0x40,0x80,0x10,0x54,0x38,0x10,0x38,0x54,0x10, +0x10,0x10,0x10,0xfe,0x10,0x10,0x10,0x00,0x00,0x00,0x00,0xc0,0x40,0x80, +0x00,0x00,0x00,0x00,0x00,0xc0,0xc0,0x02,0x04,0x08,0x10,0x20,0x40,0x80, +0x3c,0x42,0x42,0x42,0x42,0x42,0x3c,0x10,0x30,0x10,0x10,0x10,0x10,0x38, +0x3c,0x42,0x02,0x0c,0x30,0x40,0x7e,0x3c,0x42,0x02,0x1c,0x02,0x42,0x3c, +0x04,0x0c,0x14,0x24,0x44,0x7e,0x04,0x7e,0x40,0x7c,0x42,0x02,0x42,0x3c, +0x3c,0x42,0x40,0x7c,0x42,0x42,0x3c,0x7e,0x02,0x04,0x08,0x08,0x10,0x10, +0x3c,0x42,0x42,0x3c,0x42,0x42,0x3c,0x3c,0x42,0x42,0x3e,0x02,0x42,0x3c, +0x00,0x30,0x30,0x00,0x30,0x30,0x00,0x00,0x30,0x30,0x00,0x30,0x10,0x20, +0x00,0x06,0x38,0xc0,0x38,0x06,0x00,0x00,0x00,0xfe,0x00,0xfe,0x00,0x00, +0x00,0xc0,0x38,0x06,0x38,0xc0,0x00,0x3c,0x42,0x02,0x0c,0x10,0x00,0x10, +0x38,0x44,0x9a,0xaa,0xb4,0x40,0x38,0x10,0x28,0x28,0x44,0x7c,0x82,0x82, +0x7c,0x42,0x42,0x7c,0x42,0x42,0x7c,0x1c,0x22,0x40,0x40,0x40,0x22,0x1c, +0x78,0x44,0x42,0x42,0x42,0x44,0x78,0x7e,0x40,0x40,0x7c,0x40,0x40,0x7e, +0x7e,0x40,0x40,0x7c,0x40,0x40,0x40,0x1c,0x22,0x40,0x4e,0x42,0x22,0x1c, +0x42,0x42,0x42,0x7e,0x42,0x42,0x42,0x38,0x10,0x10,0x10,0x10,0x10,0x38, +0x02,0x02,0x02,0x02,0x02,0x42,0x3c,0x42,0x44,0x48,0x50,0x68,0x44,0x42, +0x40,0x40,0x40,0x40,0x40,0x40,0x7e,0x82,0xc6,0xaa,0xaa,0x92,0x92,0x82, +0x42,0x62,0x52,0x4a,0x46,0x42,0x42,0x18,0x24,0x42,0x42,0x42,0x24,0x18, +0x7c,0x42,0x42,0x7c,0x40,0x40,0x40,0x18,0x24,0x42,0x42,0x4a,0x24,0x1a, +0x7c,0x42,0x42,0x7c,0x48,0x44,0x42,0x3c,0x42,0x40,0x3c,0x02,0x42,0x3c, +0xfe,0x10,0x10,0x10,0x10,0x10,0x10,0x42,0x42,0x42,0x42,0x42,0x42,0x3c, +0x82,0x82,0x44,0x44,0x28,0x28,0x10,0x82,0x92,0x92,0xaa,0xaa,0x44,0x44, +0x82,0x44,0x28,0x10,0x28,0x44,0x82,0x82,0x44,0x28,0x10,0x10,0x10,0x10, +0x7e,0x02,0x04,0x08,0x10,0x20,0x7e,0x0e,0x08,0x08,0x08,0x08,0x08,0x0e, +0xe0,0x20,0x20,0x20,0x20,0x20,0xe0,0x10,0x28,0x00,0x00,0x00,0x00,0x00, +0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x20,0x10,0x00,0x00,0x00,0x00,0x00, +0x00,0x00,0x38,0x04,0x3c,0x44,0x3c,0x40,0x40,0x58,0x64,0x44,0x44,0x78, +0x00,0x00,0x38,0x44,0x40,0x44,0x38,0x04,0x04,0x34,0x4c,0x44,0x44,0x3c, +0x00,0x00,0x38,0x44,0x7c,0x40,0x38,0x0c,0x10,0x38,0x10,0x10,0x10,0x10, +0x00,0x00,0x3c,0x44,0x3c,0x04,0x38,0x40,0x40,0x58,0x64,0x44,0x44,0x44, +0x10,0x00,0x10,0x10,0x10,0x10,0x10,0x08,0x00,0x08,0x08,0x08,0x48,0x30, +0x20,0x20,0x24,0x28,0x30,0x28,0x24,0x30,0x10,0x10,0x10,0x10,0x10,0x10, +0x00,0x00,0x68,0x54,0x54,0x54,0x54,0x00,0x00,0x58,0x64,0x44,0x44,0x44, +0x00,0x00,0x38,0x44,0x44,0x44,0x38,0x00,0x00,0x78,0x44,0x78,0x40,0x40, +0x00,0x00,0x3c,0x44,0x3c,0x04,0x04,0x00,0x00,0x58,0x64,0x40,0x40,0x40, +0x00,0x00,0x3c,0x40,0x38,0x04,0x78,0x00,0x20,0x78,0x20,0x20,0x24,0x18, +0x00,0x00,0x44,0x44,0x44,0x4c,0x34,0x00,0x00,0x44,0x44,0x28,0x28,0x10, +0x00,0x00,0x44,0x54,0x54,0x28,0x28,0x00,0x00,0x44,0x28,0x10,0x28,0x44, +0x00,0x00,0x44,0x28,0x28,0x10,0x60,0x00,0x00,0x7c,0x08,0x10,0x20,0x7c, +0x06,0x08,0x08,0x10,0x08,0x08,0x06,0x10,0x10,0x10,0x10,0x10,0x10,0x10, +0xc0,0x20,0x20,0x10,0x20,0x20,0xc0,0x00,0x00,0x00,0x40,0xa0,0x40,0x00, +0xe0,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x20,0x20,0x20,0x20,0xe0,0x00, +0x00,0x00,0x00,0x00,0x80,0x40,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00, +0xe0,0x20,0xe0,0x20,0x40,0x80,0x00,0x00,0x00,0xe0,0x60,0x40,0x80,0x00, +0x00,0x00,0x20,0x40,0xc0,0x40,0x00,0x00,0x00,0x40,0xe0,0xa0,0x20,0x00, +0x00,0x00,0x00,0xe0,0x40,0xe0,0x00,0x00,0x00,0x20,0xe0,0x60,0xa0,0x00, +0x00,0x00,0x40,0xe0,0x60,0x40,0x00,0x00,0x00,0x00,0xc0,0x40,0xe0,0x00, +0x00,0x00,0xe0,0x60,0x20,0xe0,0x00,0x00,0x00,0xe0,0xe0,0x20,0xc0,0x00, +0x00,0x00,0x80,0x60,0x00,0x00,0x00,0xe0,0x20,0x60,0x40,0x40,0x80,0x00, +0x20,0x20,0x40,0xc0,0x40,0x40,0x00,0x40,0xe0,0xa0,0x20,0x20,0x40,0x00, +0x00,0xe0,0x40,0x40,0x40,0xe0,0x00,0x20,0xe0,0x20,0x60,0xa0,0x20,0x00, +0x40,0xe0,0x60,0x60,0xa0,0xa0,0x00,0x40,0xe0,0x40,0xe0,0x40,0x40,0x00, +0x40,0x60,0xa0,0x20,0x40,0x80,0x00,0x80,0xe0,0xc0,0x40,0x40,0x80,0x00, +0x00,0xe0,0x20,0x20,0x20,0xe0,0x00,0xa0,0xe0,0xa0,0x20,0x40,0x80,0x00, +0xc0,0x00,0xc0,0x00,0x20,0xc0,0x00,0xe0,0x20,0x20,0x40,0x40,0xa0,0x00, +0x80,0xe0,0xa0,0xa0,0x80,0xe0,0x00,0xa0,0x60,0x60,0x20,0x40,0x80,0x00, +0x40,0x60,0xa0,0x60,0x40,0x80,0x00,0xe0,0x40,0xe0,0x40,0x40,0x80,0x00, +0x00,0xe0,0xe0,0x20,0x20,0xc0,0x00,0xe0,0x00,0xe0,0x40,0x40,0x80,0x00, +0x80,0x80,0xc0,0xa0,0x80,0x80,0x00,0x40,0x40,0xe0,0x40,0x40,0x80,0x00, +0x00,0x60,0x00,0x00,0x00,0xe0,0x00,0xe0,0x20,0xa0,0x40,0x40,0xa0,0x00, +0x40,0xe0,0x20,0x40,0xe0,0x40,0x00,0x20,0x20,0x20,0x20,0x40,0x80,0x00, +0x40,0x20,0xa0,0xa0,0xa0,0xa0,0x00,0x80,0x80,0xe0,0x80,0x80,0x60,0x00, +0xe0,0x20,0x20,0x20,0x40,0x80,0x00,0x40,0x40,0xa0,0xa0,0x20,0x00,0x00, +0x40,0xe0,0x40,0xe0,0xe0,0x40,0x00,0xe0,0x20,0x20,0xc0,0x40,0x20,0x00, +0x00,0xe0,0x00,0x60,0x00,0xe0,0x00,0x40,0x40,0x40,0x80,0xa0,0xe0,0x00, +0x20,0xa0,0x40,0x40,0xa0,0x80,0x00,0xe0,0x40,0xe0,0x40,0x40,0x60,0x00, +0x40,0xe0,0x60,0x60,0x40,0x40,0x00,0xc0,0x40,0x40,0x40,0x40,0xe0,0x00, +0xe0,0x20,0xe0,0x20,0x20,0xe0,0x00,0xe0,0x00,0xe0,0x20,0x20,0xc0,0x00, +0xa0,0xa0,0xa0,0x20,0x20,0x40,0x00,0x40,0x40,0xc0,0xc0,0xc0,0xe0,0x00, +0x80,0x80,0x80,0x80,0xa0,0xc0,0x00,0x00,0xe0,0xa0,0xa0,0xa0,0xe0,0x00, +0xe0,0xa0,0x20,0x20,0x40,0x80,0x00,0xc0,0x00,0x00,0x20,0x20,0xc0,0x00, +0xa0,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0xa0,0x40,0x00,0x00,0x00,0x00, +0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x44,0x28,0x7c,0x10,0x7c,0x10, +}; + +#ifdef __AVR__ +PROGMEM static const uint16_t ftable [] = { +#else // __AVR__ +static const uint16_t ftable [] = { +#endif +0x0020,0x0021,0x0022,0x0023,0x0024,0x0025,0x0026,0x0027, +0x0028,0x0029,0x002a,0x002b,0x002c,0x002d,0x002e,0x002f, +0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037, +0x0038,0x0039,0x003a,0x003b,0x003c,0x003d,0x003e,0x003f, +0x0040,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047, +0x0048,0x0049,0x004a,0x004b,0x004c,0x004d,0x004e,0x004f, +0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056,0x0057, +0x0058,0x0059,0x005a,0x005b,0x005c,0x005d,0x005e,0x005f, +0x0060,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067, +0x0068,0x0069,0x006a,0x006b,0x006c,0x006d,0x006e,0x006f, +0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077, +0x0078,0x0079,0x007a,0x007b,0x007c,0x007d,0x00a2,0x00a3, +0x00a5,0x00a7,0x00a8,0x00ac,0x00b0,0x00b1,0x00b4,0x00b6, +0x00d7,0x00f7,0x0391,0x0392,0x0393,0x0394,0x0395,0x0396, +0x0397,0x0398,0x0399,0x039a,0x039b,0x039c,0x039d,0x039e, +0x039f,0x03a0,0x03a1,0x03a3,0x03a4,0x03a5,0x03a6,0x03a7, +0x03a8,0x03a9,0x03b1,0x03b2,0x03b3,0x03b4,0x03b5,0x03b6, +0x03b7,0x03b8,0x03b9,0x03ba,0x03bb,0x03bc,0x03bd,0x03be, +0x03bf,0x03c0,0x03c1,0x03c3,0x03c4,0x03c5,0x03c6,0x03c7, +0x03c8,0x03c9,0x0401,0x0410,0x0411,0x0412,0x0413,0x0414, +0x0415,0x0416,0x0417,0x0418,0x0419,0x041a,0x041b,0x041c, +0x041d,0x041e,0x041f,0x0420,0x0421,0x0422,0x0423,0x0424, +0x0425,0x0426,0x0427,0x0428,0x0429,0x042a,0x042b,0x042c, +0x042d,0x042e,0x042f,0x0430,0x0431,0x0432,0x0433,0x0434, +0x0435,0x0436,0x0437,0x0438,0x0439,0x043a,0x043b,0x043c, +0x043d,0x043e,0x043f,0x0440,0x0441,0x0442,0x0443,0x0444, +0x0445,0x0446,0x0447,0x0448,0x0449,0x044a,0x044b,0x044c, +0x044d,0x044e,0x044f,0x0451,0x2010,0x2015,0x2016,0x2018, +0x2019,0x201c,0x201d,0x2020,0x2021,0x2025,0x2026,0x2032, +0x2033,0x203b,0x203e,0x2103,0x2116,0x2121,0x212b,0x2160, +0x2161,0x2162,0x2163,0x2164,0x2165,0x2166,0x2167,0x2168, +0x2169,0x2190,0x2191,0x2192,0x2193,0x21d2,0x21d4,0x2200, +0x2202,0x2203,0x2207,0x2208,0x220b,0x2211,0x2212,0x221a, +0x221d,0x221e,0x221f,0x2220,0x2227,0x2228,0x2229,0x222a, +0x222b,0x222c,0x222e,0x2234,0x2235,0x223d,0x2252,0x2260, +0x2261,0x2266,0x2267,0x226a,0x226b,0x2282,0x2283,0x2286, +0x2287,0x22a5,0x22a5,0x22bf,0x2312,0x2460,0x2461,0x2462, +0x2463,0x2464,0x2465,0x2466,0x2467,0x2468,0x2469,0x246a, +0x246b,0x246c,0x246d,0x246e,0x246f,0x2470,0x2471,0x2472, +0x2473,0x25a0,0x25a1,0x25b2,0x25b3,0x25bc,0x25bd,0x25c6, +0x25c7,0x25cb,0x25ce,0x25cf,0x25ef,0x2605,0x2606,0x2640, +0x2642,0x266a,0x266d,0x266f,0x3000,0x3001,0x3002,0x3003, +0x3005,0x3006,0x3007,0x3008,0x3009,0x300a,0x300b,0x300c, +0x300d,0x300e,0x300f,0x3010,0x3011,0x3012,0x3013,0x3014, +0x3015,0x301c,0x301d,0x301f,0x3041,0x3042,0x3043,0x3044, +0x3045,0x3046,0x3047,0x3048,0x3049,0x304a,0x304b,0x304c, +0x304d,0x304e,0x304f,0x3050,0x3051,0x3052,0x3053,0x3054, +0x3055,0x3056,0x3057,0x3058,0x3059,0x305a,0x305b,0x305c, +0x305d,0x305e,0x305f,0x3060,0x3061,0x3062,0x3063,0x3064, +0x3065,0x3066,0x3067,0x3068,0x3069,0x306a,0x306b,0x306c, +0x306d,0x306e,0x306f,0x3070,0x3071,0x3072,0x3073,0x3074, +0x3075,0x3076,0x3077,0x3078,0x3079,0x307a,0x307b,0x307c, +0x307d,0x307e,0x307f,0x3080,0x3081,0x3082,0x3083,0x3084, +0x3085,0x3086,0x3087,0x3088,0x3089,0x308a,0x308b,0x308c, +0x308d,0x308e,0x308f,0x3090,0x3091,0x3092,0x3093,0x309b, +0x309c,0x309d,0x309e,0x30a1,0x30a2,0x30a3,0x30a4,0x30a5, +0x30a6,0x30a7,0x30a8,0x30a9,0x30aa,0x30ab,0x30ac,0x30ad, +0x30ae,0x30af,0x30b0,0x30b1,0x30b2,0x30b3,0x30b4,0x30b5, +0x30b6,0x30b7,0x30b8,0x30b9,0x30ba,0x30bb,0x30bc,0x30bd, +0x30be,0x30bf,0x30c0,0x30c1,0x30c2,0x30c3,0x30c4,0x30c5, +0x30c6,0x30c7,0x30c8,0x30c9,0x30ca,0x30cb,0x30cc,0x30cd, +0x30ce,0x30cf,0x30d0,0x30d1,0x30d2,0x30d3,0x30d4,0x30d5, +0x30d6,0x30d7,0x30d8,0x30d9,0x30da,0x30db,0x30dc,0x30dd, +0x30de,0x30df,0x30e0,0x30e1,0x30e2,0x30e3,0x30e4,0x30e5, +0x30e6,0x30e7,0x30e8,0x30e9,0x30ea,0x30eb,0x30ec,0x30ed, +0x30ee,0x30ef,0x30f0,0x30f1,0x30f2,0x30f3,0x30f4,0x30f5, +0x30f6,0x30fb,0x30fc,0x30fd,0x30fe,0x3231,0x3232,0x3239, +0x32a4,0x32a5,0x32a6,0x32a7,0x32a8,0x338e,0x338f,0x339c, +0x339d,0x339e,0x33a1,0x33c4,0x33cd,0x4e00,0x4e01,0x4e03, +0x4e07,0x4e09,0x4e0a,0x4e0b,0x4e0d,0x4e16,0x4e21,0x4e26, +0x4e2d,0x4e38,0x4e3b,0x4e45,0x4e57,0x4e5d,0x4e71,0x4e73, +0x4e88,0x4e89,0x4e8b,0x4e8c,0x4e94,0x4ea1,0x4ea4,0x4eac, +0x4eba,0x4ec1,0x4eca,0x4ecf,0x4ed5,0x4ed6,0x4ed8,0x4ee3, +0x4ee4,0x4ee5,0x4eee,0x4ef2,0x4ef6,0x4efb,0x4f11,0x4f1a, +0x4f1d,0x4f3c,0x4f4d,0x4f4e,0x4f4f,0x4f53,0x4f55,0x4f59, +0x4f5c,0x4f7f,0x4f8b,0x4f9b,0x4fa1,0x4fbf,0x4fc2,0x4fdd, +0x4fe1,0x4fee,0x4ff3,0x4ff5,0x5009,0x500b,0x500d,0x5019, +0x501f,0x5024,0x505c,0x5065,0x5074,0x5099,0x50b7,0x50cd, +0x50cf,0x5104,0x512a,0x5143,0x5144,0x5146,0x5148,0x5149, +0x5150,0x515a,0x5165,0x5168,0x516b,0x516c,0x516d,0x5171, +0x5175,0x5177,0x5178,0x5185,0x5186,0x518a,0x518d,0x5199, +0x51ac,0x51b7,0x51e6,0x51fa,0x5200,0x5206,0x5207,0x520a, +0x5217,0x521d,0x5224,0x5225,0x5229,0x5236,0x5237,0x5238, +0x523b,0x5247,0x524d,0x526f,0x5272,0x5275,0x5287,0x529b, +0x529f,0x52a0,0x52a9,0x52aa,0x52b4,0x52b9,0x52c7,0x52c9, +0x52d5,0x52d9,0x52dd,0x52e2,0x52e4,0x5305,0x5316,0x5317, +0x533a,0x533b,0x5341,0x5343,0x5348,0x534a,0x5352,0x5354, +0x5357,0x5358,0x535a,0x5370,0x5371,0x5375,0x539a,0x539f, +0x53b3,0x53bb,0x53c2,0x53cb,0x53cd,0x53ce,0x53d6,0x53d7, +0x53e3,0x53e4,0x53e5,0x53ef,0x53f0,0x53f2,0x53f3,0x53f7, +0x53f8,0x5404,0x5408,0x540c,0x540d,0x540e,0x5411,0x541b, +0x5426,0x5438,0x544a,0x5468,0x5473,0x547c,0x547d,0x548c, +0x54c1,0x54e1,0x5531,0x5546,0x554f,0x5584,0x559c,0x55b6, +0x5668,0x56db,0x56de,0x56e0,0x56e3,0x56f0,0x56f2,0x56f3, +0x56fa,0x56fd,0x5712,0x571f,0x5727,0x5728,0x5730,0x5742, +0x5747,0x5782,0x578b,0x57ce,0x57df,0x57fa,0x57fc,0x5802, +0x5831,0x5834,0x5869,0x5883,0x5893,0x5897,0x58eb,0x58f0, +0x58f2,0x5909,0x590f,0x5915,0x5916,0x591a,0x591c,0x5922, +0x5927,0x5929,0x592a,0x592b,0x592e,0x5931,0x594f,0x596e, +0x5973,0x597d,0x59b9,0x59bb,0x59c9,0x59cb,0x59d4,0x59ff, +0x5a66,0x5b50,0x5b57,0x5b58,0x5b5d,0x5b63,0x5b66,0x5b6b, +0x5b85,0x5b87,0x5b88,0x5b89,0x5b8c,0x5b97,0x5b98,0x5b99, +0x5b9a,0x5b9d,0x5b9f,0x5ba2,0x5ba3,0x5ba4,0x5bae,0x5bb3, +0x5bb6,0x5bb9,0x5bbf,0x5bc4,0x5bc6,0x5bcc,0x5bd2,0x5bdf, +0x5bf8,0x5bfa,0x5bfe,0x5c02,0x5c04,0x5c06,0x5c0a,0x5c0e, +0x5c0f,0x5c11,0x5c31,0x5c3a,0x5c40,0x5c45,0x5c4a,0x5c4b, +0x5c55,0x5c5e,0x5c64,0x5c71,0x5ca9,0x5cb8,0x5cf6,0x5ddd, +0x5dde,0x5de3,0x5de5,0x5de6,0x5dee,0x5df1,0x5dfb,0x5e02, +0x5e03,0x5e0c,0x5e2b,0x5e2d,0x5e2f,0x5e30,0x5e33,0x5e38, +0x5e55,0x5e72,0x5e73,0x5e74,0x5e78,0x5e79,0x5e7c,0x5e81, +0x5e83,0x5e8f,0x5e95,0x5e97,0x5e9c,0x5ea6,0x5ea7,0x5eab, +0x5ead,0x5eb7,0x5ef6,0x5efa,0x5f01,0x5f0f,0x5f13,0x5f15, +0x5f1f,0x5f31,0x5f35,0x5f37,0x5f53,0x5f62,0x5f79,0x5f80, +0x5f84,0x5f85,0x5f8b,0x5f8c,0x5f92,0x5f93,0x5f97,0x5fa9, +0x5fb3,0x5fc3,0x5fc5,0x5fd7,0x5fd8,0x5fdc,0x5fe0,0x5feb, +0x5ff5,0x601d,0x6025,0x6027,0x6069,0x606f,0x60aa,0x60b2, +0x60c5,0x60f3,0x610f,0x611b,0x611f,0x614b,0x6163,0x61b2, +0x6210,0x6211,0x6226,0x6238,0x6240,0x624b,0x624d,0x6253, +0x6279,0x627f,0x6280,0x6295,0x6298,0x62c5,0x62db,0x62dd, +0x62e1,0x62fe,0x6301,0x6307,0x6319,0x6368,0x6388,0x63a1, +0x63a2,0x63a5,0x63a8,0x63d0,0x63ee,0x640d,0x64cd,0x652f, +0x6539,0x653e,0x653f,0x6545,0x6551,0x6557,0x6559,0x6563, +0x656c,0x6570,0x6574,0x6575,0x6587,0x6599,0x65ad,0x65b0, +0x65b9,0x65c5,0x65cf,0x65d7,0x65e5,0x65e7,0x65e9,0x660e, +0x6613,0x6614,0x661f,0x6620,0x6625,0x6628,0x662d,0x663c, +0x6642,0x6669,0x666f,0x6674,0x6691,0x6696,0x6697,0x66ae, +0x66b4,0x66dc,0x66f2,0x66f8,0x6700,0x6708,0x6709,0x670d, +0x6717,0x671b,0x671d,0x671f,0x6728,0x672a,0x672b,0x672c, +0x672d,0x673a,0x6750,0x6751,0x675f,0x6761,0x6765,0x6771, +0x677e,0x677f,0x6797,0x679a,0x679c,0x679d,0x67d3,0x67f1, +0x67fb,0x6804,0x6821,0x682a,0x6839,0x683c,0x6848,0x685c, +0x6885,0x68b0,0x68d2,0x68ee,0x690d,0x691c,0x696d,0x6975, +0x697d,0x69cb,0x69d8,0x6a19,0x6a21,0x6a29,0x6a2a,0x6a39, +0x6a4b,0x6a5f,0x6b20,0x6b21,0x6b32,0x6b4c,0x6b62,0x6b63, +0x6b66,0x6b69,0x6b6f,0x6b74,0x6b7b,0x6b8b,0x6bb5,0x6bba, +0x6bcd,0x6bce,0x6bd2,0x6bd4,0x6bdb,0x6c0f,0x6c11,0x6c17, +0x6c34,0x6c37,0x6c38,0x6c42,0x6c60,0x6c7a,0x6c7d,0x6cb3, +0x6cb9,0x6cbb,0x6cbf,0x6cc9,0x6cd5,0x6ce2,0x6ce3,0x6ce8, +0x6cf3,0x6d0b,0x6d17,0x6d3b,0x6d3e,0x6d41,0x6d45,0x6d74, +0x6d77,0x6d88,0x6db2,0x6df1,0x6df7,0x6e05,0x6e08,0x6e1b, +0x6e29,0x6e2c,0x6e2f,0x6e56,0x6e6f,0x6e80,0x6e90,0x6e96, +0x6f01,0x6f14,0x6f22,0x6f54,0x6f6e,0x6fc0,0x706b,0x706f, +0x7070,0x707d,0x70ad,0x70b9,0x7121,0x7136,0x713c,0x7167, +0x719f,0x71b1,0x71c3,0x7236,0x7247,0x7248,0x725b,0x7267, +0x7269,0x7279,0x72ac,0x72af,0x72b6,0x72ec,0x7387,0x7389, +0x738b,0x73ed,0x73fe,0x7403,0x7406,0x751f,0x7523,0x7528, +0x7530,0x7531,0x7533,0x7537,0x753a,0x753b,0x754c,0x7551, +0x7559,0x7565,0x756a,0x7570,0x7591,0x75c5,0x75db,0x767a, +0x767b,0x767d,0x767e,0x7684,0x7687,0x76ae,0x76bf,0x76ca, +0x76db,0x76df,0x76ee,0x76f4,0x76f8,0x7701,0x770b,0x770c, +0x771f,0x773c,0x7740,0x77e2,0x77e5,0x77ed,0x77f3,0x7802, +0x7814,0x7834,0x78ba,0x78c1,0x793a,0x793c,0x793e,0x7956, +0x795d,0x795e,0x7968,0x796d,0x7981,0x798f,0x79c1,0x79cb, +0x79d1,0x79d2,0x79d8,0x79fb,0x7a0b,0x7a0e,0x7a2e,0x7a40, +0x7a4d,0x7a74,0x7a76,0x7a7a,0x7a93,0x7acb,0x7ae0,0x7ae5, +0x7af6,0x7af9,0x7b11,0x7b1b,0x7b2c,0x7b46,0x7b49,0x7b4b, +0x7b54,0x7b56,0x7b97,0x7ba1,0x7bb1,0x7bc0,0x7bc9,0x7c21, +0x7c73,0x7c89,0x7cbe,0x7cd6,0x7cf8,0x7cfb,0x7d00,0x7d04, +0x7d05,0x7d0d,0x7d14,0x7d19,0x7d1a,0x7d20,0x7d30,0x7d42, +0x7d44,0x7d4c,0x7d50,0x7d66,0x7d71,0x7d75,0x7d76,0x7d79, +0x7d9a,0x7dbf,0x7dcf,0x7dd1,0x7dda,0x7de8,0x7df4,0x7e26, +0x7e2e,0x7e3e,0x7e54,0x7f6a,0x7f6e,0x7f72,0x7f8a,0x7f8e, +0x7fa4,0x7fa9,0x7fbd,0x7fcc,0x7fd2,0x8001,0x8003,0x8005, +0x8015,0x8033,0x8056,0x805e,0x8077,0x8089,0x80a5,0x80b2, +0x80ba,0x80c3,0x80cc,0x80f8,0x80fd,0x8108,0x8133,0x8178, +0x8179,0x81d3,0x81e3,0x81e8,0x81ea,0x81f3,0x8208,0x820c, +0x820e,0x822a,0x8239,0x826f,0x8272,0x82b1,0x82b8,0x82bd, +0x82e5,0x82e6,0x82f1,0x8336,0x8349,0x8377,0x83dc,0x843d, +0x8449,0x8457,0x84b8,0x8535,0x85ac,0x866b,0x8695,0x8840, +0x8846,0x884c,0x8853,0x8857,0x885b,0x8863,0x8868,0x88c1, +0x88c5,0x88cf,0x88dc,0x88fd,0x8907,0x897f,0x8981,0x898b, +0x898f,0x8996,0x899a,0x89a7,0x89aa,0x89b3,0x89d2,0x89e3, +0x8a00,0x8a08,0x8a0e,0x8a13,0x8a18,0x8a2a,0x8a2d,0x8a31, +0x8a33,0x8a3c,0x8a55,0x8a5e,0x8a66,0x8a69,0x8a71,0x8a8c, +0x8a8d,0x8a95,0x8a9e,0x8aa0,0x8aa4,0x8aac,0x8aad,0x8ab2, +0x8abf,0x8ac7,0x8ad6,0x8af8,0x8b1b,0x8b1d,0x8b58,0x8b66, +0x8b70,0x8b77,0x8c37,0x8c46,0x8c4a,0x8c61,0x8c9d,0x8ca0, +0x8ca1,0x8ca7,0x8ca8,0x8cac,0x8caf,0x8cb4,0x8cb7,0x8cb8, +0x8cbb,0x8cbf,0x8cc0,0x8cc3,0x8cc7,0x8cdb,0x8cde,0x8cea, +0x8d64,0x8d70,0x8d77,0x8db3,0x8def,0x8eab,0x8eca,0x8ecd, +0x8ee2,0x8efd,0x8f2a,0x8f38,0x8f9e,0x8fb2,0x8fba,0x8fd1, +0x8fd4,0x8ff0,0x8ff7,0x8ffd,0x9000,0x9001,0x9006,0x901a, +0x901f,0x9020,0x9023,0x9031,0x9032,0x904a,0x904b,0x904e, +0x9053,0x9054,0x9060,0x9069,0x9078,0x907a,0x90e1,0x90e8, +0x90f5,0x90f7,0x90fd,0x914d,0x9152,0x9178,0x91cc,0x91cd, +0x91ce,0x91cf,0x91d1,0x91dd,0x9244,0x9271,0x9280,0x9285, +0x92ad,0x92fc,0x9332,0x93e1,0x9577,0x9580,0x9589,0x958b, +0x9593,0x95a2,0x95a3,0x9632,0x964d,0x9650,0x965b,0x9662, +0x9664,0x9678,0x967a,0x967d,0x968a,0x968e,0x969b,0x969c, +0x96c6,0x96d1,0x96e3,0x96e8,0x96ea,0x96f2,0x96fb,0x9752, +0x9759,0x975e,0x9762,0x9769,0x97f3,0x9802,0x9806,0x9810, +0x9818,0x982d,0x984c,0x984d,0x9854,0x9858,0x985e,0x98a8, +0x98db,0x98df,0x98ef,0x98f2,0x98fc,0x990a,0x9928,0x9996, +0x99ac,0x99c5,0x9a13,0x9aa8,0x9ad8,0x9b5a,0x9ce5,0x9cf4, +0x9ea6,0x9ec4,0x9ed2,0x9f3b,0xff01,0xff03,0xff04,0xff05, +0xff06,0xff08,0xff09,0xff0a,0xff0b,0xff0c,0xff0e,0xff0f, +0xff10,0xff11,0xff12,0xff13,0xff14,0xff15,0xff16,0xff17, +0xff18,0xff19,0xff1a,0xff1b,0xff1c,0xff1d,0xff1e,0xff1f, +0xff20,0xff21,0xff22,0xff23,0xff24,0xff25,0xff26,0xff27, +0xff28,0xff29,0xff2a,0xff2b,0xff2c,0xff2d,0xff2e,0xff2f, +0xff30,0xff31,0xff32,0xff33,0xff34,0xff35,0xff36,0xff37, +0xff38,0xff39,0xff3a,0xff3b,0xff3d,0xff3e,0xff3f,0xff40, +0xff41,0xff42,0xff43,0xff44,0xff45,0xff46,0xff47,0xff48, +0xff49,0xff4a,0xff4b,0xff4c,0xff4d,0xff4e,0xff4f,0xff50, +0xff51,0xff52,0xff53,0xff54,0xff55,0xff56,0xff57,0xff58, +0xff59,0xff5a,0xff5b,0xff5c,0xff5d,0xff61,0xff62,0xff63, +0xff64,0xff65,0xff66,0xff67,0xff68,0xff69,0xff6a,0xff6b, +0xff6c,0xff6d,0xff6e,0xff6f,0xff70,0xff71,0xff72,0xff73, +0xff74,0xff75,0xff76,0xff77,0xff78,0xff79,0xff7a,0xff7b, +0xff7c,0xff7d,0xff7e,0xff7f,0xff80,0xff81,0xff82,0xff83, +0xff84,0xff85,0xff86,0xff87,0xff88,0xff89,0xff8a,0xff8b, +0xff8c,0xff8d,0xff8e,0xff8f,0xff90,0xff91,0xff92,0xff93, +0xff94,0xff95,0xff96,0xff97,0xff98,0xff99,0xff9a,0xff9b, +0xff9c,0xff9d,0xff9e,0xff9f,0xffe3,0xffe5,}; + +#endif \ No newline at end of file diff --git a/src/刷新画线 b/src/刷新画线 new file mode 100644 index 0000000..a4b5dff --- /dev/null +++ b/src/刷新画线 @@ -0,0 +1,387 @@ +#include +#include + +INA226 ina(Wire); + +// #include +// #include "misakiUTF16FontData.h" +#include +// ESP32でLovyanGFXを独自設定で利用する場合の設定例 + +/// 独自の設定を行うクラスを、LGFX_Deviceから派生して作成します。 +class LGFX : public lgfx::LGFX_Device +{ + lgfx::Panel_ST7789 _panel_instance; + lgfx::Bus_SPI _bus_instance; // SPIバスのインスタンス + lgfx::Light_PWM _light_instance; + +public: + // コンストラクタを作成し、ここで各種設定を行います。 + // クラス名を変更した場合はコンストラクタも同じ名前を指定してください。 + LGFX(void) + { + { // バス制御の設定を行います。 + auto cfg = _bus_instance.config(); // バス設定用の構造体を取得します。 + + // SPIバスの設定 + cfg.spi_host = SPI2_HOST; // 使用するSPIを選択 ESP32-S2,C3 : SPI2_HOST or SPI3_HOST / ESP32 : VSPI_HOST or HSPI_HOST + // ※ ESP-IDFバージョンアップに伴い、VSPI_HOST , HSPI_HOSTの記述は非推奨になるため、エラーが出る場合は代わりにSPI2_HOST , SPI3_HOSTを使用してください。 + cfg.spi_mode = 3; // SPI通信モードを設定 (0 ~ 3) + cfg.freq_write = 80000000; // 送信時のSPIクロック (最大80MHz, 80MHzを整数で割った値に丸められます) + cfg.freq_read = 16000000; // 受信時のSPIクロック + cfg.spi_3wire = true; // 受信をMOSIピンで行う場合はtrueを設定 + cfg.use_lock = true; // トランザクションロックを使用する場合はtrueを設定 + cfg.dma_channel = SPI_DMA_CH_AUTO; // 使用するDMAチャンネルを設定 (0=DMA不使用 / 1=1ch / 2=ch / SPI_DMA_CH_AUTO=自動設定) + // ※ ESP-IDFバージョンアップに伴い、DMAチャンネルはSPI_DMA_CH_AUTO(自動設定)が推奨になりました。1ch,2chの指定は非推奨になります。 + cfg.pin_sclk = 4; // SPIのSCLKピン番号を設定 + cfg.pin_mosi = 5; // SPIのMOSIピン番号を設定 + cfg.pin_miso = -1; // SPIのMISOピン番号を設定 (-1 = disable) + cfg.pin_dc = 6; // SPIのD/Cピン番号を設定 (-1 = disable) + // SDカードと共通のSPIバスを使う場合、MISOは省略せず必ず設定してください。 + _bus_instance.config(cfg); // 設定値をバスに反映します。 + _panel_instance.setBus(&_bus_instance); // バスをパネルにセットします。 + } + + { // 表示パネル制御の設定を行います。 + auto cfg = _panel_instance.config(); // 表示パネル設定用の構造体を取得します。 + + cfg.pin_cs = 8; // CSが接続されているピン番号 (-1 = disable) + cfg.pin_rst = 7; // RSTが接続されているピン番号 (-1 = disable) + cfg.pin_busy = -1; // BUSYが接続されているピン番号 (-1 = disable) + + // ※ 以下の設定値はパネル毎に一般的な初期値が設定されていますので、不明な項目はコメントアウトして試してみてください。 + + cfg.panel_width = 172; // 実際に表示可能な幅 + cfg.panel_height = 320; // 実際に表示可能な高さ + cfg.offset_x = 34; // パネルのX方向オフセット量 + cfg.offset_y = 0; // パネルのY方向オフセット量 + cfg.offset_rotation = 3; // 回転方向の値のオフセット 0~7 (4~7は上下反転) + cfg.dummy_read_pixel = 8; // ピクセル読出し前のダミーリードのビット数 + cfg.dummy_read_bits = 1; // ピクセル以外のデータ読出し前のダミーリードのビット数 + cfg.readable = true; // データ読出しが可能な場合 trueに設定 + cfg.invert = false; // パネルの明暗が反転してしまう場合 trueに設定 + cfg.rgb_order = false; // パネルの赤と青が入れ替わってしまう場合 trueに設定 + cfg.dlen_16bit = false; // 16bitパラレルやSPIでデータ長を16bit単位で送信するパネルの場合 trueに設定 + cfg.bus_shared = true; // SDカードとバスを共有している場合 trueに設定(drawJpgFile等でバス制御を行います) + + // 以下はST7735やILI9163のようにピクセル数が可変のドライバで表示がずれる場合にのみ設定してください。 + // cfg.memory_width = 240; // ドライバICがサポートしている最大の幅 + // cfg.memory_height = 320; // ドライバICがサポートしている最大の高さ + + _panel_instance.config(cfg); + } + + { // バックライト制御の設定を行います。(必要なければ削除) + auto cfg = _light_instance.config(); // バックライト設定用の構造体を取得します。 + + cfg.pin_bl = 10; // バックライトが接続されているピン番号 + cfg.invert = true; // バックライトの輝度を反転させる場合 true + cfg.freq = 44100; // バックライトのPWM周波数 + cfg.pwm_channel = 7; // 使用するPWMのチャンネル番号 + + _light_instance.config(cfg); + _panel_instance.setLight(&_light_instance); // バックライトをパネルにセットします。 + } + + setPanel(&_panel_instance); // 使用するパネルをセットします。 + } +}; + +static LGFX lcd; +// static LGFX_Sprite sprite(&lcd); + +void drawGradation(void) +{ + // 背景にグラデーションを描画する + lcd.startWrite(); + lcd.setAddrWindow(0, 0, lcd.width(), lcd.height()); + for (int y = 0; y < lcd.height(); ++y) + { + for (int x = 0; x < lcd.width(); ++x) + { + lcd.writeColor(lcd.color888(x >> 1, (x + y) >> 2, y >> 1), 1); + } + } + lcd.endWrite(); +} + +void checkConfig() +{ + Serial.print("Mode: "); + switch (ina.getMode()) + { + case INA226_MODE_POWER_DOWN: + Serial.println("Power-Down"); + break; + case INA226_MODE_SHUNT_TRIG: + Serial.println("Shunt Voltage, Triggered"); + break; + case INA226_MODE_BUS_TRIG: + Serial.println("Bus Voltage, Triggered"); + break; + case INA226_MODE_SHUNT_BUS_TRIG: + Serial.println("Shunt and Bus, Triggered"); + break; + case INA226_MODE_ADC_OFF: + Serial.println("ADC Off"); + break; + case INA226_MODE_SHUNT_CONT: + Serial.println("Shunt Voltage, Continuous"); + break; + case INA226_MODE_BUS_CONT: + Serial.println("Bus Voltage, Continuous"); + break; + case INA226_MODE_SHUNT_BUS_CONT: + Serial.println("Shunt and Bus, Continuous"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Samples average: "); + switch (ina.getAverages()) + { + case INA226_AVERAGES_1: + Serial.println("1 sample"); + break; + case INA226_AVERAGES_4: + Serial.println("4 samples"); + break; + case INA226_AVERAGES_16: + Serial.println("16 samples"); + break; + case INA226_AVERAGES_64: + Serial.println("64 samples"); + break; + case INA226_AVERAGES_128: + Serial.println("128 samples"); + break; + case INA226_AVERAGES_256: + Serial.println("256 samples"); + break; + case INA226_AVERAGES_512: + Serial.println("512 samples"); + break; + case INA226_AVERAGES_1024: + Serial.println("1024 samples"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Bus conversion time: "); + switch (ina.getBusConversionTime()) + { + case INA226_BUS_CONV_TIME_140US: + Serial.println("140uS"); + break; + case INA226_BUS_CONV_TIME_204US: + Serial.println("204uS"); + break; + case INA226_BUS_CONV_TIME_332US: + Serial.println("332uS"); + break; + case INA226_BUS_CONV_TIME_588US: + Serial.println("558uS"); + break; + case INA226_BUS_CONV_TIME_1100US: + Serial.println("1.100ms"); + break; + case INA226_BUS_CONV_TIME_2116US: + Serial.println("2.116ms"); + break; + case INA226_BUS_CONV_TIME_4156US: + Serial.println("4.156ms"); + break; + case INA226_BUS_CONV_TIME_8244US: + Serial.println("8.244ms"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Shunt conversion time: "); + switch (ina.getShuntConversionTime()) + { + case INA226_SHUNT_CONV_TIME_140US: + Serial.println("140uS"); + break; + case INA226_SHUNT_CONV_TIME_204US: + Serial.println("204uS"); + break; + case INA226_SHUNT_CONV_TIME_332US: + Serial.println("332uS"); + break; + case INA226_SHUNT_CONV_TIME_588US: + Serial.println("558uS"); + break; + case INA226_SHUNT_CONV_TIME_1100US: + Serial.println("1.100ms"); + break; + case INA226_SHUNT_CONV_TIME_2116US: + Serial.println("2.116ms"); + break; + case INA226_SHUNT_CONV_TIME_4156US: + Serial.println("4.156ms"); + break; + case INA226_SHUNT_CONV_TIME_8244US: + Serial.println("8.244ms"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Max possible current: "); + Serial.print(ina.getMaxPossibleCurrent()); + Serial.println(" A"); + + Serial.print("Max current: "); + Serial.print(ina.getMaxCurrent()); + Serial.println(" A"); + + Serial.print("Max shunt voltage: "); + Serial.print(ina.getMaxShuntVoltage()); + Serial.println(" V"); + + Serial.print("Max power: "); + Serial.print(ina.getMaxPower()); + Serial.println(" W"); +} + +void setup(void) +{ + lcd.init(); + lcd.fillScreen(0xFFFFFFU); + // drawGradation(); + lcd.setFont(&fonts::Font7); + // lcd.setTextDatum(textdatum_t::bottom_right); + lcd.setTextDatum(bottom_right); + // lcd.setTextColor(0x000000U, 0xFFFFFFU); + // lcd.fillScreen(0xFFFFFFU); + lcd.setTextColor(0xFFFFFFU, 0x000000U); + lcd.fillScreen(0xFFFFFFU); + lcd.setBrightness(128); + pinMode(10, OUTPUT); + digitalWrite(10, 0); + + Wire.begin(1, 0, 100000); + // Default INA226 address is 0x40 + bool success = ina.begin(); + // Check if the connection was successful, stop if not + if (!success) + { + Serial.println("Connection error"); + while (1) + ; + } + // Configure INA226 + ina.configure(INA226_AVERAGES_1, INA226_BUS_CONV_TIME_1100US, INA226_SHUNT_CONV_TIME_1100US, INA226_MODE_SHUNT_BUS_CONT); + // Calibrate INA226. Rshunt = 0.001 ohm, Max excepted current = 4A + ina.calibrate(0.001, 40); + // Display configuration + checkConfig(); +} + +unsigned short int lastX, lastY; +unsigned char firstPoint = 1; +void drawCurve(short int rawValue) +{ + unsigned short int x, y; + y = 120 - rawValue / 280; // data processing code + // 这里之所以是120-rawValue/280,与屏幕的扫描方向有关,如果出现上下颠倒的情况,可以改成120 + + if (firstPoint) // 如果是第一次画点,则无需连线,直接描点即可 + { + lcd.drawPixel(0, y); + lastX = 0; + lastY = y; + firstPoint = 0; + } + else + { + x = lastX + 1; + if (x < 320) // 不超过屏幕宽度 + { + lcd.drawLine(lastX, lastY, x, y); + lastX = x; + lastY = y; + } + else // 超出屏幕宽度,清屏,从第一个点开始绘制,实现动态更新效果 + { + lcd.fillScreen(0xFFFFFFU); // 清屏,白色背景 + lcd.drawPixel(0, y); + lastX = 0; + lastY = y; + } + } +} + +void loop(void) +{ + // Serial.print("Bus voltage: "); + // Serial.print(ina.readBusVoltage(), 5); + // Serial.println(" V"); + + // Serial.print("Bus power: "); + // Serial.print(ina.readBusPower(), 5); + // Serial.println(" W"); + + // Serial.print("Shunt voltage: "); + // Serial.print(ina.readShuntVoltage(), 5); + // Serial.println(" V"); + + // Serial.print("Shunt current: "); + // Serial.print(ina.readShuntCurrent(), 5); + // Serial.println(" A"); + + // Serial.println(""); + delay(10); + // delay(1000); + + // lcd.setFont(&fonts::Roboto_Thin_24); + lcd.setTextColor(0x000000U, 0x000000U); + lcd.setFont(&fonts::Font4); + lcd.setTextDatum(bottom_center); + // lcd.drawString("V", 180, 50); + // lcd.drawString("A", 180, 108); + // lcd.drawString("W", 180, 166); + + lcd.setTextDatum(top_left); + lcd.drawString("Current", 20, 0); + + lcd.setFont(&fonts::Font6); + lcd.setTextDatum(bottom_right); + // lcd.drawFloat(ina.readBusVoltage(), 4, 160, 58); + // lcd.drawFloat(abs(ina.readShuntCurrent()), 4, 160, 116); + // lcd.drawFloat(ina.readBusPower(), 4, 160, 174); + + lcd.setTextColor(0xFFFFFFU, 0x000000U); + + short int current = abs(ina.readShuntCurrent()) * 10000; + drawCurve(current); + + // lcd.drawNumber(ina.readBusVoltage(), 120, 120); + // ※ 名前が"Free"で始まるフォントは 9pt 12pt 18pt 24ptの4種類があります。 + // drawNumberTest( &fonts::Font0 ); + // drawNumberTest( &fonts::Font2 ); + // drawNumberTest( &fonts::Font4 ); + // drawNumberTest( &fonts::Font6 ); + // drawNumberTest( &fonts::Font7 ); + // drawNumberTest( &fonts::Font8 ); + // drawNumberTest( &fonts::TomThumb ); + // drawNumberTest( &fonts::FreeMono9pt7b ); + // drawNumberTest( &fonts::FreeMonoBold9pt7b ); + // drawNumberTest( &fonts::FreeMonoOblique9pt7b ); + // drawNumberTest( &fonts::FreeMonoBoldOblique9pt7b); + // drawNumberTest( &fonts::FreeSans9pt7b ); + // drawNumberTest( &fonts::FreeSansBold9pt7b ); + // drawNumberTest( &fonts::FreeSansOblique9pt7b ); + // drawNumberTest( &fonts::FreeSansBoldOblique9pt7b); + // drawNumberTest( &fonts::FreeSerif9pt7b ); + // drawNumberTest( &fonts::FreeSerifBold9pt7b ); + // drawNumberTest( &fonts::FreeSerifItalic9pt7b ); + // drawNumberTest( &fonts::FreeSerifBoldItalic9pt7b); + // drawNumberTest( &fonts::Orbitron_Light_24 ); + // drawNumberTest( &fonts::Roboto_Thin_24 ); + // drawNumberTest( &fonts::Satisfy_24 ); + // drawNumberTest( &fonts::Yellowtail_32 ); +} \ No newline at end of file diff --git a/src/移动波形 b/src/移动波形 new file mode 100644 index 0000000..c7ef2bd --- /dev/null +++ b/src/移动波形 @@ -0,0 +1,369 @@ +#include +#include + +INA226 ina(Wire); + +// #include +// #include "misakiUTF16FontData.h" +#include +// ESP32でLovyanGFXを独自設定で利用する場合の設定例 + +/// 独自の設定を行うクラスを、LGFX_Deviceから派生して作成します。 +class LGFX : public lgfx::LGFX_Device +{ + lgfx::Panel_ST7789 _panel_instance; + lgfx::Bus_SPI _bus_instance; // SPIバスのインスタンス + lgfx::Light_PWM _light_instance; + +public: + // コンストラクタを作成し、ここで各種設定を行います。 + // クラス名を変更した場合はコンストラクタも同じ名前を指定してください。 + LGFX(void) + { + { // バス制御の設定を行います。 + auto cfg = _bus_instance.config(); // バス設定用の構造体を取得します。 + + // SPIバスの設定 + cfg.spi_host = SPI2_HOST; // 使用するSPIを選択 ESP32-S2,C3 : SPI2_HOST or SPI3_HOST / ESP32 : VSPI_HOST or HSPI_HOST + // ※ ESP-IDFバージョンアップに伴い、VSPI_HOST , HSPI_HOSTの記述は非推奨になるため、エラーが出る場合は代わりにSPI2_HOST , SPI3_HOSTを使用してください。 + cfg.spi_mode = 3; // SPI通信モードを設定 (0 ~ 3) + cfg.freq_write = 40000000; // 送信時のSPIクロック (最大80MHz, 80MHzを整数で割った値に丸められます) + cfg.freq_read = 16000000; // 受信時のSPIクロック + cfg.spi_3wire = true; // 受信をMOSIピンで行う場合はtrueを設定 + cfg.use_lock = true; // トランザクションロックを使用する場合はtrueを設定 + cfg.dma_channel = SPI_DMA_CH_AUTO; // 使用するDMAチャンネルを設定 (0=DMA不使用 / 1=1ch / 2=ch / SPI_DMA_CH_AUTO=自動設定) + // ※ ESP-IDFバージョンアップに伴い、DMAチャンネルはSPI_DMA_CH_AUTO(自動設定)が推奨になりました。1ch,2chの指定は非推奨になります。 + cfg.pin_sclk = 4; // SPIのSCLKピン番号を設定 + cfg.pin_mosi = 5; // SPIのMOSIピン番号を設定 + cfg.pin_miso = -1; // SPIのMISOピン番号を設定 (-1 = disable) + cfg.pin_dc = 6; // SPIのD/Cピン番号を設定 (-1 = disable) + // SDカードと共通のSPIバスを使う場合、MISOは省略せず必ず設定してください。 + _bus_instance.config(cfg); // 設定値をバスに反映します。 + _panel_instance.setBus(&_bus_instance); // バスをパネルにセットします。 + } + + { // 表示パネル制御の設定を行います。 + auto cfg = _panel_instance.config(); // 表示パネル設定用の構造体を取得します。 + + cfg.pin_cs = 8; // CSが接続されているピン番号 (-1 = disable) + cfg.pin_rst = 7; // RSTが接続されているピン番号 (-1 = disable) + cfg.pin_busy = -1; // BUSYが接続されているピン番号 (-1 = disable) + + // ※ 以下の設定値はパネル毎に一般的な初期値が設定されていますので、不明な項目はコメントアウトして試してみてください。 + + cfg.panel_width = 172; // 実際に表示可能な幅 + cfg.panel_height = 320; // 実際に表示可能な高さ + cfg.offset_x = 34; // パネルのX方向オフセット量 + cfg.offset_y = 0; // パネルのY方向オフセット量 + cfg.offset_rotation = 3; // 回転方向の値のオフセット 0~7 (4~7は上下反転) + cfg.dummy_read_pixel = 8; // ピクセル読出し前のダミーリードのビット数 + cfg.dummy_read_bits = 1; // ピクセル以外のデータ読出し前のダミーリードのビット数 + cfg.readable = true; // データ読出しが可能な場合 trueに設定 + cfg.invert = false; // パネルの明暗が反転してしまう場合 trueに設定 + cfg.rgb_order = false; // パネルの赤と青が入れ替わってしまう場合 trueに設定 + cfg.dlen_16bit = false; // 16bitパラレルやSPIでデータ長を16bit単位で送信するパネルの場合 trueに設定 + cfg.bus_shared = true; // SDカードとバスを共有している場合 trueに設定(drawJpgFile等でバス制御を行います) + + // 以下はST7735やILI9163のようにピクセル数が可変のドライバで表示がずれる場合にのみ設定してください。 + // cfg.memory_width = 240; // ドライバICがサポートしている最大の幅 + // cfg.memory_height = 320; // ドライバICがサポートしている最大の高さ + + _panel_instance.config(cfg); + } + + { // バックライト制御の設定を行います。(必要なければ削除) + auto cfg = _light_instance.config(); // バックライト設定用の構造体を取得します。 + + cfg.pin_bl = 10; // バックライトが接続されているピン番号 + cfg.invert = true; // バックライトの輝度を反転させる場合 true + cfg.freq = 44100; // バックライトのPWM周波数 + cfg.pwm_channel = 7; // 使用するPWMのチャンネル番号 + + _light_instance.config(cfg); + _panel_instance.setLight(&_light_instance); // バックライトをパネルにセットします。 + } + + setPanel(&_panel_instance); // 使用するパネルをセットします。 + } +}; + +static LGFX lcd; +// static LGFX_Sprite sprite(&lcd); + +void drawGradation(void) +{ + // 背景にグラデーションを描画する + lcd.startWrite(); + lcd.setAddrWindow(0, 0, lcd.width(), lcd.height()); + for (int y = 0; y < lcd.height(); ++y) + { + for (int x = 0; x < lcd.width(); ++x) + { + lcd.writeColor(lcd.color888(x >> 1, (x + y) >> 2, y >> 1), 1); + } + } + lcd.endWrite(); +} + +void checkConfig() +{ + Serial.print("Mode: "); + switch (ina.getMode()) + { + case INA226_MODE_POWER_DOWN: + Serial.println("Power-Down"); + break; + case INA226_MODE_SHUNT_TRIG: + Serial.println("Shunt Voltage, Triggered"); + break; + case INA226_MODE_BUS_TRIG: + Serial.println("Bus Voltage, Triggered"); + break; + case INA226_MODE_SHUNT_BUS_TRIG: + Serial.println("Shunt and Bus, Triggered"); + break; + case INA226_MODE_ADC_OFF: + Serial.println("ADC Off"); + break; + case INA226_MODE_SHUNT_CONT: + Serial.println("Shunt Voltage, Continuous"); + break; + case INA226_MODE_BUS_CONT: + Serial.println("Bus Voltage, Continuous"); + break; + case INA226_MODE_SHUNT_BUS_CONT: + Serial.println("Shunt and Bus, Continuous"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Samples average: "); + switch (ina.getAverages()) + { + case INA226_AVERAGES_1: + Serial.println("1 sample"); + break; + case INA226_AVERAGES_4: + Serial.println("4 samples"); + break; + case INA226_AVERAGES_16: + Serial.println("16 samples"); + break; + case INA226_AVERAGES_64: + Serial.println("64 samples"); + break; + case INA226_AVERAGES_128: + Serial.println("128 samples"); + break; + case INA226_AVERAGES_256: + Serial.println("256 samples"); + break; + case INA226_AVERAGES_512: + Serial.println("512 samples"); + break; + case INA226_AVERAGES_1024: + Serial.println("1024 samples"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Bus conversion time: "); + switch (ina.getBusConversionTime()) + { + case INA226_BUS_CONV_TIME_140US: + Serial.println("140uS"); + break; + case INA226_BUS_CONV_TIME_204US: + Serial.println("204uS"); + break; + case INA226_BUS_CONV_TIME_332US: + Serial.println("332uS"); + break; + case INA226_BUS_CONV_TIME_588US: + Serial.println("558uS"); + break; + case INA226_BUS_CONV_TIME_1100US: + Serial.println("1.100ms"); + break; + case INA226_BUS_CONV_TIME_2116US: + Serial.println("2.116ms"); + break; + case INA226_BUS_CONV_TIME_4156US: + Serial.println("4.156ms"); + break; + case INA226_BUS_CONV_TIME_8244US: + Serial.println("8.244ms"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Shunt conversion time: "); + switch (ina.getShuntConversionTime()) + { + case INA226_SHUNT_CONV_TIME_140US: + Serial.println("140uS"); + break; + case INA226_SHUNT_CONV_TIME_204US: + Serial.println("204uS"); + break; + case INA226_SHUNT_CONV_TIME_332US: + Serial.println("332uS"); + break; + case INA226_SHUNT_CONV_TIME_588US: + Serial.println("558uS"); + break; + case INA226_SHUNT_CONV_TIME_1100US: + Serial.println("1.100ms"); + break; + case INA226_SHUNT_CONV_TIME_2116US: + Serial.println("2.116ms"); + break; + case INA226_SHUNT_CONV_TIME_4156US: + Serial.println("4.156ms"); + break; + case INA226_SHUNT_CONV_TIME_8244US: + Serial.println("8.244ms"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Max possible current: "); + Serial.print(ina.getMaxPossibleCurrent()); + Serial.println(" A"); + + Serial.print("Max current: "); + Serial.print(ina.getMaxCurrent()); + Serial.println(" A"); + + Serial.print("Max shunt voltage: "); + Serial.print(ina.getMaxShuntVoltage()); + Serial.println(" V"); + + Serial.print("Max power: "); + Serial.print(ina.getMaxPower()); + Serial.println(" W"); +} + +void setup(void) +{ + lcd.init(); + pinMode(10, OUTPUT); + digitalWrite(10, 0); + // drawGradation(); + // lcd.setFont(&fonts::Font7); + // lcd.setTextDatum(textdatum_t::bottom_right); + // lcd.setTextDatum(bottom_right); + // lcd.setTextColor(0x000000U, 0xFFFFFFU); + // lcd.fillScreen(0xFFFFFFU); + lcd.setTextColor(0xFFFFFFU, 0x000000U); + lcd.fillScreen(0xFFFFFFU); + + + Serial.begin(115200); + + Serial.println("Initialize INA226"); + Serial.println("-----------------------------------------------"); + + Wire.begin(1, 0, 100000); + // Default INA226 address is 0x40 + bool success = ina.begin(); + // Check if the connection was successful, stop if not + if (!success) + { + Serial.println("Connection error"); + while (1) + ; + } + // Configure INA226 + ina.configure(INA226_AVERAGES_1, INA226_BUS_CONV_TIME_1100US, INA226_SHUNT_CONV_TIME_1100US, INA226_MODE_SHUNT_BUS_CONT); + // Calibrate INA226. Rshunt = 0.001 ohm, Max excepted current = 4A + ina.calibrate(0.001, 40); + // Display configuration + checkConfig(); + + +} +int32_t current; +int32_t current_buf[322]; +float t = 0; +void loop(void) +{ + delay(20); + + // lcd.setFont(&fonts::Roboto_Thin_24); + // lcd.setTextColor(0x000000U, 0x000000U); + // lcd.setFont(&fonts::Font4); + // lcd.setTextDatum(bottom_center); + // lcd.drawString("V", 180, 50); + // lcd.drawString("A", 180, 108); + // lcd.drawString("W", 180, 166); + + // lcd.setTextDatum(top_left); + // lcd.drawString("Current", 20, 0); + + // lcd.setFont(&fonts::Font6); + // lcd.setTextDatum(bottom_right); + // lcd.drawFloat(ina.readBusVoltage(), 4, 160, 58); + // lcd.drawFloat(abs(ina.readShuntCurrent()), 4, 160, 116); + // lcd.drawFloat(ina.readBusPower(), 4, 160, 174); + + // lcd.setTextColor(0xFFFFFFU, 0x000000U); + + // for (size_t i = 0; i < 320; i++) + // { + // // lcd.drawPixel(i, current_buf[i], 0x000000U); + // lcd.drawLine(i - 1, current_buf[i - 1], i, current_buf[i], 0xFFFFFFU); + // } + + current = abs(ina.readShuntCurrent()) * 40; + // t += 0.1; + // current = sin(t) * 30; + + for (size_t i = 0; i < 320; i++) + { + lcd.drawLine(i, current_buf[i], i + 1, current_buf[i + 1], 0xFFFFFFU); + } + + for (size_t i = 320; i > 0; i--) + { + current_buf[i] = current_buf[i - 1]; + } + current_buf[0] = 150 - current; + + // lcd.clearDisplay(0xFFFFFFU); + + for (size_t i = 0; i < 320; i++) + { + lcd.drawLine(i, current_buf[i], i + 1, current_buf[i + 1], 0x000000U); + } + + // lcd.drawNumber(ina.readBusVoltage(), 120, 120); + // ※ 名前が"Free"で始まるフォントは 9pt 12pt 18pt 24ptの4種類があります。 + // drawNumberTest( &fonts::Font0 ); + // drawNumberTest( &fonts::Font2 ); + // drawNumberTest( &fonts::Font4 ); + // drawNumberTest( &fonts::Font6 ); + // drawNumberTest( &fonts::Font7 ); + // drawNumberTest( &fonts::Font8 ); + // drawNumberTest( &fonts::TomThumb ); + // drawNumberTest( &fonts::FreeMono9pt7b ); + // drawNumberTest( &fonts::FreeMonoBold9pt7b ); + // drawNumberTest( &fonts::FreeMonoOblique9pt7b ); + // drawNumberTest( &fonts::FreeMonoBoldOblique9pt7b); + // drawNumberTest( &fonts::FreeSans9pt7b ); + // drawNumberTest( &fonts::FreeSansBold9pt7b ); + // drawNumberTest( &fonts::FreeSansOblique9pt7b ); + // drawNumberTest( &fonts::FreeSansBoldOblique9pt7b); + // drawNumberTest( &fonts::FreeSerif9pt7b ); + // drawNumberTest( &fonts::FreeSerifBold9pt7b ); + // drawNumberTest( &fonts::FreeSerifItalic9pt7b ); + // drawNumberTest( &fonts::FreeSerifBoldItalic9pt7b); + // drawNumberTest( &fonts::Orbitron_Light_24 ); + // drawNumberTest( &fonts::Roboto_Thin_24 ); + // drawNumberTest( &fonts::Satisfy_24 ); + // drawNumberTest( &fonts::Yellowtail_32 ); +} \ No newline at end of file diff --git a/src/绘制图像 b/src/绘制图像 new file mode 100644 index 0000000..05a7194 --- /dev/null +++ b/src/绘制图像 @@ -0,0 +1,630 @@ +#include +#include + +INA226 ina(Wire); + +// #include +// #include "misakiUTF16FontData.h" +#include +// ESP32でLovyanGFXを独自設定で利用する場合の設定例 +extern const uint8_t rgb888[]; +extern const uint8_t bgr888[]; +extern const uint16_t swap565[]; +extern const uint16_t rgb565[]; +extern const uint8_t rgb332[]; + +static constexpr int image_width = 33; +static constexpr int image_height = 31; +//---------------------------------------------------------------------------- + +/// 独自の設定を行うクラスを、LGFX_Deviceから派生して作成します。 +class LGFX : public lgfx::LGFX_Device +{ + lgfx::Panel_ST7789 _panel_instance; + lgfx::Bus_SPI _bus_instance; // SPIバスのインスタンス + lgfx::Light_PWM _light_instance; + +public: + // コンストラクタを作成し、ここで各種設定を行います。 + // クラス名を変更した場合はコンストラクタも同じ名前を指定してください。 + LGFX(void) + { + { // バス制御の設定を行います。 + auto cfg = _bus_instance.config(); // バス設定用の構造体を取得します。 + + // SPIバスの設定 + cfg.spi_host = SPI2_HOST; // 使用するSPIを選択 ESP32-S2,C3 : SPI2_HOST or SPI3_HOST / ESP32 : VSPI_HOST or HSPI_HOST + // ※ ESP-IDFバージョンアップに伴い、VSPI_HOST , HSPI_HOSTの記述は非推奨になるため、エラーが出る場合は代わりにSPI2_HOST , SPI3_HOSTを使用してください。 + cfg.spi_mode = 3; // SPI通信モードを設定 (0 ~ 3) + cfg.freq_write = 80000000; // 送信時のSPIクロック (最大80MHz, 80MHzを整数で割った値に丸められます) + cfg.freq_read = 16000000; // 受信時のSPIクロック + cfg.spi_3wire = true; // 受信をMOSIピンで行う場合はtrueを設定 + cfg.use_lock = true; // トランザクションロックを使用する場合はtrueを設定 + cfg.dma_channel = SPI_DMA_CH_AUTO; // 使用するDMAチャンネルを設定 (0=DMA不使用 / 1=1ch / 2=ch / SPI_DMA_CH_AUTO=自動設定) + // ※ ESP-IDFバージョンアップに伴い、DMAチャンネルはSPI_DMA_CH_AUTO(自動設定)が推奨になりました。1ch,2chの指定は非推奨になります。 + cfg.pin_sclk = 4; // SPIのSCLKピン番号を設定 + cfg.pin_mosi = 5; // SPIのMOSIピン番号を設定 + cfg.pin_miso = -1; // SPIのMISOピン番号を設定 (-1 = disable) + cfg.pin_dc = 6; // SPIのD/Cピン番号を設定 (-1 = disable) + // SDカードと共通のSPIバスを使う場合、MISOは省略せず必ず設定してください。 + _bus_instance.config(cfg); // 設定値をバスに反映します。 + _panel_instance.setBus(&_bus_instance); // バスをパネルにセットします。 + } + + { // 表示パネル制御の設定を行います。 + auto cfg = _panel_instance.config(); // 表示パネル設定用の構造体を取得します。 + + cfg.pin_cs = 8; // CSが接続されているピン番号 (-1 = disable) + cfg.pin_rst = 7; // RSTが接続されているピン番号 (-1 = disable) + cfg.pin_busy = -1; // BUSYが接続されているピン番号 (-1 = disable) + // ※ 以下の設定値はパネル毎に一般的な初期値が設定されていますので、不明な項目はコメントアウトして試してみてください。 + cfg.panel_width = 172; // 実際に表示可能な幅 + cfg.panel_height = 320; // 実際に表示可能な高さ + cfg.offset_x = 34; // パネルのX方向オフセット量 + cfg.offset_y = 0; // パネルのY方向オフセット量 + cfg.offset_rotation = 3; // 回転方向の値のオフセット 0~7 (4~7は上下反転) + cfg.dummy_read_pixel = 8; // ピクセル読出し前のダミーリードのビット数 + cfg.dummy_read_bits = 1; // ピクセル以外のデータ読出し前のダミーリードのビット数 + cfg.readable = false; // データ読出しが可能な場合 trueに設定 + cfg.invert = true; // パネルの明暗が反転してしまう場合 trueに設定 + cfg.rgb_order = false; // パネルの赤と青が入れ替わってしまう場合 trueに設定 + cfg.dlen_16bit = false; // 16bitパラレルやSPIでデータ長を16bit単位で送信するパネルの場合 trueに設定 + cfg.bus_shared = false; // SDカードとバスを共有している場合 trueに設定(drawJpgFile等でバス制御を行います) + + _panel_instance.config(cfg); + } + + { // バックライト制御の設定を行います。(必要なければ削除) + auto cfg = _light_instance.config(); // バックライト設定用の構造体を取得します。 + + cfg.pin_bl = 10; // バックライトが接続されているピン番号 + cfg.invert = true; // バックライトの輝度を反転させる場合 true + cfg.freq = 44100; // バックライトのPWM周波数 + cfg.pwm_channel = 1; // 使用するPWMのチャンネル番号 + + _light_instance.config(cfg); + _panel_instance.setLight(&_light_instance); // バックライトをパネルにセットします。 + } + + setPanel(&_panel_instance); // 使用するパネルをセットします。 + } +}; + +static LGFX lcd; +// static LGFX_Sprite sprite(&lcd); + +void drawGradation(void) +{ + // 背景にグラデーションを描画する + lcd.startWrite(); + lcd.setAddrWindow(0, 0, lcd.width(), lcd.height()); + for (int y = 0; y < lcd.height(); ++y) + { + for (int x = 0; x < lcd.width(); ++x) + { + lcd.writeColor(lcd.color888(x >> 1, (x + y) >> 2, y >> 1), 1); + } + } + lcd.endWrite(); +} + +void checkConfig() +{ + Serial.print("Mode: "); + switch (ina.getMode()) + { + case INA226_MODE_POWER_DOWN: + Serial.println("Power-Down"); + break; + case INA226_MODE_SHUNT_TRIG: + Serial.println("Shunt Voltage, Triggered"); + break; + case INA226_MODE_BUS_TRIG: + Serial.println("Bus Voltage, Triggered"); + break; + case INA226_MODE_SHUNT_BUS_TRIG: + Serial.println("Shunt and Bus, Triggered"); + break; + case INA226_MODE_ADC_OFF: + Serial.println("ADC Off"); + break; + case INA226_MODE_SHUNT_CONT: + Serial.println("Shunt Voltage, Continuous"); + break; + case INA226_MODE_BUS_CONT: + Serial.println("Bus Voltage, Continuous"); + break; + case INA226_MODE_SHUNT_BUS_CONT: + Serial.println("Shunt and Bus, Continuous"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Samples average: "); + switch (ina.getAverages()) + { + case INA226_AVERAGES_1: + Serial.println("1 sample"); + break; + case INA226_AVERAGES_4: + Serial.println("4 samples"); + break; + case INA226_AVERAGES_16: + Serial.println("16 samples"); + break; + case INA226_AVERAGES_64: + Serial.println("64 samples"); + break; + case INA226_AVERAGES_128: + Serial.println("128 samples"); + break; + case INA226_AVERAGES_256: + Serial.println("256 samples"); + break; + case INA226_AVERAGES_512: + Serial.println("512 samples"); + break; + case INA226_AVERAGES_1024: + Serial.println("1024 samples"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Bus conversion time: "); + switch (ina.getBusConversionTime()) + { + case INA226_BUS_CONV_TIME_140US: + Serial.println("140uS"); + break; + case INA226_BUS_CONV_TIME_204US: + Serial.println("204uS"); + break; + case INA226_BUS_CONV_TIME_332US: + Serial.println("332uS"); + break; + case INA226_BUS_CONV_TIME_588US: + Serial.println("558uS"); + break; + case INA226_BUS_CONV_TIME_1100US: + Serial.println("1.100ms"); + break; + case INA226_BUS_CONV_TIME_2116US: + Serial.println("2.116ms"); + break; + case INA226_BUS_CONV_TIME_4156US: + Serial.println("4.156ms"); + break; + case INA226_BUS_CONV_TIME_8244US: + Serial.println("8.244ms"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Shunt conversion time: "); + switch (ina.getShuntConversionTime()) + { + case INA226_SHUNT_CONV_TIME_140US: + Serial.println("140uS"); + break; + case INA226_SHUNT_CONV_TIME_204US: + Serial.println("204uS"); + break; + case INA226_SHUNT_CONV_TIME_332US: + Serial.println("332uS"); + break; + case INA226_SHUNT_CONV_TIME_588US: + Serial.println("558uS"); + break; + case INA226_SHUNT_CONV_TIME_1100US: + Serial.println("1.100ms"); + break; + case INA226_SHUNT_CONV_TIME_2116US: + Serial.println("2.116ms"); + break; + case INA226_SHUNT_CONV_TIME_4156US: + Serial.println("4.156ms"); + break; + case INA226_SHUNT_CONV_TIME_8244US: + Serial.println("8.244ms"); + break; + default: + Serial.println("unknown"); + } + + Serial.print("Max possible current: "); + Serial.print(ina.getMaxPossibleCurrent()); + Serial.println(" A"); + + Serial.print("Max current: "); + Serial.print(ina.getMaxCurrent()); + Serial.println(" A"); + + Serial.print("Max shunt voltage: "); + Serial.print(ina.getMaxShuntVoltage()); + Serial.println(" V"); + + Serial.print("Max power: "); + Serial.print(ina.getMaxPower()); + Serial.println(" W"); +} + +void setup(void) +{ + lcd.init(); + lcd.startWrite(); + lcd.setBrightness(100); + + Wire.begin(1, 0, 100000); + // Default INA226 address is 0x40 + bool success = ina.begin(); + // Check if the connection was successful, stop if not + if (!success) + { + Serial.println("Connection error"); + while (1) + ; + } + // Configure INA226 + ina.configure(INA226_AVERAGES_1, INA226_BUS_CONV_TIME_1100US, INA226_SHUNT_CONV_TIME_1100US, INA226_MODE_SHUNT_BUS_CONT); + // Calibrate INA226. Rshunt = 0.001 ohm, Max excepted current = 4A + ina.calibrate(0.001, 40); + // Display configuration + checkConfig(); +} +int32_t current; +int32_t current_buf[322]; +float t = 0; + +void loop(void) +{ + + /* + 画像データを描画する関数は幾つか種類があります。 + + 方法1.事前に描画範囲を設定しておき、次にデータの長さを指定して描画する方法 + 方法2.描画する座標と幅・高さを指定してデータを描画する方法 + + + + 方法1.事前に描画範囲を設定しておき、次にデータの長さを指定して描画する方法 + + この方法では、setWindow/setAddrWindow関数で描画範囲を設定したあと、 + writePixels/pushPixels関数で画像データの長さを指定して描画します。 + + setWindow( x0, y0, x1, y1 ); // 描画範囲の指定。左上座標と右下座標を指定します。 + setAddrWindow( x, y, w, h ); // 描画範囲の指定。左上座標と幅と高さを指定します。 + + setWindow は画面外の座標を指定した場合の動作は保証されません。 + setAddrWindow は描画範囲外が指定された場合は範囲内に調整されます。 + ※ ただし自動調整された結果、実際に設定される幅や高さが指定した値より小さくなる可能性があるので注意が必要です。 + + writePixels ( *data, len, swap ); // 画像を描画する。(事前にstartWrite、事後にendWriteが必要) + pushPixels ( *data, len, swap ); // 画像を描画する。(startWrite・endWriteは不要) + + ※ writePixelsはAdafruitGFX由来の関数で、pushPixelsはTFT_eSPI由来の関数です。 + 描画内容は同等ですが、startWrite/endWriteが自動で行われるか否かが違います。 + + 第1引数:画像データのポインタ(データ型に応じて色の形式を判断して変換が行われます。) + 第2引数:画像データのピクセル数(バイト数でない点に注意。) + 第3引数:バイト順変換フラグ(省略時は事前にsetSwapBytes関数で設定した値が使用されます。) + + 第1引数のdataの型に基づいて色の形式変換が行われます。 + uint8_t* の場合、 8bitカラー RGB332として扱います。 + uint16_t* の場合、16bitカラー RGB565として扱います。 + void* の場合、24bitカラー RGB888として扱います。 + ※ (3バイトのプリミティブ型が無いため、void*型を24bitカラー扱いとしています) + + ※ LCDに描画する際に、LCDの色数モードに応じて色形式の変換が自動的に行われます。 + */ + lcd.clear(TFT_WHITE); + lcd.setColorDepth(16); // LCDを16bitカラーモードに設定する。 + lcd.setSwapBytes(true); // バイト順変換を有効にする。 + int len = image_width * image_height; + + // 画像の幅と高さをsetAddrWindowで事前に設定し、writePixelsで描画します。 + lcd.setAddrWindow(0, 0, image_width, image_height); // 描画範囲を設定。 + lcd.writePixels((uint16_t *)rgb565, len); // RGB565の16bit画像データを描画。 + + // データとバイト順変換の指定が一致していない場合、色化けします。 + lcd.setAddrWindow(0, 40, image_width, image_height); + // 第3引数でfalseを指定することでバイト順変換の有無を指定できます。 + lcd.writePixels((uint16_t *)rgb565, len, false); // RGB565の画像をバイト順変換無しで描画すると色が化ける。 + + // 描画範囲が画面外にはみ出すなどして画像の幅や高さと合わなくなった場合、描画結果が崩れます。 + lcd.setAddrWindow(-1, 80, image_width, image_height); // X座標が-1(画面外)のため、正しく設定できない。 + lcd.writePixels((uint16_t *)rgb565, len); // 描画先の幅と画像の幅が不一致のため描画内容が崩れる。 + + // データと型が一致していない場合も、描画結果が崩れます。 + lcd.setAddrWindow(0, 120, image_width, image_height); + // RGB565のデータをわざとuint8_tにキャストし、RGB332の8bitカラーとして扱わせる。 + lcd.writePixels((uint8_t *)rgb565, len); // 画像の形式と型が一致していないため描画が乱れる。 + + // データと型が一致していれば、描画先の色数に合わせて適切な形式変換が行われます。 + lcd.setAddrWindow(0, 160, image_width, image_height); + lcd.writePixels((uint8_t *)rgb332, len); // RGB332のデータでも16bitカラーのLCDに正しく描画できる。 + + // ※ LCDへの画像データの送信は、メモリの若いアドレスにあるデータから順に1Byte単位で送信されます。 + // このため、例えばRGB565の16bit型のデータを素直にuint16_tの配列で用意すると、送信の都合としてはバイト順が入れ替わった状態になります。 + // この場合は事前にsetSwapBytes(true)を使用したり、第3引数にtrueを指定する事で、バイト順の変換が行われて正常に描画できます。 + // なお用意する画像データを予め上位下位バイトを入れ替えた状態で作成すれば、この変換は不要になり速度面で有利になります。 + + lcd.setAddrWindow(40, 0, image_width, image_height); + lcd.writePixels((uint16_t *)swap565, len, false); // 予め上位下位が入れ替わった16bitデータの場合はバイト順変換を無効にする。 + + lcd.setAddrWindow(40, 40, image_width, image_height); + lcd.writePixels((uint16_t *)swap565, len, true); // 逆に、予め上位下位が入れ替わったデータにバイト順変換を行うと色が化ける。 + + lcd.setAddrWindow(40, 80, image_width, image_height); + lcd.writePixels((void *)rgb888, len, true); // 24bitのデータも同様に、RGB888の青が下位側にあるデータはバイト順変換が必要。 + + lcd.setAddrWindow(40, 120, image_width, image_height); + lcd.writePixels((void *)bgr888, len, false); // 同様に、BGR888の赤が下位側にあるデータはバイト順変換は不要。 + + lcd.setAddrWindow(40, 160, image_width, image_height); + lcd.writePixels((void *)bgr888, len, true); // 設定を誤ると、色が化ける。(赤と青が入れ替わる) + + lcd.display(); + delay(4000); + lcd.clear(TFT_DARKGREY); + + /* + 方法2.描画する座標と幅・高さを指定してデータを描画する方法 + + この方法では、pushImage関数を用いて描画範囲と描画データを指定して描画します。 + + pushImage( x, y, w, h, *data); // 指定された座標に画像を描画する。 + + 方法1と違い、画面外にはみ出す座標を指定しても描画が乱れることはありません。(はみ出した部分は描画されません。) + 方法1と違い、バイト順の変換を指定する引数が無いため、事前にsetSwapBytesによる設定が必要です。 + なお方法1と同様に、dataの型に応じて色変換が行われます。 + */ + + lcd.setSwapBytes(true); // バイト順変換を有効にする。 + + // 描画先の座標と画像の幅・高さを指定して画像データを描画します。 + lcd.pushImage(0, 0, image_width, image_height, (uint16_t *)rgb565); // RGB565の16bit画像データを描画。 + + // データとバイト順変換の指定が一致していない場合、色化けします。 + lcd.pushImage(0, 40, image_width, image_height, (uint16_t *)swap565); // NG. バイト順変換済みデータにバイト順変換を行うと色化けする。 + + // 描画範囲が画面外にはみ出すなどした場合でも、描画結果が崩れることはありません。 + lcd.pushImage(-1, 80, image_width, image_height, (uint16_t *)rgb565); // X座標-1(画面外)を指定しても描画は乱れない。 + + // データと型が一致していない場合は、描画結果が崩れます。 + lcd.pushImage(0, 120, image_width, image_height, (uint8_t *)rgb565); // RGB565のデータをuint8_tにキャストし、RGB332として扱わせると描画が乱れる。 + + // データと型が一致していれば、適切に形式変換が行われます。 + lcd.pushImage(0, 160, image_width, image_height, (uint8_t *)rgb332); // RGB332のデータでも正しく描画できる。 + + lcd.setSwapBytes(false); // バイト順の変換を無効にする。 + lcd.pushImage(40, 0, image_width, image_height, (uint8_t *)rgb332); // good. RGB332のデータはバイト順変換の影響を受けない。 + lcd.pushImage(40, 40, image_width, image_height, (uint16_t *)rgb565); // NG. RGB565のデータはバイト順変換が必要。 + lcd.pushImage(40, 80, image_width, image_height, (void *)rgb888); // NG. RGB888のデータはバイト順変換が必要。 + lcd.pushImage(40, 120, image_width, image_height, (uint16_t *)swap565); // good. バイト順変換済みRGB565のデータは色化けしない。 + lcd.pushImage(40, 160, image_width, image_height, (void *)bgr888); // good. バイト順変換済みRGB888のデータは色化けしない。 + + lcd.setSwapBytes(true); // バイト順の変換を有効にする。 + lcd.pushImage(80, 0, image_width, image_height, (uint8_t *)rgb332); // good. RGB332のデータはバイト順変換の影響を受けない。 + lcd.pushImage(80, 40, image_width, image_height, (uint16_t *)rgb565); // good. バイト順変換が有効ならRGB565のデータは色化けしない。 + lcd.pushImage(80, 80, image_width, image_height, (void *)rgb888); // good. バイト順変換が有効ならRGB888のデータは色化けしない。 + lcd.pushImage(80, 120, image_width, image_height, (uint16_t *)swap565); // NG. バイト順変換済みデータにバイト順変換を行うと色化けする。 + lcd.pushImage(80, 160, image_width, image_height, (void *)bgr888); // NG. バイト順変換済みデータにバイト順変換を行うと色化けする。 + + // データの型として、lgfx::名前空間に定義されている型を利用する事もできます。 + // これらの型にキャストする場合はsetSwapBytesの設定は無視されます。 + lcd.pushImage(120, 0, image_width, image_height, (lgfx::rgb332_t *)rgb332); // good 8bitデータ + lcd.pushImage(120, 40, image_width, image_height, (lgfx::rgb565_t *)rgb565); // good 16bitデータ + lcd.pushImage(120, 80, image_width, image_height, (lgfx::rgb888_t *)rgb888); // good 24bitデータ + lcd.pushImage(120, 120, image_width, image_height, (lgfx::swap565_t *)swap565); // good バイト順変換済み16bitデータ + lcd.pushImage(120, 160, image_width, image_height, (lgfx::bgr888_t *)bgr888); // good バイト順変換済み24bitデータ + + // 第6引数で透過色を指定できます。透過指定された色のある部分は描画されません。 + lcd.pushImage(160, 0, image_width, image_height, (lgfx::rgb332_t *)rgb332, 0); // 黒を透過指定 + lcd.pushImage(160, 40, image_width, image_height, (lgfx::rgb565_t *)rgb565, (uint8_t)0xE0); // 赤を透過指定 + lcd.pushImage(160, 80, image_width, image_height, (lgfx::rgb888_t *)rgb888, (uint16_t)0x07E0); // 緑を透過指定 + lcd.pushImage(160, 120, image_width, image_height, (lgfx::swap565_t *)swap565, (uint32_t)0x0000FFU); // 青を透過指定 + lcd.pushImage(160, 160, image_width, image_height, (lgfx::bgr888_t *)bgr888, TFT_WHITE); // 白を透過指定 + + lcd.display(); + delay(4000); + lcd.clear(TFT_DARKGREY); + + // pushImageRotateZoom関数を使うと、画像を回転拡大縮小させて描画できます。 + for (int angle = 0; angle <= 360; ++angle) + { + lcd.pushImageRotateZoom(lcd.width() >> 2 // 描画先の中心座標X + , + lcd.height() >> 1 // 描画先の中心座標Y + , + image_width >> 1 // 画像の中心座標X + , + image_height >> 1 // 画像の中心座標Y + , + angle // 回転角度 + , + 3.0 // X方向の描画倍率 (マイナス指定で反転可能) + , + 3.0 // Y方向の描画倍率 (マイナス指定で反転可能) + , + image_width // 画像データの幅 + , + image_height // 画像データの高さ + , + rgb332 // 画像データのポインタ + ); + + // pushImageRotateZoomWithAA関数を使うと、アンチエイリアスが有効になります。 + lcd.pushImageRotateZoomWithAA(lcd.width() * 3 >> 2, lcd.height() >> 1, image_width >> 1, image_height >> 1, angle, 3.0, 3.0, image_width, image_height, rgb332); + + if ((angle % 36) == 0) + { + lcd.display(); + } + } + + lcd.clear(TFT_DARKGREY); + + // pushImageAffine関数を使うと、画像をアフィン変換で変形させて描画できます。 + // アフィン変換のパラメータはfloat型の配列で指定します。 + { + float matrix[6] = // 等倍表示 + {1.0, 0.0, (float)lcd.width() / 2, 0.0, 1.0, (float)lcd.height() / 2}; + lcd.pushImageAffine(matrix, image_width, image_height, rgb332); + } + + lcd.display(); + delay(1000); + lcd.clear(TFT_DARKGREY); + + { + float matrix[6] = // 横2倍表示 + {2.0, 0.0, (float)lcd.width() / 2, 0.0, 1.0, (float)lcd.height() / 2}; + lcd.pushImageAffine(matrix, image_width, image_height, rgb332); + } + + lcd.display(); + delay(1000); + lcd.clear(TFT_DARKGREY); + + { + float matrix[6] = // 縦2倍表示 + {1.0, 0.0, (float)lcd.width() / 2, 0.0, 2.0, (float)lcd.height() / 2}; + lcd.pushImageAffine(matrix, image_width, image_height, rgb332); + } + + lcd.display(); + delay(1000); + lcd.clear(TFT_DARKGREY); + + { + float matrix[6] = // 斜め変形 + {1.0, -0.4, (float)lcd.width() / 2, 0.0, 1.0, (float)lcd.height() / 2}; + lcd.pushImageAffine(matrix, image_width, image_height, rgb332); + } + + lcd.display(); + delay(1000); + lcd.clear(TFT_DARKGREY); + + // pushImageAffineWithAA関数を使用するとアンチエイリアスが有効になります。 + { + float matrix[6] = + {1.0, 0.0, (float)lcd.width() / 2, 0.0, 1.0, (float)lcd.height() / 2}; + for (int i = -300; i < 300; i++) + { + float f = (float)i / 100; + matrix[1] = f; + matrix[3] = f; + lcd.pushImageAffineWithAA(matrix, image_width, image_height, rgb332); + + if ((i % 30) == 0) + { + lcd.display(); + } + } + } +} + +//---------------------------------------------------------------------------- +#define R 0x00, 0x00, 0xFF, +#define G 0x00, 0xFF, 0x00, +#define B 0xFF, 0x00, 0x00, +#define C 0xFF, 0xFF, 0x00, +#define M 0xFF, 0x00, 0xFF, +#define Y 0x00, 0xFF, 0xFF, +#define W 0xFF, 0xFF, 0xFF, +#define _ 0x00, 0x00, 0x00, +constexpr uint8_t rgb888[] = { +#include "image.h" +}; +#undef R +#undef G +#undef B +#undef C +#undef M +#undef Y +#undef W +#undef _ +//---------------------------------------------------------------------------- +#define R 0xFF, 0x00, 0x00, +#define G 0x00, 0xFF, 0x00, +#define B 0x00, 0x00, 0xFF, +#define C 0x00, 0xFF, 0xFF, +#define M 0xFF, 0x00, 0xFF, +#define Y 0xFF, 0xFF, 0x00, +#define W 0xFF, 0xFF, 0xFF, +#define _ 0x00, 0x00, 0x00, +constexpr uint8_t bgr888[] = { +#include "image.h" +}; +#undef R +#undef G +#undef B +#undef C +#undef M +#undef Y +#undef W +#undef _ +//---------------------------------------------------------------------------- +#define R 0x00F8, +#define G 0xE007, +#define B 0x1F00, +#define C 0xFF07, +#define M 0x1FF8, +#define Y 0xE0FF, +#define W 0xFFFF, +#define _ 0x0000, +constexpr uint16_t swap565[] = { +#include "image.h" +}; +#undef R +#undef G +#undef B +#undef C +#undef M +#undef Y +#undef W +#undef _ +//---------------------------------------------------------------------------- +#define R 0xF800, +#define G 0x07E0, +#define B 0x001F, +#define C 0x07FF, +#define M 0xF81F, +#define Y 0xFFE0, +#define W 0xFFFF, +#define _ 0x0000, +constexpr uint16_t rgb565[] = { +#include "image.h" +}; +#undef R +#undef G +#undef B +#undef C +#undef M +#undef Y +#undef W +#undef _ +//---------------------------------------------------------------------------- +#define R 0xE0, +#define G 0x1C, +#define B 0x03, +#define C 0x1F, +#define M 0xE3, +#define Y 0xFC, +#define W 0xFF, +#define _ 0x00, +constexpr uint8_t rgb332[] = { +#include "image.h" +}; +#undef R +#undef G +#undef B +#undef C +#undef M +#undef Y +#undef W +#undef _ \ No newline at end of file diff --git a/test/README b/test/README new file mode 100644 index 0000000..9b1e87b --- /dev/null +++ b/test/README @@ -0,0 +1,11 @@ + +This directory is intended for PlatformIO Test Runner and project tests. + +Unit Testing is a software testing method by which individual units of +source code, sets of one or more MCU program modules together with associated +control data, usage procedures, and operating procedures, are tested to +determine whether they are fit for use. Unit testing finds problems early +in the development cycle. + +More information about PlatformIO Unit Testing: +- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html