v.0.5.3 emoji_checker

This commit is contained in:
tiijay
2025-11-12 12:35:26 +01:00
parent 9d51f0827d
commit 2737b043c1
6 changed files with 33 additions and 23 deletions

View File

@@ -0,0 +1,5 @@
from .emoji_5x7 import emoji_5x7
from .emoji_8x8 import emoji_8x8
from .emoji_16x16 import emoji_16x16
__all__=["emoji_5x7","emoji_8x8","emoji_16x16"]

View File

@@ -1,5 +1,4 @@
from .emojis import emojis_check
from .font_checker import Font_Checker
from .weather_checker import Weather_Checker
__all__ = ['emojis_check', 'Font_Checker', 'Weather_Checker']
from .emoji_checker import Emoji_Checker
__all__ = [ 'Font_Checker', 'Weather_Checker', 'Emoji_Checker']

View File

@@ -0,0 +1,19 @@
from app.display.neopixel_64x64 import NeoPixel_64x64
from app.display.emoji import emoji_8x8, emoji_16x16
import app.utils.colors as colors
class Emoji_Checker():
def __init__(self, display: NeoPixel_64x64):
self.display = display
def check(self):
self.display.clear()
# try emoji
self.display.set_font(emoji_8x8)
self.display.write_text('😀😂✅😎💙', 0, 0, color=colors.GREEN)
# try emoji
self.display.set_font(emoji_16x16)
self.display.write_text('🌙💙🔑', 0, 10, color=colors.ORANGE)

View File

@@ -1,16 +0,0 @@
import app.utils.colors as colors
from app.display.emoji.emoji_8x8 import emoji_8x8
from app.display.emoji.emoji_16x16 import emoji_16x16
def emojis_check(display):
display.clear()
# try emoji
display.set_font(emoji_8x8)
display.write_text('😀😂✅😎💙', 0, 0, color=colors.GREEN)
# try emoji
display.set_font(emoji_16x16)
display.write_text('🌙💙🔑', 0, 10, color=colors.ORANGE)

View File

@@ -8,6 +8,7 @@ class Weather_Checker():
def __init__(self, display: NeoPixel_64x64):
self.display = display
self.display.set_font( font=fonts.font_5x7)
def setup_wlan(self):
self.wlan = Wlan('WOKWI-Guest', '12345678')

10
main.py
View File

@@ -1,6 +1,6 @@
from app.display.neopixel_64x64 import NeoPixel_64x64
import app.tryout as tryout
from app.tryout import Font_Checker, Weather_Checker
from app.tryout import Font_Checker, Weather_Checker, Emoji_Checker
from app.utils import show_system_load
# Programm Startpunkt
if __name__ == '__main__':
@@ -10,9 +10,11 @@ if __name__ == '__main__':
# font_checker.fonts_check(pretty=False)
# tryout.emojis_check(display)
emoji_checker : Emoji_Checker = Emoji_Checker(display)
emoji_checker.check()
# tryout.weather_check(display, test_mode=False)
weather_checker: Weather_Checker = Weather_Checker( display)
weather_checker.check(test_mode=False)
# utils.show_system_load()
show_system_load()