mirror of
https://github.com/Lurkars/esp-ena.git
synced 2024-11-01 11:04:39 +01:00
307 lines
21 KiB
C
307 lines
21 KiB
C
// Copyright 2020 Lukas Haubaum
|
|
//
|
|
// Licensed under the GNU Affero General Public License, Version 3;
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
|
|
// https://www.gnu.org/licenses/agpl-3.0.html
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
#include "ssd1306-gfx.h"
|
|
|
|
uint8_t ssd1306_gfx_clear[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
|
|
|
uint8_t ssd1306_gfx_font[224][8] = {
|
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
|
|
{0x00, 0x00, 0x00, 0x5f, 0x5f, 0x00, 0x00, 0x00},
|
|
{0x00, 0x08, 0x0e, 0x06, 0x08, 0x0e, 0x06, 0x00},
|
|
{0x00, 0x24, 0x7e, 0x7e, 0x24, 0x7e, 0x7e, 0x24},
|
|
{0x00, 0x4c, 0xde, 0x92, 0xfe, 0x92, 0xf6, 0x64},
|
|
{0x06, 0x8d, 0xe6, 0x78, 0x1e, 0x67, 0xd1, 0x60},
|
|
{0x00, 0x36, 0x7f, 0x49, 0x5f, 0x76, 0x70, 0x50},
|
|
{0x00, 0x00, 0x00, 0x08, 0x0e, 0x06, 0x00, 0x00},
|
|
{0x00, 0x00, 0x00, 0x3e, 0x7f, 0x41, 0x00, 0x00},
|
|
{0x00, 0x00, 0x00, 0x41, 0x7f, 0x3e, 0x00, 0x00},
|
|
{0x00, 0x14, 0x1c, 0x3e, 0x3e, 0x1c, 0x14, 0x00},
|
|
{0x00, 0x08, 0x08, 0x3e, 0x3e, 0x08, 0x08, 0x00},
|
|
{0x00, 0x00, 0x00, 0x80, 0xe0, 0x60, 0x00, 0x00},
|
|
{0x00, 0x00, 0x10, 0x10, 0x10, 0x10, 0x10, 0x00},
|
|
{0x00, 0x00, 0x00, 0x60, 0x60, 0x00, 0x00, 0x00},
|
|
{0x00, 0x00, 0xc0, 0xf0, 0x3c, 0x0f, 0x03, 0x00},
|
|
{0x00, 0x3e, 0x7f, 0x4d, 0x59, 0x7f, 0x3e, 0x00},
|
|
{0x00, 0x42, 0x42, 0x7f, 0x7f, 0x40, 0x40, 0x00},
|
|
{0x00, 0x42, 0x63, 0x71, 0x59, 0x4f, 0x46, 0x00},
|
|
{0x00, 0x41, 0x49, 0x49, 0x49, 0x7f, 0x36, 0x00},
|
|
{0x00, 0x18, 0x1c, 0x16, 0x7f, 0x7f, 0x10, 0x00},
|
|
{0x00, 0x27, 0x67, 0x45, 0x45, 0x7d, 0x39, 0x00},
|
|
{0x00, 0x3e, 0x7f, 0x49, 0x49, 0x7b, 0x32, 0x00},
|
|
{0x00, 0x03, 0x63, 0x71, 0x19, 0x0f, 0x07, 0x00},
|
|
{0x00, 0x36, 0x7f, 0x49, 0x49, 0x7f, 0x36, 0x00},
|
|
{0x00, 0x06, 0x4f, 0x49, 0x69, 0x3f, 0x1e, 0x00},
|
|
{0x00, 0x00, 0x00, 0x24, 0x24, 0x00, 0x00, 0x00},
|
|
{0x00, 0x00, 0x00, 0x80, 0xe8, 0x68, 0x00, 0x00},
|
|
{0x00, 0x00, 0x08, 0x1c, 0x36, 0x22, 0x00, 0x00},
|
|
{0x00, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14},
|
|
{0x00, 0x00, 0x00, 0x22, 0x36, 0x1c, 0x08, 0x00},
|
|
{0x00, 0x02, 0x13, 0x59, 0x49, 0x0f, 0x06, 0x00},
|
|
{0x3e, 0x7f, 0x55, 0x5d, 0x5d, 0x5f, 0x6e, 0x20},
|
|
{0x00, 0x7e, 0x7f, 0x11, 0x11, 0x7f, 0x7e, 0x00},
|
|
{0x00, 0x7f, 0x7f, 0x49, 0x49, 0x7f, 0x36, 0x00},
|
|
{0x00, 0x3e, 0x7f, 0x41, 0x41, 0x63, 0x22, 0x00},
|
|
{0x01, 0x7f, 0x7f, 0x41, 0x41, 0x7f, 0x3e, 0x00},
|
|
{0x00, 0x7f, 0x7f, 0x49, 0x49, 0x49, 0x41, 0x00},
|
|
{0x00, 0x7f, 0x7f, 0x09, 0x09, 0x09, 0x01, 0x00},
|
|
{0x00, 0x3e, 0x7f, 0x41, 0x49, 0x79, 0x79, 0x00},
|
|
{0x00, 0x7f, 0x7f, 0x08, 0x08, 0x7f, 0x7f, 0x00},
|
|
{0x00, 0x00, 0x41, 0x7f, 0x7f, 0x41, 0x00, 0x00},
|
|
{0x00, 0x41, 0x41, 0x7f, 0x3f, 0x01, 0x00, 0x00},
|
|
{0x00, 0x7f, 0x7f, 0x0c, 0x3e, 0x73, 0x41, 0x00},
|
|
{0x00, 0x00, 0x7f, 0x7f, 0x40, 0x40, 0x40, 0x00},
|
|
{0x00, 0x7f, 0x7f, 0x0c, 0x08, 0x0c, 0x7f, 0x7f},
|
|
{0x00, 0x7f, 0x7f, 0x06, 0x0c, 0x7f, 0x7f, 0x00},
|
|
{0x00, 0x3e, 0x7f, 0x41, 0x41, 0x7f, 0x3e, 0x00},
|
|
{0x00, 0x7f, 0x7f, 0x09, 0x09, 0x0f, 0x06, 0x00},
|
|
{0x00, 0x3e, 0x7f, 0x51, 0x61, 0x7f, 0x5e, 0x00},
|
|
{0x00, 0x7f, 0x7f, 0x09, 0x19, 0x7f, 0x66, 0x00},
|
|
{0x00, 0x26, 0x6f, 0x49, 0x49, 0x7b, 0x32, 0x00},
|
|
{0x00, 0x01, 0x01, 0x7f, 0x7f, 0x01, 0x01, 0x00},
|
|
{0x00, 0x3f, 0x7f, 0x40, 0x40, 0x7f, 0x3f, 0x00},
|
|
{0x00, 0x0f, 0x3f, 0x70, 0x70, 0x3f, 0x0f, 0x00},
|
|
{0x3f, 0x7f, 0x60, 0x3c, 0x3c, 0x60, 0x7f, 0x3f},
|
|
{0x00, 0x63, 0x77, 0x1c, 0x1c, 0x77, 0x63, 0x00},
|
|
{0x00, 0x07, 0x0f, 0x78, 0x78, 0x0f, 0x07, 0x00},
|
|
{0x00, 0x61, 0x71, 0x59, 0x4d, 0x47, 0x43, 0x00},
|
|
{0x00, 0x00, 0x00, 0x7f, 0x7f, 0x41, 0x00, 0x00},
|
|
{0x00, 0x00, 0x03, 0x0f, 0x3c, 0xf0, 0xc0, 0x00},
|
|
{0x00, 0x00, 0x00, 0x41, 0x7f, 0x7f, 0x00, 0x00},
|
|
{0x00, 0x00, 0x04, 0x06, 0x02, 0x06, 0x04, 0x00},
|
|
{0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80},
|
|
{0x00, 0x00, 0x00, 0x02, 0x0e, 0x0c, 0x00, 0x00},
|
|
{0x00, 0x30, 0x7a, 0x4a, 0x4a, 0x7e, 0x7c, 0x00},
|
|
{0x00, 0x7f, 0x7f, 0x44, 0x44, 0x7c, 0x38, 0x00},
|
|
{0x00, 0x3c, 0x7e, 0x42, 0x42, 0x46, 0x44, 0x00},
|
|
{0x00, 0x38, 0x7c, 0x44, 0x44, 0x7f, 0x7f, 0x00},
|
|
{0x00, 0x3c, 0x7e, 0x4a, 0x4a, 0x4e, 0x4c, 0x00},
|
|
{0x00, 0x08, 0x7e, 0x7f, 0x09, 0x09, 0x01, 0x00},
|
|
{0x00, 0x1c, 0xbe, 0xa2, 0xa2, 0xfe, 0x7e, 0x00},
|
|
{0x00, 0x7f, 0x7f, 0x0c, 0x04, 0x7c, 0x78, 0x00},
|
|
{0x00, 0x00, 0x44, 0x7d, 0x7d, 0x40, 0x00, 0x00},
|
|
{0x00, 0x00, 0x82, 0xfe, 0x7e, 0x02, 0x00, 0x00},
|
|
{0x00, 0x7e, 0x7e, 0x18, 0x3c, 0x66, 0x42, 0x00},
|
|
{0x00, 0x00, 0x3e, 0x7e, 0x40, 0x40, 0x00, 0x00},
|
|
{0x7c, 0x7e, 0x02, 0x7e, 0x7e, 0x02, 0x7e, 0x7c},
|
|
{0x00, 0x7c, 0x7c, 0x06, 0x02, 0x7e, 0x7c, 0x00},
|
|
{0x00, 0x3c, 0x7e, 0x42, 0x42, 0x7e, 0x3c, 0x00},
|
|
{0x00, 0xfe, 0xfe, 0x22, 0x22, 0x3e, 0x1c, 0x00},
|
|
{0x00, 0x1c, 0x3e, 0x22, 0x22, 0xfe, 0xfe, 0x00},
|
|
{0x00, 0x00, 0x7c, 0x7e, 0x06, 0x02, 0x02, 0x00},
|
|
{0x00, 0x24, 0x6e, 0x4a, 0x4a, 0x7a, 0x30, 0x00},
|
|
{0x00, 0x00, 0x3f, 0x7f, 0x44, 0x44, 0x44, 0x00},
|
|
{0x00, 0x3e, 0x7e, 0x40, 0x60, 0x7e, 0x7e, 0x00},
|
|
{0x00, 0x0e, 0x3e, 0x70, 0x70, 0x3e, 0x0e, 0x00},
|
|
{0x3c, 0x7c, 0x40, 0x7c, 0x7c, 0x40, 0x7e, 0x3e},
|
|
{0x00, 0x42, 0x66, 0x3c, 0x3c, 0x66, 0x42, 0x00},
|
|
{0x00, 0x00, 0x4e, 0x5e, 0x70, 0x3e, 0x0e, 0x00},
|
|
{0x00, 0x00, 0x62, 0x72, 0x5a, 0x4e, 0x46, 0x00},
|
|
{0x00, 0x00, 0x18, 0x7e, 0xc3, 0x81, 0x42, 0x00},
|
|
{0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00},
|
|
{0x00, 0x00, 0x42, 0x81, 0xc3, 0x7e, 0x18, 0x00},
|
|
{0x00, 0x10, 0x18, 0x08, 0x18, 0x10, 0x18, 0x08},
|
|
{0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55},
|
|
{0x28, 0x7c, 0xfe, 0xaa, 0xaa, 0x8a, 0xc6, 0x44},
|
|
{0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55},
|
|
{0x00, 0x00, 0x00, 0x80, 0xe0, 0x60, 0x00, 0x00},
|
|
{0x00, 0x00, 0x48, 0x7c, 0x3e, 0x0a, 0x00, 0x00},
|
|
{0x00, 0x80, 0xe0, 0x60, 0x80, 0xe0, 0x60, 0x00},
|
|
{0x40, 0x40, 0x00, 0x40, 0x40, 0x00, 0x40, 0x40},
|
|
{0x00, 0x08, 0x04, 0x7e, 0x7e, 0x04, 0x08, 0x00},
|
|
{0x00, 0x24, 0x42, 0xff, 0xff, 0x42, 0x24, 0x00},
|
|
{0x00, 0x04, 0x06, 0x03, 0x03, 0x06, 0x04, 0x00},
|
|
{0xc0, 0x66, 0x1d, 0x66, 0xd8, 0x66, 0xd3, 0x60},
|
|
{0x00, 0x25, 0x6f, 0x4a, 0x4a, 0x7b, 0x31, 0x00},
|
|
{0x00, 0x00, 0x00, 0x18, 0x3c, 0x24, 0x00, 0x00},
|
|
{0x3e, 0x7f, 0x41, 0x61, 0x7f, 0x7f, 0x49, 0x49},
|
|
{0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55},
|
|
{0x00, 0x61, 0x73, 0x5a, 0x4e, 0x47, 0x43, 0x00},
|
|
{0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55},
|
|
{0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55},
|
|
{0x00, 0x00, 0x00, 0x06, 0x0e, 0x08, 0x00, 0x00},
|
|
{0x00, 0x00, 0x00, 0x02, 0x0e, 0x0c, 0x00, 0x00},
|
|
{0x00, 0x06, 0x0e, 0x08, 0x06, 0x0e, 0x08, 0x00},
|
|
{0x00, 0x02, 0x0e, 0x0c, 0x02, 0x0e, 0x0c, 0x00},
|
|
{0x00, 0x00, 0x18, 0x3c, 0x3c, 0x3c, 0x18, 0x00},
|
|
{0x00, 0x00, 0x04, 0x04, 0x04, 0x04, 0x00, 0x00},
|
|
{0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00},
|
|
{0x00, 0x04, 0x06, 0x02, 0x04, 0x06, 0x02, 0x00},
|
|
{0x01, 0x0f, 0x0f, 0x01, 0x0e, 0x02, 0x0f, 0x0f},
|
|
{0x00, 0x25, 0x6f, 0x4a, 0x4a, 0x7b, 0x31, 0x00},
|
|
{0x00, 0x00, 0x00, 0x24, 0x3c, 0x18, 0x00, 0x00},
|
|
{0x3c, 0x7e, 0x42, 0x62, 0x7e, 0x7e, 0x52, 0x52},
|
|
{0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55},
|
|
{0x00, 0x01, 0x63, 0x72, 0x5a, 0x4e, 0x47, 0x01},
|
|
{0x00, 0x05, 0x0d, 0x78, 0x78, 0x0d, 0x05, 0x00},
|
|
{0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55},
|
|
{0x00, 0x00, 0x00, 0x7d, 0x7d, 0x00, 0x00, 0x00},
|
|
{0x00, 0x38, 0x7c, 0x44, 0xfe, 0x44, 0x6c, 0x28},
|
|
{0x00, 0x90, 0xfc, 0xfe, 0x92, 0x92, 0xc6, 0x44},
|
|
{0x00, 0x42, 0x5a, 0x3c, 0x24, 0x3c, 0x5a, 0x42},
|
|
{0x00, 0x52, 0x56, 0xfc, 0xfc, 0x56, 0x52, 0x00},
|
|
{0x00, 0x00, 0x00, 0xf7, 0xf7, 0x00, 0x00, 0x00},
|
|
{0x00, 0x00, 0x1a, 0xbf, 0xa5, 0xfd, 0x58, 0x00},
|
|
{0x00, 0x00, 0x02, 0x02, 0x00, 0x02, 0x02, 0x00},
|
|
{0x3c, 0x7e, 0xdb, 0xa5, 0xa5, 0xd3, 0x7e, 0x3c},
|
|
{0x00, 0x10, 0x16, 0x13, 0x13, 0x16, 0x10, 0x00},
|
|
{0x00, 0x18, 0x3c, 0x24, 0x18, 0x3c, 0x24, 0x00},
|
|
{0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x38, 0x38},
|
|
{0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x00, 0x00},
|
|
{0x7e, 0xff, 0x81, 0xbd, 0x95, 0xa9, 0xff, 0x7e},
|
|
{0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01},
|
|
{0x00, 0x00, 0x0c, 0x1a, 0x1a, 0x0c, 0x00, 0x00},
|
|
{0x00, 0x48, 0x48, 0x7e, 0x7e, 0x48, 0x48, 0x00},
|
|
{0x00, 0x00, 0x19, 0x1d, 0x17, 0x12, 0x00, 0x00},
|
|
{0x00, 0x00, 0x11, 0x15, 0x1f, 0x0a, 0x00, 0x00},
|
|
{0x00, 0x00, 0x00, 0x02, 0x03, 0x01, 0x00, 0x00},
|
|
{0x00, 0xfe, 0xfe, 0x20, 0x30, 0x3e, 0x7e, 0x40},
|
|
{0x00, 0x06, 0x0f, 0xff, 0xff, 0x01, 0xff, 0x00},
|
|
{0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x00, 0x00},
|
|
{0x00, 0x00, 0x00, 0x40, 0xc0, 0x80, 0x00, 0x00},
|
|
{0x00, 0x00, 0x12, 0x1f, 0x1f, 0x10, 0x00, 0x00},
|
|
{0x00, 0x10, 0x17, 0x17, 0x15, 0x17, 0x17, 0x10},
|
|
{0x00, 0x24, 0x3c, 0x18, 0x24, 0x3c, 0x18, 0x00},
|
|
{0x09, 0xcf, 0x7f, 0x3c, 0x6e, 0x53, 0xf8, 0xf8},
|
|
{0x89, 0xcf, 0x6f, 0x38, 0xdc, 0xee, 0xbb, 0x90},
|
|
{0x91, 0xd5, 0x7f, 0x3a, 0x6c, 0x56, 0xfb, 0xf8},
|
|
{0x00, 0x60, 0xf0, 0x92, 0x9a, 0xc8, 0x40, 0x00},
|
|
{0x00, 0x01, 0x7b, 0x7e, 0x24, 0x24, 0x7c, 0x78},
|
|
{0x00, 0x78, 0x7c, 0x24, 0x24, 0x7e, 0x7b, 0x01},
|
|
{0x02, 0x7b, 0x7d, 0x25, 0x25, 0x7d, 0x7b, 0x02},
|
|
{0x02, 0x7b, 0x7d, 0x25, 0x27, 0x7e, 0x7b, 0x01},
|
|
{0x00, 0x79, 0x7d, 0x24, 0x24, 0x7d, 0x79, 0x00},
|
|
{0x00, 0x78, 0x7e, 0x25, 0x25, 0x7e, 0x78, 0x00},
|
|
{0x70, 0x7c, 0x0e, 0x0b, 0x7f, 0x7f, 0x49, 0x49},
|
|
{0x00, 0x3e, 0x7f, 0x41, 0x41, 0xe3, 0xa2, 0x00},
|
|
{0x00, 0x01, 0x7f, 0x7e, 0x54, 0x54, 0x54, 0x44},
|
|
{0x7c, 0x7c, 0x54, 0x54, 0x54, 0x46, 0x03, 0x01},
|
|
{0x02, 0x03, 0x7d, 0x7d, 0x55, 0x55, 0x03, 0x02},
|
|
{0x00, 0x7d, 0x7d, 0x54, 0x54, 0x55, 0x45, 0x00},
|
|
{0x00, 0x00, 0x41, 0x7b, 0x7a, 0x40, 0x00, 0x00},
|
|
{0x00, 0x00, 0x40, 0x7a, 0x7b, 0x41, 0x00, 0x00},
|
|
{0x00, 0x02, 0x43, 0x7d, 0x7d, 0x43, 0x02, 0x00},
|
|
{0x00, 0x01, 0x41, 0x7c, 0x7c, 0x41, 0x01, 0x00},
|
|
{0x00, 0x11, 0x7f, 0x7f, 0x51, 0x41, 0x7f, 0x3e},
|
|
{0x02, 0x03, 0x7d, 0x7d, 0x1b, 0x72, 0x7b, 0x01},
|
|
{0x00, 0x01, 0x3b, 0x7e, 0x44, 0x44, 0x7c, 0x38},
|
|
{0x00, 0x38, 0x7c, 0x44, 0x44, 0x7e, 0x3b, 0x01},
|
|
{0x02, 0x3b, 0x7d, 0x45, 0x45, 0x7d, 0x3b, 0x02},
|
|
{0x02, 0x3b, 0x7d, 0x45, 0x47, 0x7e, 0x3b, 0x01},
|
|
{0x00, 0x39, 0x7d, 0x44, 0x44, 0x7d, 0x39, 0x00},
|
|
{0x00, 0x22, 0x36, 0x1c, 0x1c, 0x36, 0x22, 0x00},
|
|
{0x00, 0x5e, 0x7f, 0x39, 0x5d, 0x46, 0x7f, 0x3d},
|
|
{0x00, 0x01, 0x3f, 0x7e, 0x40, 0x40, 0x7c, 0x3c},
|
|
{0x00, 0x3c, 0x7c, 0x40, 0x40, 0x7e, 0x3f, 0x01},
|
|
{0x02, 0x3b, 0x79, 0x41, 0x41, 0x79, 0x3b, 0x02},
|
|
{0x00, 0x3d, 0x7d, 0x40, 0x40, 0x7d, 0x3d, 0x00},
|
|
{0x00, 0x0e, 0x1e, 0x70, 0x72, 0x1b, 0x09, 0x00},
|
|
{0x00, 0x00, 0x7e, 0x7e, 0x24, 0x3c, 0x18, 0x00},
|
|
{0x00, 0xfe, 0xff, 0x49, 0x4f, 0x7e, 0x38, 0x00},
|
|
{0x00, 0x01, 0x7b, 0x7e, 0x24, 0x24, 0x7c, 0x78},
|
|
{0x00, 0x78, 0x7c, 0x24, 0x24, 0x7e, 0x7b, 0x01},
|
|
{0x02, 0x7b, 0x7d, 0x25, 0x25, 0x7d, 0x7b, 0x02},
|
|
{0x02, 0x7b, 0x7d, 0x25, 0x27, 0x7e, 0x7b, 0x01},
|
|
{0x00, 0x79, 0x7d, 0x24, 0x24, 0x7d, 0x79, 0x00},
|
|
{0x00, 0x78, 0x7e, 0x25, 0x25, 0x7e, 0x78, 0x00},
|
|
{0x60, 0x78, 0x1c, 0x16, 0x7e, 0x7e, 0x52, 0x52},
|
|
{0x00, 0x3c, 0x7e, 0x42, 0x42, 0xe6, 0xa4, 0x00},
|
|
{0x00, 0x01, 0x7f, 0x7e, 0x54, 0x54, 0x54, 0x44},
|
|
{0x7c, 0x7c, 0x54, 0x54, 0x54, 0x46, 0x03, 0x01},
|
|
{0x02, 0x03, 0x7d, 0x7d, 0x55, 0x55, 0x03, 0x02},
|
|
{0x00, 0x7d, 0x7d, 0x54, 0x54, 0x55, 0x45, 0x00},
|
|
{0x00, 0x00, 0x41, 0x7b, 0x7a, 0x40, 0x00, 0x00},
|
|
{0x00, 0x00, 0x40, 0x7a, 0x7b, 0x41, 0x00, 0x00},
|
|
{0x00, 0x02, 0x43, 0x7d, 0x7d, 0x43, 0x02, 0x00},
|
|
{0x00, 0x00, 0x41, 0x79, 0x79, 0x41, 0x00, 0x00},
|
|
{0x00, 0x38, 0x7c, 0x44, 0x44, 0x7f, 0x3f, 0x04},
|
|
{0x02, 0x03, 0x7d, 0x7d, 0x1b, 0x72, 0x7b, 0x01},
|
|
{0x00, 0x01, 0x3b, 0x7e, 0x44, 0x44, 0x7c, 0x38},
|
|
{0x00, 0x38, 0x7c, 0x44, 0x44, 0x7e, 0x3b, 0x01},
|
|
{0x02, 0x3b, 0x7d, 0x45, 0x45, 0x7d, 0x3b, 0x02},
|
|
{0x02, 0x3b, 0x7d, 0x45, 0x47, 0x7e, 0x3b, 0x01},
|
|
{0x00, 0x39, 0x7d, 0x44, 0x44, 0x7d, 0x39, 0x00},
|
|
{0x00, 0x08, 0x08, 0x2a, 0x2a, 0x08, 0x08, 0x00},
|
|
{0x00, 0x5c, 0x7e, 0x32, 0x5a, 0x4c, 0x7e, 0x3a},
|
|
{0x00, 0x01, 0x3f, 0x7e, 0x40, 0x40, 0x7c, 0x3c},
|
|
{0x00, 0x3c, 0x7c, 0x40, 0x40, 0x7e, 0x3f, 0x01},
|
|
{0x02, 0x3b, 0x79, 0x41, 0x41, 0x79, 0x3b, 0x02},
|
|
{0x00, 0x3d, 0x7d, 0x40, 0x40, 0x7d, 0x3d, 0x00},
|
|
{0x00, 0x08, 0x18, 0x72, 0x73, 0x19, 0x08, 0x00},
|
|
{0x00, 0x00, 0x7e, 0x7e, 0x24, 0x3c, 0x18, 0x00},
|
|
{0x00, 0x0d, 0x1d, 0x70, 0x70, 0x1d, 0x0d, 0x00},
|
|
};
|
|
|
|
uint8_t ssd1306_gfx_button[3][64] = {
|
|
{0x00, 0x00, 0x00, 0xe0, 0x30, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x30, 0xe0, 0x00, 0x00, 0x00},
|
|
{0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00},
|
|
{0x00, 0x00, 0x00, 0x07, 0x0c, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0c, 0x07, 0x00, 0x00, 0x00},
|
|
};
|
|
|
|
uint8_t ssd1306_gfx_button_sel[3][64] = {
|
|
{0x00, 0x00, 0x00, 0xe0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0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[8] = {0x3c, 0x42, 0x81, 0x9d, 0x91, 0x81, 0x42, 0x3c};
|
|
|
|
uint8_t ssd1306_gfx_menu_head[112] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
|
|
|
uint8_t ssd1306_gfx_sad[4][24] = {
|
|
{0x00, 0x00, 0x00, 0x80, 0xe0, 0x60, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x60, 0xe0, 0x80, 0x00, 0x00, 0x00},
|
|
{0xf8, 0xff, 0x0f, 0x01, 0x01, 0x00, 0x00, 0x7c, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x7c, 0x00, 0x00, 0x01, 0x01, 0x0f, 0xff, 0xf8},
|
|
{0x1f, 0xff, 0xf0, 0x80, 0x00, 0x40, 0x30, 0x38, 0x18, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x18, 0x38, 0x30, 0x40, 0x00, 0x80, 0xf0, 0xff, 0x1f},
|
|
{0x00, 0x00, 0x00, 0x01, 0x07, 0x06, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x06, 0x07, 0x01, 0x00, 0x00, 0x00},
|
|
};
|
|
|
|
uint8_t ssd1306_gfx_smile[4][24] = {
|
|
{0x00, 0x00, 0x00, 0x80, 0xe0, 0x60, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x60, 0xe0, 0x80, 0x00, 0x00, 0x00},
|
|
{0xf8, 0xff, 0x0f, 0x01, 0x01, 0x00, 0x00, 0xfc, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfc, 0x00, 0x00, 0x01, 0x01, 0x0f, 0xff, 0xf8},
|
|
{0x1f, 0xff, 0xf0, 0x80, 0x86, 0x06, 0x18, 0x38, 0x30, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0x30, 0x38, 0x18, 0x06, 0x86, 0x80, 0xf0, 0xff, 0x1f},
|
|
{0x00, 0x00, 0x00, 0x01, 0x07, 0x06, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x06, 0x07, 0x01, 0x00, 0x00, 0x00},
|
|
};
|
|
|
|
uint8_t ssd1306_gfx_question[4][24] = {
|
|
{0x00, 0x00, 0x00, 0x80, 0xe0, 0x60, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x60, 0xe0, 0x80, 0x00, 0x00, 0x00},
|
|
{0xf8, 0xff, 0x0f, 0x01, 0x01, 0x00, 0x00, 0xfc, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfc, 0x00, 0x00, 0x01, 0x01, 0x0f, 0xff, 0xf8},
|
|
{0x1f, 0xff, 0xf0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x04, 0x26, 0xb2, 0x92, 0x1e, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xf0, 0xff, 0x1f},
|
|
{0x00, 0x00, 0x00, 0x01, 0x07, 0x06, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x06, 0x07, 0x01, 0x00, 0x00, 0x00},
|
|
};
|
|
|
|
uint8_t ssd1306_gfx_wifi[8] = {0x00, 0x02, 0x0a, 0x2a, 0x2a, 0x0a, 0x02, 0x00};
|
|
|
|
uint8_t ssd1306_gfx_wifi_low[8] = {0x00, 0x00, 0x08, 0x28, 0x28, 0x08, 0x00, 0x00};
|
|
|
|
uint8_t ssd1306_gfx_wifi_lowest[8] = {0x00, 0x00, 0x00, 0x20, 0x20, 0x00, 0x00, 0x00};
|
|
|
|
uint8_t ssd1306_gfx_arrow_down[8] = {0x08, 0x18, 0x38, 0x78, 0x78, 0x38, 0x18, 0x08};
|
|
|
|
uint8_t ssd1306_gfx_arrow_left[8] = {0x00, 0x18, 0x3c, 0x7e, 0xff, 0x00, 0x00, 0x00};
|
|
|
|
uint8_t ssd1306_gfx_arrow_right[8] = {0x00, 0x00, 0x00, 0xff, 0x7e, 0x3c, 0x18, 0x00};
|
|
|
|
uint8_t ssd1306_gfx_arrow_up[8] = {0x10, 0x18, 0x1c, 0x1e, 0x1e, 0x1c, 0x18, 0x10};
|
|
|
|
uint8_t ssd1306_gfx_cross[8] = {0x00, 0x42, 0x24, 0x18, 0x18, 0x24, 0x42, 0x00};
|
|
|
|
uint8_t ssd1306_gfx_logo[8][64] = {
|
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,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