Files
lilygo-t5-template/Makefile
Кобелев Андрей Андреевич a111352dc5 Прошло 2 года.
2026-03-10 22:54:23 +03:00

23 lines
1.2 KiB
Makefile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
PYTHON ?= python3.11
EPDIY_SCRIPTS := lib/epdiy/scripts
MARTIAN_FONT := static/MartianMono-VariableFont_wdth,wght.ttf
MARTIAN_CHARS := 0123456789:;.,-+/!@\#^&*%°CABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя
image:
$(PYTHON) $(EPDIY_SCRIPTS)/imgconvert.py -i static/sun.jpg -n sun -o include/sun.h
$(PYTHON) $(EPDIY_SCRIPTS)/imgconvert.py -i static/moon.jpg -n moon -o include/moon.h
font_12:
$(PYTHON) $(EPDIY_SCRIPTS)/fontconvert.py --compress MartianMono12 12 $(MARTIAN_FONT) --string '$(MARTIAN_CHARS)' > lib/MartianMono/MartianMono12.h
font_30:
$(PYTHON) $(EPDIY_SCRIPTS)/fontconvert.py --compress MartianMono30 30 $(MARTIAN_FONT) --string '$(MARTIAN_CHARS)' > lib/MartianMono/MartianMono30.h
font_120:
$(PYTHON) $(EPDIY_SCRIPTS)/fontconvert.py --compress MartianMono120 120 $(MARTIAN_FONT) --string '0123456789' > lib/MartianMono/MartianMono120.h
font_200:
$(PYTHON) $(EPDIY_SCRIPTS)/fontconvert.py --compress MartianMono200 200 $(MARTIAN_FONT) --string '0123456789' > lib/MartianMono/MartianMono200.h
font_all: font_12 font_30 font_120 font_200