Commit a74d662e authored by russhughes's avatar russhughes

jog_decode and write with background example

parent 3e3c1a12
Copyright 2018 The Pacifico Project Authors (https://github.com/googlefonts/Pacifico)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
"""
clock.py
Displays a clock with background image on a LILYGO® TTGO T-Display.
The buttons on the module can be used to set the time.
Background images courtesy of the NASA image and video gallery available at
https://images.nasa.gov/
The Font is Copyright 2018 The Pacifico Project Authors (https://github.com/googlefonts/Pacifico)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
"""
import gc
import utime
from machine import Pin, SPI, RTC
import st7789
import pacifico60 as font
rtc = RTC()
background_lock = 0 # prevents background change while > 0
class Button:
"""
Debounced pin handler
Modifed from https://gist.github.com/jedie/8564e62b0b8349ff9051d7c5a1312ed7
"""
def __init__(self, pin, callback, trigger=Pin.IRQ_FALLING, debounce=350):
self.callback = callback
self.debounce = debounce
self._next_call = utime.ticks_ms() + self.debounce
pin.irq(trigger=trigger, handler=self.debounce_handler)
def call_callback(self, pin):
self.callback(pin)
def debounce_handler(self, pin):
if utime.ticks_ms() > self._next_call:
self._next_call = utime.ticks_ms() + self.debounce
self.call_callback(pin)
def hour_pressed(pin):
global background_lock, rtc
tm = rtc.datetime()
rtc.init((tm[0], tm[1], tm[2], tm[3], tm[4], tm[5]+1, tm[6], tm[7]))
background_lock = 10
def minute_pressed(pin):
global background_lock, rtc
tm = rtc.datetime()
rtc.init((tm[0], tm[1], tm[2], tm[3], tm[4]+1, tm[5], tm[6], tm[7]))
background_lock = 10
def main():
"""
Initialize the display and show the time
"""
global background_lock
tft = st7789.ST7789(
SPI(1, baudrate=30000000, sck=Pin(18), mosi=Pin(19)),
135,
240,
reset=Pin(23, Pin.OUT),
cs=Pin(5, Pin.OUT),
dc=Pin(16, Pin.OUT),
backlight=Pin(4, Pin.OUT),
rotation=3)
tft.init()
# image, Time Column, Time Row, Time Color
backgrounds = [
('1.jpg', 30, 50, st7789.WHITE),
('2.jpg', 30, 50, st7789.WHITE),
('3.jpg', 30, 50, st7789.WHITE),
('4.jpg', 30, 50, st7789.WHITE),
('5.jpg', 30, 50, st7789.WHITE),
('6.jpg', 30, 50, st7789.WHITE),
('7.jpg', 30, 50, st7789.WHITE),
('8.jpg', 30, 50, st7789.WHITE)]
digit_columns = []
background_change = True
background_counter = 0
time_col = 0
time_row = 0
time_color = 0
last_time = "-----"
Button(pin=Pin(35, mode=Pin.IN, pull=Pin.PULL_UP), callback=hour_pressed)
Button(pin=Pin(0, mode=Pin.IN, pull=Pin.PULL_UP), callback=minute_pressed)
while True:
# create new digit_backgrounds and change the background image
if background_change:
image, time_col, time_row, time_color = backgrounds[background_counter]
background_counter += 1
background_counter %= len(backgrounds)
background_change = False
# clear the old backgrounds and gc
digit_background = []
gc.collect()
# draw the new background
tft.jpg(image, 0, 0, st7789.SLOW)
# calculate the starting column for each time digit
digit_columns = [time_col + digit *
font.MAX_WIDTH for digit in range(5)]
# nudge the ':' to the right since it is narrower then the digits
digit_columns[2] += font.MAX_WIDTH // 4
# get the background bitmap behind each clock digit from the jpg file and store it
# in a list so it can be used to write each digit simulating transparency.
digit_background = [
tft.jpg_decode(
image, # jpg file name
digit_columns[digit], # column to start bitmap at
time_row, # row to start bitmap at
font.MAX_WIDTH, # width of bitmap to save
font.HEIGHT) # height of bitmap to save
for digit in range(5)
]
# cause all digits to be updated
last_time = "-----"
# get the current hour and minute
_, _, _, hour, minute, second, _, _ = utime.localtime()
# 12 hour time
if hour == 0:
hour = 12
if hour > 12:
hour -= 12
# format time string as "HH:MM"
time_fmt = "{:02d}:{:02d}" if second % 2 == 0 else "{:02d} {:02d}"
time = time_fmt.format(hour, minute)
# loop through the time string
for digit in range(5):
# Check if this digit has changed
if time[digit] != last_time[digit]:
# digit 1 is the hour, change the background every hour
# digit 3 is the tens of the minute, change the background every 10 minutes
# digit 4 is the ones of the minute, change the background every minute
if digit == 1 and last_time[digit] != '-' and background_lock == 0:
background_change = True
# draw the changed digit, don't fill to the right
# of the ':' because it is always the same width
tft.write(
font, # the font to write to the display
time[digit], # time string digit to write
digit_columns[digit], # write to the correct column
time_row, # write on row
time_color, # color of time text
st7789.BLACK, # transparent background color
digit_background[digit], # use the background bitmap
digit != 2) # don't fill to the right of the ':'
# save the current time
last_time = time
if background_lock:
background_lock -= 1
utime.sleep(0.5)
gc.collect()
main()
# -*- coding: utf-8 -*-
# Converted from Pacifico-Regular.ttf using:
# ../../../utils/font2bitmap.py -s '0123456789:. ' Pacifico-Regular.ttf 60
MAP = (
'57:62 19.8034'
)
BPP = 1
HEIGHT = 37
MAX_WIDTH = 35
_WIDTHS = \
b'\x1f\x1f\x0f\x20\x22\x10\x17\x20\x0f\x1f\x21\x1f\x23'
OFFSET_WIDTH = 2
_OFFSETS = \
b'\x00\x00\x04\x7b\x08\xf6\x0b\x21\x0f\xc1\x14\xab\x16\xfb\x1a\x4e'\
b'\x1e\xee\x21\x19\x25\x94\x2a\x59\x2e\xd4'
_BITMAPS =\
b'\x00\x00\x00\x00\x00\xff\xff\xe0\x0f\xff\xff\xf0\x3f\xff\xff\xe0'\
b'\xff\xff\xff\xc1\xff\xff\xff\x81\xff\xff\xfe\x00\xff\x80\x00\x01'\
b'\xfc\x00\x00\x03\xf8\x00\x00\x0f\xf0\x00\x00\x1f\xc0\x00\x00\x3f'\
b'\x80\x00\x00\x7f\x00\x00\x00\xff\xf8\x00\x03\xff\xfe\x00\x07\xff'\
b'\xff\x00\x0f\xff\xff\x00\x1f\xff\xff\x00\x0f\xff\xff\x00\x00\x1f'\
b'\xff\x00\x00\x07\xfe\x00\x00\x07\xfc\x00\x00\x07\xf8\x0f\x00\x07'\
b'\xf8\x3f\x00\x0f\xf0\x7e\x00\x1f\xc0\xfe\x00\x3f\x81\xfc\x00\xff'\
b'\x03\xfc\x03\xfc\x07\xfe\x0f\xf8\x07\xff\xff\xe0\x0f\xff\xff\x80'\
b'\x07\xff\xfe\x00\x07\xff\xf0\x00\x01\xff\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x03\xff\x80\x3f\x0f\xff\xff\xff\x1f\xff\xff\xfe\x3f'\
b'\xff\xff\xfc\x7f\xff\xff\xf8\xff\xff\xff\xf0\xff\xff\xff\xc0\x00'\
b'\x03\xfe\x00\x00\x0f\xf8\x00\x00\x3f\xe0\x00\x00\xff\x00\x00\x03'\
b'\xfc\x00\x00\x0f\xf0\x00\x00\x3f\xc0\x00\x00\x7f\x80\x00\x01\xfe'\
b'\x00\x00\x07\xf8\x00\x00\x0f\xf0\x00\x00\x3f\xc0\x00\x00\x7f\x80'\
b'\x00\x01\xff\x00\x00\x03\xfc\x00\x00\x07\xf8\x00\x00\x1f\xf0\x00'\
b'\x00\x3f\xc0\x00\x00\x7f\x80\x00\x00\xff\x00\x00\x03\xfe\x00\x00'\
b'\x07\xfc\x00\x00\x0f\xf8\x00\x00\x1f\xe0\x00\x00\x3f\xc0\x00\x00'\
b'\x3f\x80\x00\x00\x7e\x00\x00\x00\x78\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07\xc0'\
b'\x3f\xe0\x7f\xc1\xff\xc3\xff\x87\xff\x0f\xfe\x1f\xfc\x3f\xf0\x3f'\
b'\xc0\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3e\x01'\
b'\xff\x07\xfe\x0f\xfe\x1f\xfc\x3f\xf8\x7f\xf0\xff\xc1\xff\x81\xfe'\
b'\x01\xf8\x00\x00\x00\x00\x00\x00\x00\x01\xff\xc0\x00\x07\xff\xf0'\
b'\x00\x1f\xff\xf8\x00\x3f\xff\xfc\x00\x7f\xff\xfe\x00\xff\xff\xfe'\
b'\x00\xff\x81\xff\x01\xff\x00\xff\x01\xfe\x00\x7f\x03\xfc\x00\x7f'\
b'\x03\xf8\x00\x3e\x07\xf8\x00\x00\x07\xf8\x00\x00\x07\xf0\xfe\x00'\
b'\x07\xf3\xff\x80\x0f\xf7\xff\xe0\x0f\xff\xff\xf0\x0f\xff\xff\xf8'\
b'\x0f\xff\xff\xf8\x0f\xff\xff\xfc\x0f\xfc\x07\xfc\x0f\xf8\x03\xfc'\
b'\x0f\xf8\x03\xfc\x0f\xf8\x03\xfc\x0f\xf0\x03\xfc\x07\xf8\x03\xfc'\
b'\x07\xf8\x03\xfc\x07\xf8\x07\xf8\x03\xfe\x1f\xf8\x03\xff\xff\xf0'\
b'\x01\xff\xff\xe0\x00\xff\xff\xe0\x00\x7f\xff\x80\x00\x3f\xff\x00'\
b'\x00\x07\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7f\xc0'\
b'\x00\x00\xff\xfe\x00\x00\x7f\xff\xc0\x00\x7f\xff\xf8\x00\x3f\xff'\
b'\xff\x00\x0f\xff\xff\xc0\x07\xfc\x1f\xf8\x01\xfe\x03\xfe\x00\xff'\
b'\x00\x7f\x80\x3f\x80\x1f\xe0\x0f\xe0\x07\xf8\x03\xf8\x01\xfe\x00'\
b'\xfe\x00\x7f\x80\x3f\x80\x1f\xe0\x03\x80\x0f\xf0\x00\x00\x03\xfc'\
b'\x00\x00\x01\xfe\x00\x00\x00\xff\x80\x00\x00\x7f\xc0\x00\x00\x3f'\
b'\xe0\x00\x00\x1f\xf8\x00\x00\x0f\xfc\x00\x00\x07\xfe\x00\x00\x03'\
b'\xff\x00\x00\x03\xff\x00\x00\x03\xff\x80\x00\x03\xff\x80\x00\x03'\
b'\xff\xc0\x00\x01\xff\xc0\x00\x00\xff\xff\xff\xf0\x3f\xff\xff\xfc'\
b'\x0f\xff\xff\xff\x03\xff\xff\xff\xc0\xff\xff\xff\xe0\x1f\x00\x1f'\
b'\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x10\x00\x07\xf8\x00\x7f\xf8\x07\xff\xf0\x1f\xff\xe0\x3f\xff'\
b'\xc0\xff\xff\x01\xff\xfe\x01\xff\xfc\x03\xc7\xf8\x00\x0f\xf0\x00'\
b'\x1f\xe0\x00\x3f\xc0\x00\xff\x00\x01\xfe\x00\x03\xfc\x00\x07\xf8'\
b'\x00\x0f\xf0\x00\x1f\xe0\x00\x3f\xc0\x00\xff\x00\x01\xfe\x00\x03'\
b'\xfc\x00\x07\xf8\x00\x0f\xf0\x00\x1f\xe0\x00\x3f\xc0\x00\xff\x80'\
b'\x01\xfe\x00\x03\xfc\x00\x07\xf8\x00\x0f\xf0\x00\x1f\xe0\x00\x3f'\
b'\xc0\x00\x3f\x00\x00\x3c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f'\
b'\xf8\x00\x00\xff\xfe\x00\x03\xff\xff\x00\x07\xff\xff\x80\x0f\xff'\
b'\xff\xc0\x0f\xff\xff\xc0\x1f\xf8\x3f\xe0\x1f\xe0\x1f\xe0\x1f\xe0'\
b'\x1f\xf0\x3f\xc0\x0f\xf0\x3f\xc0\x0f\xf0\x3f\xc0\x0f\xf0\x3f\xc0'\
b'\x1f\xf0\x3f\xc0\x1f\xf0\x3f\xe0\x3f\xf0\x1f\xff\xff\xf0\x1f\xff'\
b'\xff\xf0\x0f\xff\xff\xf0\x0f\xff\xff\xf0\x07\xff\xff\xf0\x01\xff'\
b'\xcf\xf0\x00\x7f\x0f\xe0\x00\x00\x0f\xe0\x00\x00\x1f\xe0\x7e\x00'\
b'\x1f\xc0\x7e\x00\x3f\xc0\xff\x00\x7f\x80\xff\x80\xff\x80\x7f\xff'\
b'\xff\x00\x7f\xff\xfe\x00\x3f\xff\xfe\x00\x3f\xff\xf8\x00\x1f\xff'\
b'\xf0\x00\x07\xff\xc0\x00\x01\xfe\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3e\x01\xff'\
b'\x07\xfe\x0f\xfe\x1f\xfc\x3f\xf8\x7f\xf0\xff\xc1\xff\x81\xfe\x01'\
b'\xf8\x00\x00\x00\x00\x00\x00\x00\x07\xfc\x00\x00\x7f\xff\x00\x03'\
b'\xff\xff\x80\x0f\xff\xff\x80\x3f\xff\xff\x00\x7f\xff\xff\x01\xff'\
b'\x83\xfe\x03\xfc\x01\xfc\x07\xf0\x03\xf8\x0f\xe0\x07\xf0\x1f\xc0'\
b'\x0f\xe0\x3f\x80\x3f\xc0\x7f\x80\xff\x00\xff\x83\xfc\x00\xff\xdf'\
b'\xf0\x01\xff\xff\xc0\x01\xff\xff\x00\x00\xff\xfc\x00\x03\xff\xfe'\
b'\x00\x1f\xff\xfe\x00\x7f\xdf\xfe\x01\xfe\x0f\xfe\x07\xf8\x07\xfc'\
b'\x0f\xe0\x07\xf8\x1f\xc0\x07\xf8\x7f\x80\x0f\xf0\xff\x00\x1f\xc1'\
b'\xfe\x00\x7f\x81\xff\x01\xff\x03\xff\xff\xfc\x07\xff\xff\xf8\x07'\
b'\xff\xff\xe0\x07\xff\xff\x00\x03\xff\xfc\x00\x00\xff\x80\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x1f\xe0\x00\x00\x3f\xfc\x00\x00'\
b'\x7f\xff\x80\x00\x7f\xff\xe0\x00\x7f\xff\xf8\x00\x7f\xff\xfc\x00'\
b'\x3f\xf7\xff\x00\x3f\xc0\xff\x80\x3f\xc0\x3f\xe0\x1f\xe0\x0f\xf0'\
b'\x0f\xe0\x07\xf8\x0f\xf0\x01\xfc\x07\xf0\x00\xfe\x03\xf8\x00\x7f'\
b'\x01\xfc\x00\x3f\x81\xfe\x00\x1f\xc0\xff\x00\x0f\xe0\x7f\x80\x07'\
b'\xf0\x3f\xc0\x03\xf8\x1f\xe0\x01\xfc\x0f\xf0\x01\xfe\x07\xf8\x00'\
b'\xff\x03\xfc\x00\x7f\x01\xfe\x00\x3f\x80\xff\x00\x3f\xc0\x3f\x80'\
b'\x1f\xc0\x1f\xe0\x1f\xe0\x0f\xf8\x1f\xe0\x03\xff\xff\xf0\x01\xff'\
b'\xff\xf0\x00\x7f\xff\xf0\x00\x1f\xff\xf0\x00\x07\xff\xf0\x00\x01'\
b'\xff\xf0\x00\x00\x3f\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x07\xfc\x00\x00\x7f\xff\x00\x03\xff\xff\x00\x1f\xff\xff\x00\x7f'\
b'\xff\xff\x00\xff\xff\xff\x03\xfe\x07\xfe\x07\xf8\x07\xfc\x0f\xe0'\
b'\x07\xf8\x1f\xc0\x0f\xf0\x3f\x00\x1f\xe0\x7e\x00\x7f\xc0\x30\x00'\
b'\xff\x00\x00\x03\xfc\x00\x00\x1f\xf8\x00\x03\xff\xc0\x00\x0f\xff'\
b'\x00\x00\x3f\xf8\x00\x00\x7f\xfc\x00\x00\xff\xfe\x00\x00\xff\xfe'\
b'\x00\x00\x0f\xfc\x00\x00\x07\xfc\x0f\x00\x07\xf8\x3f\x00\x0f\xf0'\
b'\x7e\x00\x1f\xf0\xfe\x00\x3f\xc1\xfc\x00\xff\x83\xfe\x03\xff\x07'\
b'\xff\xff\xfc\x07\xff\xff\xf8\x07\xff\xff\xe0\x07\xff\xff\x80\x07'\
b'\xff\xfc\x00\x01\xff\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x07\xc0\x00\x00\x01\xfc\x00\x00\x00\x7f\x80\x00\x00\x1f\xf0\x00'\
b'\x00\x03\xfc\x00\x00\x00\xff\x80\x00\x00\x1f\xe0\x00\x00\x07\xf8'\
b'\x0f\x80\x00\xff\x03\xf8\x00\x3f\xc0\x7f\x00\x07\xf8\x1f\xe0\x01'\
b'\xfe\x03\xfc\x00\x3f\xc0\x7f\x00\x0f\xf0\x0f\xe0\x01\xfe\x03\xfc'\
b'\x00\x7f\x80\x7f\x80\x0f\xf0\x0f\xf0\x01\xfe\x01\xfc\x00\x7f\x80'\
b'\x3f\x80\x0f\xf0\x0f\xf0\x01\xfc\x01\xfe\x00\x7f\x80\x3f\xc0\x0f'\
b'\xff\xff\xff\xc1\xff\xff\xff\xf8\x3f\xff\xff\xff\x07\xff\xff\xff'\
b'\xe0\x7f\xff\xff\xfc\x07\xff\xff\xfe\x00\x00\x03\xfc\x00\x00\x00'\
b'\x7f\x80\x00\x00\x0f\xf0\x00\x00\x01\xfe\x00\x00\x00\x3f\xc0\x00'\
b'\x00\x07\xf0\x00\x00\x00\x7e\x00\x00\x00\x0f\x80\x00'
WIDTHS = memoryview(_WIDTHS)
OFFSETS = memoryview(_OFFSETS)
BITMAPS = memoryview(_BITMAPS)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment