Added ImageRotationDemo
8
ImageRotationDemo/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
# The following lines of boilerplate have to be in your project's CMakeLists
|
||||
# in this exact order for cmake to work correctly
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
set(EXTRA_COMPONENT_DIRS ../components/ssd1306)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(ssd1306)
|
19
ImageRotationDemo/README.md
Normal file
@ -0,0 +1,19 @@
|
||||
# ImageRotationDemo for SSD1306
|
||||
|
||||
![ImageRotationDemo](https://github.com/nopnop2002/esp-idf-ssd1306/assets/6020549/924ea4ff-76e3-4739-909e-86da5aba3b91)
|
||||
|
||||
I borrowed the BIT MAP data from [here](https://www.iconspng.com/image/28904/cute-cat).
|
||||
|
||||
I generated BIT MAP data from [this](https://www.mischianti.org/2021/07/14/ssd1306-oled-display-draw-images-splash-and-animations-2/) file.
|
||||
|
||||
|
||||
# How to make your original BIT MAP data
|
||||
- Prepare your image file.
|
||||
- Convert image file to BMP data using [this](https://www.mischianti.org/2021/07/14/ssd1306-oled-display-draw-images-splash-and-animations-2/) page.
|
||||
- Paste the BMP data into your code.
|
||||
|
||||
|
||||
# Free PNG and Icons
|
||||
There is a lot of free images.
|
||||
https://www.iconspng.com/
|
||||
|
28
ImageRotationDemo/images/HowToMakeImage.txt
Normal file
@ -0,0 +1,28 @@
|
||||
curl https://www.iconspng.com/uploads/cute-cat-2/cute-cat-2.png
|
||||
|
||||
convert cute-cat-2.png -monochrome cute-cat-mono.png
|
||||
|
||||
convert cute-cat-mono.png -resize 64x64! cute-cat-mono-mini.png
|
||||
cp cute-cat-mono-mini.png cute-cat-000.png
|
||||
|
||||
convert cute-cat-000.png -background black -rotate +45 cute-cat-xxx.png
|
||||
convert cute-cat-xxx.png -crop 64x64+0+0 cute-cat-045.png
|
||||
|
||||
convert cute-cat-000.png -background black -rotate +90 cute-cat-xxx.png
|
||||
cp cute-cat-xxx.png cute-cat-090.png
|
||||
|
||||
convert cute-cat-000.png -background black -rotate +135 cute-cat-xxx.png
|
||||
convert cute-cat-xxx.png -crop 64x64+0+0 cute-cat-135.png
|
||||
|
||||
convert cute-cat-000.png -background black -rotate +180 cute-cat-xxx.png
|
||||
cp cute-cat-xxx.png cute-cat-180.png
|
||||
|
||||
convert cute-cat-000.png -background black -rotate +225 cute-cat-xxx.png
|
||||
convert cute-cat-xxx.png -crop 64x64+0+0 cute-cat-225.png
|
||||
|
||||
convert cute-cat-000.png -background black -rotate +270 cute-cat-xxx.png
|
||||
cp cute-cat-xxx.png cute-cat-270.png
|
||||
|
||||
convert cute-cat-000.png -background black -rotate +315 cute-cat-xxx.png
|
||||
convert cute-cat-xxx.png -crop 64x64+0+0 cute-cat-315.png
|
||||
|
BIN
ImageRotationDemo/images/cute-cat-000.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
ImageRotationDemo/images/cute-cat-045.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
ImageRotationDemo/images/cute-cat-090.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
ImageRotationDemo/images/cute-cat-135.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
ImageRotationDemo/images/cute-cat-180.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
ImageRotationDemo/images/cute-cat-2.png
Normal file
After Width: | Height: | Size: 167 KiB |
BIN
ImageRotationDemo/images/cute-cat-225.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
ImageRotationDemo/images/cute-cat-270.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
ImageRotationDemo/images/cute-cat-315.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
ImageRotationDemo/images/cute-cat-mono-mini.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
ImageRotationDemo/images/cute-cat-mono.png
Normal file
After Width: | Height: | Size: 109 KiB |
BIN
ImageRotationDemo/images/cute-cat-xxx.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
4
ImageRotationDemo/main/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS "")
|
||||
|
||||
register_component()
|
8
ImageRotationDemo/main/component.mk
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Main component makefile.
|
||||
#
|
||||
# This Makefile can be left empty. By default, it will take the sources in the
|
||||
# src/ directory, compile them and link them into lib(subdirectory_name).a
|
||||
# in the build directory. This behaviour is entirely configurable,
|
||||
# please read the ESP-IDF documents if you need to do this.
|
||||
#
|
394
ImageRotationDemo/main/main.c
Normal file
@ -0,0 +1,394 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "esp_log.h"
|
||||
|
||||
#include "ssd1306.h"
|
||||
|
||||
/*
|
||||
You have to set this config value with menuconfig
|
||||
CONFIG_INTERFACE
|
||||
|
||||
for i2c
|
||||
CONFIG_MODEL
|
||||
CONFIG_SDA_GPIO
|
||||
CONFIG_SCL_GPIO
|
||||
CONFIG_RESET_GPIO
|
||||
|
||||
for SPI
|
||||
CONFIG_CS_GPIO
|
||||
CONFIG_DC_GPIO
|
||||
CONFIG_RESET_GPIO
|
||||
*/
|
||||
|
||||
#define TAG "SSD1306"
|
||||
|
||||
#define IMAGES 8
|
||||
|
||||
int imageOffset[IMAGES] = {31, 31, 31, 31, 31, 31, 31, 31};
|
||||
|
||||
uint8_t cute_cat[IMAGES][512] = {
|
||||
{
|
||||
// 'cute-cat-000', 64x64px
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x30,
|
||||
0x0f, 0x80, 0x07, 0xff, 0xff, 0xe0, 0x00, 0xf0, 0x07, 0xe0, 0x1f, 0xff, 0xff, 0xf8, 0x03, 0xf0,
|
||||
0x07, 0xf8, 0x7f, 0xff, 0xff, 0xfe, 0x0f, 0xe0, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xe0,
|
||||
0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0,
|
||||
0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0,
|
||||
0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x03, 0xff, 0xe0, 0xff, 0xff, 0x07, 0xff, 0xc0,
|
||||
0x03, 0xff, 0x80, 0x7f, 0xfe, 0x01, 0xff, 0xc0, 0x03, 0xff, 0x00, 0x1f, 0xf8, 0x00, 0xff, 0xc0,
|
||||
0x01, 0xfe, 0x00, 0x1f, 0xf8, 0x00, 0x7f, 0xc0, 0x03, 0xfc, 0x20, 0x0f, 0xf0, 0x04, 0x3f, 0xc0,
|
||||
0x03, 0xfc, 0x40, 0x0f, 0xf0, 0x02, 0x3f, 0xc0, 0x07, 0xf8, 0xc0, 0x07, 0xe0, 0x03, 0x1f, 0xe0,
|
||||
0x07, 0xf8, 0xc0, 0x07, 0xe0, 0x03, 0x1f, 0xe0, 0x07, 0xf8, 0xe0, 0x17, 0xe8, 0x07, 0x1f, 0xe0,
|
||||
0x0f, 0xf8, 0xe0, 0x37, 0xec, 0x07, 0x1f, 0xf0, 0x0f, 0xf8, 0xf0, 0x77, 0xee, 0x0f, 0x1f, 0xf0,
|
||||
0x0f, 0xfc, 0xff, 0xf7, 0xef, 0xff, 0x3f, 0xf0, 0x0f, 0xfc, 0x7f, 0xef, 0xf7, 0xfe, 0x3f, 0xf0,
|
||||
0x1f, 0xfe, 0x7f, 0xcf, 0xf3, 0xfe, 0x7f, 0xf8, 0x1f, 0xfe, 0x3f, 0x9f, 0xf9, 0xfc, 0x7f, 0xf8,
|
||||
0x1f, 0xff, 0x0f, 0x3f, 0xfc, 0xf0, 0xff, 0xf8, 0x1f, 0xff, 0xc0, 0xff, 0xff, 0x03, 0xff, 0xf8,
|
||||
0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8,
|
||||
0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8,
|
||||
0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x1f, 0xff, 0xff, 0xc0, 0x07, 0xff, 0xff, 0xf8,
|
||||
0x0f, 0xff, 0xff, 0x80, 0x03, 0xff, 0xff, 0xf0, 0x0f, 0xff, 0xff, 0x8f, 0xe3, 0xff, 0xff, 0xf0,
|
||||
0x0f, 0xff, 0xff, 0xcf, 0xe3, 0xff, 0xff, 0xf0, 0x07, 0xff, 0xff, 0xc7, 0xe7, 0xff, 0xff, 0xe0,
|
||||
0x07, 0xfe, 0xff, 0xe7, 0xc7, 0xfd, 0xff, 0xe0, 0x07, 0xfe, 0x7f, 0xe3, 0xcf, 0xfc, 0xff, 0xe0,
|
||||
0x03, 0xfe, 0x7f, 0xf1, 0x8f, 0xfc, 0xff, 0xc0, 0x03, 0xfe, 0x7f, 0xf9, 0x1f, 0xf9, 0xff, 0xc0,
|
||||
0x01, 0xfe, 0x3f, 0xf8, 0x3f, 0xf9, 0xff, 0x80, 0x01, 0xff, 0x3f, 0xfc, 0x7f, 0xf9, 0xff, 0x80,
|
||||
0x00, 0xff, 0x1f, 0xf8, 0x3f, 0xf3, 0xff, 0x00, 0x00, 0x7f, 0x8f, 0xf0, 0x1f, 0xe3, 0xfe, 0x00,
|
||||
0x00, 0x3f, 0xc3, 0x83, 0x83, 0x87, 0xfc, 0x00, 0x00, 0x1f, 0xe0, 0x07, 0xe0, 0x0f, 0xf8, 0x00,
|
||||
0x00, 0x0f, 0xf8, 0x3f, 0xf8, 0x3f, 0xf0, 0x00, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00,
|
||||
0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00,
|
||||
0x00, 0x00, 0x7f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xf8, 0x00, 0x00,
|
||||
0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0x80, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x0f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
},
|
||||
|
||||
{
|
||||
// 'cute-cat-045', 64x64px
|
||||
0x00, 0x00, 0x00, 0x3f, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xe0, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x7f, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xf0, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x01, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x1f, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xf8, 0x00, 0x00,
|
||||
0x00, 0x01, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0x00, 0x07, 0xff, 0xf0, 0x7f, 0xff, 0x80, 0x00, 0x00, 0x0f, 0xff, 0xc0, 0x1f, 0xff, 0xc0, 0x00,
|
||||
0x00, 0x1f, 0xff, 0x80, 0x0f, 0xff, 0xe0, 0x00, 0x00, 0x3f, 0xff, 0x0e, 0x07, 0xff, 0xf0, 0x00,
|
||||
0x00, 0x7f, 0xfe, 0x1c, 0x03, 0xff, 0xf8, 0x00, 0x00, 0xff, 0xfe, 0x38, 0x03, 0xff, 0xfc, 0x00,
|
||||
0x01, 0xff, 0xfc, 0x78, 0x03, 0xff, 0xfe, 0x00, 0x01, 0xff, 0xfc, 0xf0, 0x03, 0xff, 0xfe, 0x00,
|
||||
0x03, 0xff, 0xfc, 0xf0, 0x03, 0xff, 0xff, 0x00, 0x03, 0xff, 0xfc, 0xf0, 0x03, 0xff, 0xff, 0x80,
|
||||
0x07, 0xff, 0xfc, 0xf8, 0x03, 0xff, 0xff, 0x80, 0x07, 0xff, 0xfc, 0xfc, 0x03, 0xff, 0xff, 0xc0,
|
||||
0x07, 0xff, 0xfe, 0x7e, 0x07, 0xff, 0xff, 0xc0, 0x0f, 0xff, 0xfe, 0x7f, 0xef, 0xff, 0xff, 0xc0,
|
||||
0x0f, 0xff, 0xff, 0x3f, 0xdf, 0xff, 0xff, 0xe0, 0x0f, 0xff, 0xff, 0x8e, 0x3f, 0xff, 0xff, 0xe0,
|
||||
0x0f, 0xff, 0xff, 0xf3, 0xff, 0xc0, 0x3f, 0xe0, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x80, 0x1f, 0xf0,
|
||||
0x1f, 0xe7, 0xff, 0xff, 0xff, 0x00, 0x0f, 0xf0, 0x1f, 0xc7, 0xff, 0xff, 0xfe, 0x80, 0x07, 0xfc,
|
||||
0x1f, 0xcf, 0xff, 0xff, 0xfd, 0x80, 0x07, 0xff, 0x1f, 0xcf, 0xff, 0xff, 0xfd, 0x80, 0x03, 0xff,
|
||||
0x1f, 0x9f, 0xfc, 0x7f, 0xfd, 0x80, 0x03, 0xff, 0x1f, 0x9f, 0xfc, 0x3f, 0xfb, 0xc0, 0x23, 0xff,
|
||||
0x1f, 0x9f, 0xf8, 0x1f, 0xfb, 0xe0, 0x63, 0xff, 0x1f, 0x9f, 0xf9, 0x8f, 0xfb, 0xf1, 0xe3, 0xff,
|
||||
0x1f, 0x9f, 0xf9, 0xc7, 0xfd, 0xff, 0xc7, 0xff, 0x0f, 0x8f, 0xf1, 0xe3, 0xfd, 0xff, 0x87, 0xff,
|
||||
0x0f, 0xcf, 0xf3, 0xf1, 0xfc, 0xff, 0x0f, 0xfe, 0x0f, 0xc7, 0xf3, 0xf8, 0xfe, 0x3e, 0x1f, 0xf8,
|
||||
0x0f, 0xe1, 0xf3, 0xf0, 0xff, 0x00, 0x3f, 0xf0, 0x07, 0xf0, 0x73, 0x01, 0xff, 0xc0, 0xff, 0xe0,
|
||||
0x07, 0xfc, 0x00, 0x07, 0xff, 0xff, 0xff, 0xc0, 0x03, 0xff, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xc0,
|
||||
0x03, 0xff, 0xe3, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x01, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xff, 0x80,
|
||||
0x01, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xff, 0x00,
|
||||
0x00, 0x7f, 0xf1, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x7f, 0xf9, 0xff, 0xff, 0xff, 0xfe, 0x00,
|
||||
0x00, 0x3f, 0xf8, 0xff, 0x1f, 0xff, 0xfc, 0x00, 0x00, 0x1f, 0xfc, 0x3e, 0x1f, 0xff, 0xf8, 0x00,
|
||||
0x00, 0x0f, 0xfe, 0x00, 0x7f, 0xff, 0xf0, 0x00, 0x00, 0x07, 0xff, 0x81, 0xff, 0xff, 0xe0, 0x00,
|
||||
0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00,
|
||||
0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xfc, 0x00, 0x00,
|
||||
0x00, 0x00, 0x07, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0x80, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
},
|
||||
|
||||
{
|
||||
// 'cute-cat-090', 64x64px
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xf0, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 0x60, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xe0, 0x0f, 0xe0,
|
||||
0x00, 0x00, 0x3f, 0xff, 0xff, 0xfb, 0xff, 0xe0, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0,
|
||||
0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80,
|
||||
0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00,
|
||||
0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xfc, 0x1f, 0xfe, 0x00,
|
||||
0x00, 0x7f, 0xff, 0xff, 0xf0, 0x07, 0xfe, 0x00, 0x00, 0xff, 0x83, 0xff, 0xc0, 0x03, 0xfe, 0x00,
|
||||
0x00, 0xfe, 0x07, 0xff, 0x87, 0xe1, 0xfe, 0x00, 0x01, 0xfc, 0x3f, 0xff, 0x9f, 0xf0, 0xff, 0x00,
|
||||
0x03, 0xf8, 0xff, 0xff, 0x3f, 0x88, 0xff, 0x00, 0x03, 0xf1, 0xff, 0xff, 0x3e, 0x00, 0x7f, 0x80,
|
||||
0x03, 0xf3, 0xff, 0xff, 0x7c, 0x00, 0x7f, 0x80, 0x07, 0xe3, 0xff, 0xff, 0x7c, 0x00, 0x7f, 0xc0,
|
||||
0x07, 0xe7, 0xff, 0xff, 0x7c, 0x00, 0x7f, 0xc0, 0x0f, 0xe7, 0xff, 0xff, 0x7c, 0x00, 0x7f, 0xc0,
|
||||
0x0f, 0xe7, 0xff, 0xff, 0xbc, 0x00, 0xff, 0xe0, 0x0f, 0xe3, 0xff, 0x3f, 0x9e, 0x01, 0xff, 0xe0,
|
||||
0x0f, 0xf3, 0xfc, 0x1f, 0xcf, 0x01, 0xff, 0xe0, 0x0f, 0xf3, 0xf0, 0x1f, 0xe7, 0x87, 0xff, 0xe0,
|
||||
0x1f, 0xf1, 0xe1, 0x9f, 0xf8, 0x1f, 0xff, 0xe0, 0x1f, 0xf8, 0x87, 0x9f, 0xff, 0xff, 0xff, 0xe0,
|
||||
0x1f, 0xfc, 0x0f, 0x9f, 0xff, 0xff, 0xff, 0xe0, 0x1f, 0xfc, 0x3f, 0x9f, 0xff, 0xff, 0xff, 0xf0,
|
||||
0x1f, 0xfc, 0x1f, 0x9f, 0xff, 0xff, 0xff, 0xf0, 0x1f, 0xf8, 0x8f, 0x9f, 0xff, 0xff, 0xff, 0xe0,
|
||||
0x1f, 0xf9, 0xc3, 0x9f, 0xff, 0xff, 0xff, 0xe0, 0x1f, 0xf3, 0xe0, 0x1f, 0xf8, 0x1f, 0xff, 0xe0,
|
||||
0x0f, 0xf3, 0xf8, 0x1f, 0xe7, 0x87, 0xff, 0xe0, 0x0f, 0xe3, 0xfe, 0x3f, 0xcf, 0x01, 0xff, 0xe0,
|
||||
0x0f, 0xe7, 0xff, 0xff, 0x9e, 0x01, 0xff, 0xe0, 0x0f, 0xe7, 0xff, 0xff, 0xbc, 0x00, 0xff, 0xe0,
|
||||
0x0f, 0xe7, 0xff, 0xff, 0x7c, 0x00, 0x7f, 0xc0, 0x07, 0xe3, 0xff, 0xff, 0x7c, 0x00, 0x7f, 0xc0,
|
||||
0x07, 0xf3, 0xff, 0xff, 0x7c, 0x00, 0x7f, 0xc0, 0x03, 0xf1, 0xff, 0xff, 0x7c, 0x00, 0x7f, 0x80,
|
||||
0x03, 0xf8, 0xff, 0xff, 0x3e, 0x00, 0x7f, 0x80, 0x01, 0xfc, 0x1f, 0xff, 0x3f, 0x88, 0xff, 0x00,
|
||||
0x01, 0xff, 0x03, 0xff, 0x9f, 0xf0, 0xff, 0x00, 0x00, 0xff, 0xe7, 0xff, 0x87, 0xe1, 0xfe, 0x00,
|
||||
0x00, 0xff, 0xff, 0xff, 0xc0, 0x03, 0xfc, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xf0, 0x07, 0xfc, 0x00,
|
||||
0x00, 0x3f, 0xff, 0xff, 0xfc, 0x1f, 0xfe, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00,
|
||||
0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00,
|
||||
0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80,
|
||||
0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xc0,
|
||||
0x00, 0x00, 0x0f, 0xff, 0xff, 0xe0, 0x3f, 0xe0, 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 0xe0,
|
||||
0x00, 0x00, 0x00, 0x3f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
},
|
||||
|
||||
{
|
||||
// 'cute-cat-135', 64x64px
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x01, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xf0, 0x00, 0x00,
|
||||
0x00, 0x00, 0x1f, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x03, 0xff, 0xc0, 0xff, 0xff, 0xc0, 0x00,
|
||||
0x00, 0x07, 0xff, 0x00, 0x1f, 0xff, 0xe0, 0x00, 0x00, 0x0f, 0xfe, 0x1f, 0x0f, 0xff, 0xf0, 0x00,
|
||||
0x00, 0x1f, 0xfc, 0x7f, 0xcf, 0xff, 0xf8, 0x00, 0x00, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xfc, 0x00,
|
||||
0x00, 0x7f, 0xf8, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x7f, 0xf9, 0xff, 0xff, 0xff, 0xff, 0x00,
|
||||
0x00, 0xff, 0xf1, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xff, 0x80,
|
||||
0x01, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xff, 0x80, 0x03, 0xff, 0xe3, 0xff, 0xff, 0xff, 0xff, 0xc0,
|
||||
0x03, 0xfe, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xc0, 0x07, 0xf8, 0x00, 0x03, 0xff, 0xff, 0xff, 0xc0,
|
||||
0x07, 0xf0, 0xf3, 0xc0, 0xff, 0xc0, 0xff, 0xe0, 0x0f, 0xe3, 0xf3, 0xf8, 0xff, 0x00, 0x3f, 0xf0,
|
||||
0x0f, 0xe7, 0xf1, 0xf8, 0xfe, 0x3e, 0x1f, 0xf8, 0x0f, 0xc7, 0xf9, 0xf1, 0xfc, 0xff, 0x0f, 0xfc,
|
||||
0x0f, 0xcf, 0xf9, 0xe3, 0xfd, 0xff, 0x87, 0xff, 0x1f, 0xcf, 0xf9, 0xc7, 0xfd, 0xff, 0xc7, 0xff,
|
||||
0x1f, 0xcf, 0xf8, 0x8f, 0xfb, 0xf1, 0xe3, 0xff, 0x1f, 0xcf, 0xfc, 0x1f, 0xfb, 0xe0, 0x63, 0xff,
|
||||
0x1f, 0xcf, 0xfc, 0x3f, 0xff, 0xc0, 0x23, 0xff, 0x1f, 0xe7, 0xfe, 0x7f, 0xfd, 0x80, 0x03, 0xff,
|
||||
0x1f, 0xe3, 0xff, 0xff, 0xfd, 0x80, 0x03, 0xff, 0x1f, 0xf3, 0xff, 0xff, 0xfd, 0x80, 0x07, 0xff,
|
||||
0x1f, 0xf3, 0xff, 0xff, 0xfe, 0x80, 0x07, 0xfe, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x00, 0x0f, 0xf8,
|
||||
0x1f, 0xff, 0xff, 0xff, 0xff, 0x80, 0x1f, 0xf0, 0x0f, 0xff, 0xff, 0xf1, 0xff, 0xc0, 0x3f, 0xe0,
|
||||
0x0f, 0xff, 0xff, 0x8e, 0x3f, 0xff, 0xff, 0xe0, 0x0f, 0xff, 0xff, 0x3f, 0xdf, 0xff, 0xff, 0xe0,
|
||||
0x0f, 0xff, 0xfe, 0x7f, 0xef, 0xff, 0xff, 0xc0, 0x07, 0xff, 0xfe, 0x7e, 0x07, 0xff, 0xff, 0xc0,
|
||||
0x07, 0xff, 0xfc, 0xfc, 0x03, 0xff, 0xff, 0xc0, 0x07, 0xff, 0xfc, 0xf8, 0x03, 0xff, 0xff, 0x80,
|
||||
0x03, 0xff, 0xfc, 0xf0, 0x03, 0xff, 0xff, 0x80, 0x03, 0xff, 0xfc, 0xf0, 0x03, 0xff, 0xff, 0x00,
|
||||
0x01, 0xff, 0xfc, 0xf0, 0x03, 0xff, 0xfe, 0x00, 0x01, 0xff, 0xfc, 0x78, 0x03, 0xff, 0xfe, 0x00,
|
||||
0x00, 0xff, 0xfe, 0x38, 0x03, 0xff, 0xfc, 0x00, 0x00, 0x7f, 0xfe, 0x1c, 0x03, 0xff, 0xf8, 0x00,
|
||||
0x00, 0x3f, 0xff, 0x0e, 0x07, 0xff, 0xf0, 0x00, 0x00, 0x1f, 0xff, 0x80, 0x0f, 0xff, 0xe0, 0x00,
|
||||
0x00, 0x0f, 0xff, 0xc0, 0x1f, 0xff, 0xc0, 0x00, 0x00, 0x07, 0xff, 0xf0, 0x7f, 0xff, 0x80, 0x00,
|
||||
0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00,
|
||||
0x00, 0x00, 0x7f, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xe0, 0x00, 0x00,
|
||||
0x00, 0x00, 0x03, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xf8, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xe0, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x7f, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xc0, 0x00, 0x00, 0x00
|
||||
},
|
||||
|
||||
{
|
||||
// 'cute-cat-180', 64x64px
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xf0, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x01, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x00, 0x00,
|
||||
0x00, 0x00, 0x1f, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xfe, 0x00, 0x00,
|
||||
0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00,
|
||||
0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x0f, 0xfc, 0x1f, 0xfc, 0x1f, 0xf0, 0x00,
|
||||
0x00, 0x1f, 0xf0, 0x07, 0xe0, 0x07, 0xf8, 0x00, 0x00, 0x3f, 0xe1, 0xc1, 0xc1, 0xc3, 0xfc, 0x00,
|
||||
0x00, 0x7f, 0xc7, 0xf8, 0x0f, 0xf1, 0xfe, 0x00, 0x00, 0xff, 0xcf, 0xfc, 0x1f, 0xf8, 0xff, 0x00,
|
||||
0x01, 0xff, 0x9f, 0xfe, 0x3f, 0xfc, 0xff, 0x80, 0x01, 0xff, 0x9f, 0xfc, 0x1f, 0xfc, 0x7f, 0x80,
|
||||
0x03, 0xff, 0x9f, 0xf8, 0x9f, 0xfe, 0x7f, 0xc0, 0x03, 0xff, 0x3f, 0xf1, 0x8f, 0xfe, 0x7f, 0xc0,
|
||||
0x07, 0xff, 0x3f, 0xf3, 0xc7, 0xfe, 0x7f, 0xe0, 0x07, 0xff, 0xbf, 0xe3, 0xe7, 0xff, 0x7f, 0xe0,
|
||||
0x07, 0xff, 0xff, 0xe7, 0xe3, 0xff, 0xff, 0xe0, 0x0f, 0xff, 0xff, 0xc7, 0xf3, 0xff, 0xff, 0xf0,
|
||||
0x0f, 0xff, 0xff, 0xc7, 0xf1, 0xff, 0xff, 0xf0, 0x0f, 0xff, 0xff, 0xc0, 0x01, 0xff, 0xff, 0xf0,
|
||||
0x1f, 0xff, 0xff, 0xe0, 0x03, 0xff, 0xff, 0xf8, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8,
|
||||
0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8,
|
||||
0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8,
|
||||
0x1f, 0xff, 0xc0, 0xff, 0xff, 0x03, 0xff, 0xf8, 0x1f, 0xff, 0x0f, 0x3f, 0xfc, 0xf0, 0xff, 0xf8,
|
||||
0x1f, 0xfe, 0x3f, 0x9f, 0xf9, 0xfc, 0x7f, 0xf8, 0x1f, 0xfe, 0x7f, 0xcf, 0xf3, 0xfe, 0x7f, 0xf8,
|
||||
0x0f, 0xfc, 0x7f, 0xef, 0xf7, 0xfe, 0x3f, 0xf0, 0x0f, 0xfc, 0xff, 0xf7, 0xef, 0xff, 0x3f, 0xf0,
|
||||
0x0f, 0xf8, 0xf0, 0x77, 0xee, 0x0f, 0x1f, 0xf0, 0x0f, 0xf8, 0xe0, 0x37, 0xec, 0x07, 0x1f, 0xf0,
|
||||
0x07, 0xf8, 0xe0, 0x17, 0xe8, 0x07, 0x1f, 0xe0, 0x07, 0xf8, 0xc0, 0x07, 0xe0, 0x03, 0x1f, 0xe0,
|
||||
0x07, 0xf8, 0xc0, 0x07, 0xe0, 0x03, 0x1f, 0xe0, 0x03, 0xfc, 0x40, 0x0f, 0xf0, 0x02, 0x3f, 0xc0,
|
||||
0x03, 0xfc, 0x20, 0x0f, 0xf0, 0x04, 0x3f, 0xc0, 0x03, 0xfe, 0x00, 0x1f, 0xf8, 0x00, 0x7f, 0x80,
|
||||
0x03, 0xff, 0x00, 0x1f, 0xf8, 0x00, 0xff, 0xc0, 0x03, 0xff, 0x80, 0x7f, 0xfe, 0x01, 0xff, 0xc0,
|
||||
0x03, 0xff, 0xe0, 0xff, 0xff, 0x07, 0xff, 0xc0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0,
|
||||
0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0,
|
||||
0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0,
|
||||
0x07, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x07, 0xf0, 0x7f, 0xff, 0xff, 0xfe, 0x1f, 0xe0,
|
||||
0x0f, 0xc0, 0x1f, 0xff, 0xff, 0xf8, 0x07, 0xe0, 0x0f, 0x00, 0x07, 0xff, 0xff, 0xe0, 0x01, 0xf0,
|
||||
0x0c, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
},
|
||||
|
||||
{
|
||||
// 'cute-cat-225', 64x64px
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x01, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xe0, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3f, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00,
|
||||
0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00,
|
||||
0x00, 0x07, 0xff, 0xff, 0x81, 0xff, 0xe0, 0x00, 0x00, 0x0f, 0xff, 0xfe, 0x00, 0x7f, 0xf0, 0x00,
|
||||
0x00, 0x1f, 0xff, 0xf8, 0x7c, 0x3f, 0xf8, 0x00, 0x00, 0x3f, 0xff, 0xf8, 0xff, 0x1f, 0xfc, 0x00,
|
||||
0x00, 0x7f, 0xff, 0xff, 0xff, 0x9f, 0xfe, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x8f, 0xfe, 0x00,
|
||||
0x00, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xff, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xff, 0x80,
|
||||
0x01, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xff, 0x80, 0x03, 0xff, 0xff, 0xff, 0xff, 0xc7, 0xff, 0xc0,
|
||||
0x03, 0xff, 0xff, 0xff, 0xfe, 0x00, 0xff, 0xc0, 0x03, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x3f, 0xe0,
|
||||
0x07, 0xff, 0x03, 0xff, 0x80, 0xce, 0x0f, 0xe0, 0x0f, 0xfc, 0x00, 0xff, 0x0f, 0xcf, 0x87, 0xf0,
|
||||
0x1f, 0xf8, 0x7c, 0x7f, 0x1f, 0xcf, 0xe3, 0xf0, 0x7f, 0xf0, 0xff, 0x3f, 0x8f, 0xcf, 0xf3, 0xf0,
|
||||
0xff, 0xe1, 0xff, 0xbf, 0xc7, 0x8f, 0xf1, 0xf0, 0xff, 0xe3, 0xff, 0xbf, 0xe3, 0x9f, 0xf9, 0xf8,
|
||||
0xff, 0xc7, 0x8f, 0xdf, 0xf1, 0x9f, 0xf9, 0xf8, 0xff, 0xc6, 0x07, 0xdf, 0xf8, 0x1f, 0xf9, 0xf8,
|
||||
0xff, 0xc4, 0x03, 0xdf, 0xfc, 0x3f, 0xf9, 0xf8, 0xff, 0xc0, 0x01, 0xbf, 0xfe, 0x3f, 0xf9, 0xf8,
|
||||
0xff, 0xc0, 0x01, 0xbf, 0xff, 0xff, 0xf3, 0xf8, 0xff, 0xe0, 0x01, 0xbf, 0xff, 0xff, 0xf3, 0xf8,
|
||||
0x3f, 0xe0, 0x01, 0x7f, 0xff, 0xff, 0xe3, 0xf8, 0x0f, 0xf0, 0x00, 0xff, 0xff, 0xff, 0xe7, 0xf8,
|
||||
0x0f, 0xf8, 0x01, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x07, 0xfc, 0x03, 0xff, 0xcf, 0xff, 0xff, 0xf0,
|
||||
0x07, 0xff, 0xff, 0xfc, 0x71, 0xff, 0xff, 0xf0, 0x07, 0xff, 0xff, 0xfb, 0xfc, 0xff, 0xff, 0xf0,
|
||||
0x03, 0xff, 0xff, 0xf7, 0xfe, 0x7f, 0xff, 0xf0, 0x03, 0xff, 0xff, 0xe0, 0x7e, 0x7f, 0xff, 0xe0,
|
||||
0x03, 0xff, 0xff, 0xc0, 0x3f, 0x3f, 0xff, 0xe0, 0x01, 0xff, 0xff, 0xc0, 0x1f, 0x3f, 0xff, 0xe0,
|
||||
0x01, 0xff, 0xff, 0xc0, 0x0f, 0x3f, 0xff, 0xc0, 0x00, 0xff, 0xff, 0xc0, 0x0f, 0x3f, 0xff, 0xc0,
|
||||
0x00, 0x7f, 0xff, 0xc0, 0x0f, 0x3f, 0xff, 0x80, 0x00, 0x7f, 0xff, 0xc0, 0x1e, 0x3f, 0xff, 0x80,
|
||||
0x00, 0x3f, 0xff, 0xc0, 0x1c, 0x7f, 0xff, 0x00, 0x00, 0x1f, 0xff, 0xc0, 0x38, 0x7f, 0xfe, 0x00,
|
||||
0x00, 0x0f, 0xff, 0xe0, 0x70, 0xff, 0xfc, 0x00, 0x00, 0x07, 0xff, 0xf0, 0x01, 0xff, 0xf8, 0x00,
|
||||
0x00, 0x03, 0xff, 0xf8, 0x03, 0xff, 0xf0, 0x00, 0x00, 0x01, 0xff, 0xfe, 0x0f, 0xff, 0xe0, 0x00,
|
||||
0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0x80, 0x00,
|
||||
0x00, 0x00, 0x1f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xf8, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0x80, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x0f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xfe, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x07, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xfc, 0x00, 0x00, 0x00
|
||||
},
|
||||
|
||||
{
|
||||
// 'cute-cat-270', 64x64px
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xfc, 0x00, 0x00, 0x00,
|
||||
0x07, 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00, 0x07, 0xfc, 0x07, 0xff, 0xff, 0xf0, 0x00, 0x00,
|
||||
0x03, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00,
|
||||
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00,
|
||||
0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x7f, 0xf8, 0x3f, 0xff, 0xff, 0xfc, 0x00,
|
||||
0x00, 0x3f, 0xe0, 0x0f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x3f, 0xc0, 0x03, 0xff, 0xff, 0xff, 0x00,
|
||||
0x00, 0x7f, 0x87, 0xe1, 0xff, 0xe7, 0xff, 0x00, 0x00, 0xff, 0x0f, 0xf9, 0xff, 0xc0, 0xff, 0x80,
|
||||
0x00, 0xff, 0x11, 0xfc, 0xff, 0xf8, 0x3f, 0x80, 0x01, 0xfe, 0x00, 0x7c, 0xff, 0xff, 0x1f, 0xc0,
|
||||
0x01, 0xfe, 0x00, 0x3e, 0xff, 0xff, 0x8f, 0xc0, 0x03, 0xfe, 0x00, 0x3e, 0xff, 0xff, 0xcf, 0xe0,
|
||||
0x03, 0xfe, 0x00, 0x3e, 0xff, 0xff, 0xc7, 0xe0, 0x03, 0xfe, 0x00, 0x3e, 0xff, 0xff, 0xe7, 0xf0,
|
||||
0x07, 0xff, 0x00, 0x3d, 0xff, 0xff, 0xe7, 0xf0, 0x07, 0xff, 0x80, 0x79, 0xff, 0xff, 0xe7, 0xf0,
|
||||
0x07, 0xff, 0x80, 0xf3, 0xfc, 0x7f, 0xc7, 0xf0, 0x07, 0xff, 0xe1, 0xe7, 0xf8, 0x1f, 0xcf, 0xf0,
|
||||
0x07, 0xff, 0xf8, 0x1f, 0xf8, 0x07, 0xcf, 0xf8, 0x07, 0xff, 0xff, 0xff, 0xf9, 0xc3, 0x9f, 0xf8,
|
||||
0x07, 0xff, 0xff, 0xff, 0xf9, 0xf1, 0x1f, 0xf8, 0x0f, 0xff, 0xff, 0xff, 0xf9, 0xf8, 0x3f, 0xf8,
|
||||
0x0f, 0xff, 0xff, 0xff, 0xf9, 0xfc, 0x3f, 0xf8, 0x07, 0xff, 0xff, 0xff, 0xf9, 0xf0, 0x3f, 0xf8,
|
||||
0x07, 0xff, 0xff, 0xff, 0xf9, 0xe1, 0x1f, 0xf8, 0x07, 0xff, 0xf8, 0x1f, 0xf9, 0x87, 0x8f, 0xf8,
|
||||
0x07, 0xff, 0xe1, 0xe7, 0xf8, 0x0f, 0xcf, 0xf0, 0x07, 0xff, 0x80, 0xf3, 0xf8, 0x3f, 0xcf, 0xf0,
|
||||
0x07, 0xff, 0x80, 0x79, 0xfc, 0xff, 0xc7, 0xf0, 0x07, 0xff, 0x00, 0x3d, 0xff, 0xff, 0xe7, 0xf0,
|
||||
0x03, 0xfe, 0x00, 0x3e, 0xff, 0xff, 0xe7, 0xf0, 0x03, 0xfe, 0x00, 0x3e, 0xff, 0xff, 0xe7, 0xe0,
|
||||
0x03, 0xfe, 0x00, 0x3e, 0xff, 0xff, 0xc7, 0xe0, 0x01, 0xfe, 0x00, 0x3e, 0xff, 0xff, 0xcf, 0xc0,
|
||||
0x01, 0xfe, 0x00, 0x7c, 0xff, 0xff, 0x8f, 0xc0, 0x00, 0xff, 0x11, 0xfc, 0xff, 0xff, 0x1f, 0xc0,
|
||||
0x00, 0xff, 0x0f, 0xf9, 0xff, 0xfc, 0x3f, 0x80, 0x00, 0x7f, 0x87, 0xe1, 0xff, 0xe0, 0x7f, 0x00,
|
||||
0x00, 0x7f, 0xc0, 0x03, 0xff, 0xc1, 0xff, 0x00, 0x00, 0x7f, 0xe0, 0x0f, 0xff, 0xff, 0xfe, 0x00,
|
||||
0x00, 0x7f, 0xf8, 0x3f, 0xff, 0xff, 0xfc, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00,
|
||||
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00,
|
||||
0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00,
|
||||
0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x07, 0xff, 0xdf, 0xff, 0xff, 0xfc, 0x00, 0x00,
|
||||
0x07, 0xf0, 0x07, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x06, 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x0f, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
},
|
||||
|
||||
{
|
||||
// 'cute-cat-315', 64x64px
|
||||
0x00, 0x00, 0x00, 0x03, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xfe, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x07, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x1f, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x00, 0x00,
|
||||
0x00, 0x00, 0x07, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xfe, 0x00, 0x00,
|
||||
0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00,
|
||||
0x00, 0x01, 0xff, 0xfe, 0x0f, 0xff, 0xe0, 0x00, 0x00, 0x03, 0xff, 0xf8, 0x03, 0xff, 0xf0, 0x00,
|
||||
0x00, 0x07, 0xff, 0xf0, 0x01, 0xff, 0xf8, 0x00, 0x00, 0x0f, 0xff, 0xe0, 0x70, 0xff, 0xfc, 0x00,
|
||||
0x00, 0x1f, 0xff, 0xc0, 0x38, 0x7f, 0xfe, 0x00, 0x00, 0x3f, 0xff, 0xc0, 0x1c, 0x7f, 0xff, 0x00,
|
||||
0x00, 0x7f, 0xff, 0xc0, 0x1e, 0x3f, 0xff, 0x80, 0x00, 0x7f, 0xff, 0xc0, 0x0f, 0x3f, 0xff, 0x80,
|
||||
0x00, 0xff, 0xff, 0xc0, 0x0f, 0x3f, 0xff, 0xc0, 0x01, 0xff, 0xff, 0xc0, 0x0f, 0x3f, 0xff, 0xc0,
|
||||
0x01, 0xff, 0xff, 0xc0, 0x1f, 0x3f, 0xff, 0xe0, 0x03, 0xff, 0xff, 0xc0, 0x3f, 0x3f, 0xff, 0xe0,
|
||||
0x03, 0xff, 0xff, 0xe0, 0x7e, 0x7f, 0xff, 0xe0, 0x03, 0xff, 0xff, 0xf7, 0xfe, 0x7f, 0xff, 0xf0,
|
||||
0x07, 0xff, 0xff, 0xfb, 0xfc, 0xff, 0xff, 0xf0, 0x07, 0xff, 0xff, 0xfc, 0x71, 0xff, 0xff, 0xf0,
|
||||
0x07, 0xfc, 0x03, 0xff, 0x8f, 0xff, 0xff, 0xf0, 0x0f, 0xf8, 0x01, 0xff, 0xff, 0xff, 0xff, 0xf8,
|
||||
0x1f, 0xf0, 0x00, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x7f, 0xe0, 0x01, 0x7f, 0xff, 0xff, 0xcf, 0xf8,
|
||||
0xff, 0xe0, 0x01, 0xbf, 0xff, 0xff, 0xcf, 0xf8, 0xff, 0xc0, 0x01, 0xbf, 0xff, 0xff, 0xc7, 0xf8,
|
||||
0xff, 0xc0, 0x01, 0xbf, 0xfe, 0x7f, 0xe7, 0xf8, 0xff, 0xc4, 0x03, 0xff, 0xfc, 0x3f, 0xf3, 0xf8,
|
||||
0xff, 0xc6, 0x07, 0xdf, 0xf8, 0x3f, 0xf3, 0xf8, 0xff, 0xc7, 0x8f, 0xdf, 0xf1, 0x1f, 0xf3, 0xf8,
|
||||
0xff, 0xe3, 0xff, 0xbf, 0xe3, 0x9f, 0xf3, 0xf8, 0xff, 0xe1, 0xff, 0xbf, 0xc7, 0x9f, 0xf3, 0xf0,
|
||||
0x3f, 0xf0, 0xff, 0x3f, 0x8f, 0x9f, 0xe3, 0xf0, 0x1f, 0xf8, 0x7c, 0x7f, 0x1f, 0x8f, 0xe7, 0xf0,
|
||||
0x0f, 0xfc, 0x00, 0xff, 0x1f, 0xcf, 0xc7, 0xf0, 0x07, 0xff, 0x03, 0xff, 0x03, 0xcf, 0x0f, 0xe0,
|
||||
0x03, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x1f, 0xe0, 0x03, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x7f, 0xc0,
|
||||
0x03, 0xff, 0xff, 0xff, 0xff, 0xc7, 0xff, 0xc0, 0x01, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xff, 0x80,
|
||||
0x01, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xff, 0x80, 0x00, 0xff, 0xff, 0xff, 0xff, 0x8f, 0xff, 0x00,
|
||||
0x00, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xfe, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0x1f, 0xfe, 0x00,
|
||||
0x00, 0x3f, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0x00, 0x00, 0x1f, 0xff, 0xf3, 0xfe, 0x3f, 0xf8, 0x00,
|
||||
0x00, 0x0f, 0xff, 0xf0, 0xf8, 0x7f, 0xf0, 0x00, 0x00, 0x07, 0xff, 0xf8, 0x00, 0xff, 0xe0, 0x00,
|
||||
0x00, 0x03, 0xff, 0xff, 0x03, 0xff, 0xc0, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0x00, 0x00, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xf8, 0x00, 0x00,
|
||||
0x00, 0x00, 0x0f, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0x80, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
}
|
||||
};
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
SSD1306_t dev;
|
||||
|
||||
#if CONFIG_I2C_INTERFACE
|
||||
ESP_LOGI(TAG, "INTERFACE is i2c");
|
||||
ESP_LOGI(TAG, "CONFIG_SDA_GPIO=%d",CONFIG_SDA_GPIO);
|
||||
ESP_LOGI(TAG, "CONFIG_SCL_GPIO=%d",CONFIG_SCL_GPIO);
|
||||
ESP_LOGI(TAG, "CONFIG_RESET_GPIO=%d",CONFIG_RESET_GPIO);
|
||||
i2c_master_init(&dev, CONFIG_SDA_GPIO, CONFIG_SCL_GPIO, CONFIG_RESET_GPIO);
|
||||
#endif // CONFIG_I2C_INTERFACE
|
||||
|
||||
#if CONFIG_SPI_INTERFACE
|
||||
ESP_LOGI(TAG, "INTERFACE is SPI");
|
||||
ESP_LOGI(TAG, "CONFIG_MOSI_GPIO=%d",CONFIG_MOSI_GPIO);
|
||||
ESP_LOGI(TAG, "CONFIG_SCLK_GPIO=%d",CONFIG_SCLK_GPIO);
|
||||
ESP_LOGI(TAG, "CONFIG_CS_GPIO=%d",CONFIG_CS_GPIO);
|
||||
ESP_LOGI(TAG, "CONFIG_DC_GPIO=%d",CONFIG_DC_GPIO);
|
||||
ESP_LOGI(TAG, "CONFIG_RESET_GPIO=%d",CONFIG_RESET_GPIO);
|
||||
spi_master_init(&dev, CONFIG_MOSI_GPIO, CONFIG_SCLK_GPIO, CONFIG_CS_GPIO, CONFIG_DC_GPIO, CONFIG_RESET_GPIO);
|
||||
#endif // CONFIG_SPI_INTERFACE
|
||||
|
||||
#if 0
|
||||
#if CONFIG_FLIP
|
||||
dev._flip = true;
|
||||
ESP_LOGW(TAG, "Flip upside down");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if CONFIG_SSD1306_128x64
|
||||
ESP_LOGI(TAG, "Panel is 128x64");
|
||||
ssd1306_init(&dev, 128, 64);
|
||||
#endif // CONFIG_SSD1306_128x64
|
||||
#if CONFIG_SSD1306_128x32
|
||||
ESP_LOGE(TAG, "Panel is 128x32. This demo cannot be run.");
|
||||
while(1) { vTaskDelay(1); }
|
||||
#endif // CONFIG_SSD1306_128x32
|
||||
ssd1306_contrast(&dev, 0xff);
|
||||
|
||||
// Allocate memory
|
||||
uint8_t *buffer = (uint8_t *)malloc(8*128); // 8 page 128 pixel
|
||||
if (buffer == NULL) {
|
||||
ESP_LOGE(TAG, "malloc failed");
|
||||
while(1) { vTaskDelay(1); }
|
||||
}
|
||||
uint8_t *segmentImage = (uint8_t *)malloc(IMAGES*8*128); // IMAGES * 8 page 128 pixel
|
||||
if (segmentImage == NULL) {
|
||||
ESP_LOGE(TAG, "malloc failed");
|
||||
while(1) { vTaskDelay(1); }
|
||||
}
|
||||
|
||||
// Convert from segmentDisplay to segmentImage
|
||||
for (int imageIndex=0;imageIndex<IMAGES;imageIndex++) {
|
||||
ssd1306_clear_screen(&dev, false);
|
||||
ssd1306_bitmaps(&dev, imageOffset[imageIndex], 0, cute_cat[imageIndex], 64, 64, false);
|
||||
ssd1306_get_buffer(&dev, buffer);
|
||||
int segmentImageIndex = imageIndex * 8 * 128;
|
||||
for (int page=0;page<8;page++) {
|
||||
memcpy(&segmentImage[segmentImageIndex+page*128], &buffer[page*128], 128);
|
||||
}
|
||||
vTaskDelay(100);
|
||||
}
|
||||
|
||||
while (1) {
|
||||
for (int imageIndex=0;imageIndex<IMAGES;imageIndex++) {
|
||||
int segmentImageIndex = imageIndex * 8 * 128;
|
||||
ssd1306_set_buffer(&dev, &segmentImage[segmentImageIndex]);
|
||||
ssd1306_show_buffer(&dev);
|
||||
vTaskDelay(10);
|
||||
}
|
||||
}
|
||||
}
|
18
ImageRotationDemo/sdkconfig.defaults
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# ESP32-specific
|
||||
#
|
||||
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
|
||||
CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=240
|
||||
|
||||
#
|
||||
# ESP32S2-specific
|
||||
#
|
||||
CONFIG_ESP32S2_DEFAULT_CPU_FREQ_240=y
|
||||
CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ=240
|
||||
|
||||
#
|
||||
# ESP32S3-specific
|
||||
#
|
||||
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y
|
||||
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ=240
|
||||
|