from agnostic import report_collect, report_import report_import("faces.font_5x7") from faces.font_5x7 import font report_import("st7920") from st7920 import Screen report_import("machine") from machine import Pin screen = Screen(slaveSelectPin=Pin(15)) def plotter(x, y): screen.plot(x, y) screen.clear() font.draw_line("Hello World", plotter) screen.redraw() report_collect() report_import("milecastles") report_import("boilerplate") report_import("engines") report_import("engines.console") report_import("stories.senhouse") from stories.senhouse import story from regimes.console import ConsoleSiteEmulator
from agnostic import collect, report_collect, report_import report_import("faces.font_5x7") from faces.font_5x7 import font report_import("vault") report_import("st7920") from st7920 import Screen report_import("machine") from machine import Pin, SPI report_import("mfrc522") from mfrc522 import MFRC522 spi = SPI(1, baudrate=1800000, polarity=0, phase=0) spi.init() collect() rdr = MFRC522(spi=spi, gpioRst=0, gpioCs=2) collect() screen = Screen(spi=spi, slaveSelectPin=Pin(15)) collect() def plotter(x, y): screen.plot(x, y) def show(msg):
def loadStory(name): report_collect() imp = report_import("stories." + name) mod = getattr(imp, name) return getattr(mod, 'story')
def loadDisplay(): report_collect() report_import("machine") report_import("st7920") report_import("faces.font_5x7")
def loadOther(): report_collect() #report_import("faces.font_timB14") report_import("mfrc522") report_import("milecastles") report_import("boilerplate") report_import("engines") report_import("host") report_import("vault")