v.0.5.3 emoji_checker
This commit is contained in:
5
app/display/emoji/__init__.py
Normal file
5
app/display/emoji/__init__.py
Normal 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"]
|
||||
@@ -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']
|
||||
|
||||
19
app/tryout/emoji_checker.py
Normal file
19
app/tryout/emoji_checker.py
Normal 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)
|
||||
@@ -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)
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user