kopia lustrzana https://github.com/peterhinch/micropython-font-to-py
writer.py: fix issue with rp2 fast mode.
rodzic
b338e73154
commit
0803aeab57
|
@ -23,10 +23,12 @@
|
||||||
|
|
||||||
import framebuf
|
import framebuf
|
||||||
from uctypes import bytearray_at, addressof
|
from uctypes import bytearray_at, addressof
|
||||||
|
from sys import platform
|
||||||
|
|
||||||
__version__ = (0, 4, 0)
|
__version__ = (0, 4, 1)
|
||||||
|
|
||||||
fast_mode = True
|
fast_mode = platform != 'rp2' # framebuf_utils crashes RP2
|
||||||
|
if fast_mode:
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
from framebuf_utils import render
|
from framebuf_utils import render
|
||||||
|
@ -37,6 +39,7 @@ try:
|
||||||
fast_mode = False
|
fast_mode = False
|
||||||
except ValueError:
|
except ValueError:
|
||||||
fast_mode = False
|
fast_mode = False
|
||||||
|
if not fast_mode:
|
||||||
print('Ignoring framebuf_utils.mpy: compiled for incorrect architecture.')
|
print('Ignoring framebuf_utils.mpy: compiled for incorrect architecture.')
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue