Skip to content

Commit

Permalink
Removed emulator references. Should really add support for that at so…
Browse files Browse the repository at this point in the history
…me point
  • Loading branch information
CalamityJames committed Jul 21, 2023
1 parent d969cbc commit e743979
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from luma.oled.device import ssd1322
from luma.core.virtual import viewport, snapshot
from luma.core.sprite_system import framerate_regulator
# from luma.emulator.device import pygame

import socket, re, uuid

Expand Down Expand Up @@ -486,10 +485,9 @@ def getVersionNumber():
if config['headless']:
print('Headless mode, running main loop without serial comms')
serial = noop()
device = pygame(256, 64)
else:
serial = spi(port=0)
device = ssd1322(serial, mode="1", rotate=config['screenRotation'])
device = ssd1322(serial, mode="1", rotate=config['screenRotation'])

if config['dualScreen']:
serial1 = spi(port=1, gpio_DC=5, gpio_RST=6)
Expand Down

0 comments on commit e743979

Please sign in to comment.