v.0.2.1 is_letter_assigned_right

This commit is contained in:
tiijay
2025-10-22 14:47:10 +02:00
parent ad0bf2eed1
commit b588339fb4
4 changed files with 61 additions and 7 deletions

View File

@@ -61,8 +61,9 @@ font_5x7 = {
'z': [0x00, 0x00, 0x1F, 0x02, 0x04, 0x08, 0x1F], # Width: 5
# Numbers (0-9) - Optimized for consistent width
'0': [0x0E, 0x11, 0x13, 0x15, 0x19, 0x11, 0x0E], # Width: 5
# '1': [0x04, 0x0C, 0x04, 0x04, 0x04, 0x04, 0x0E], # Width: 3
'1': [0x02, 0x06, 0x02, 0x02, 0x02, 0x02, 0x07], # Width: 3
# '1': [0x04, 0x0C, 0x04, 0x04, 0x04, 0x04, 0x0E], # Width: 3
# '1': [0x08, 0x18, 0x08, 0x08, 0x08, 0x08, 0x1C], # Width: 3
'2': [0x0E, 0x11, 0x01, 0x02, 0x04, 0x08, 0x1F], # Width: 5
'3': [0x1F, 0x02, 0x04, 0x02, 0x01, 0x11, 0x0E], # Width: 5
'4': [0x02, 0x06, 0x0A, 0x12, 0x1F, 0x02, 0x02], # Width: 5

View File

@@ -139,7 +139,7 @@ class NeoPixel_64x64(NeoPixel):
print(letter)
for row in range(self.font_height):
row_data = char_data[row]
print(number_to_bitarray_msb(row_data))
for col in range(char_width):
# Check if pixel should be lit (MSB first)
# Only check bits within the actual character width