Esempio n. 1
0
    def __init__(self, led_strip):
        #jobs is an instance of BuildJobs
        jobs = BuildJobs.from_dictionaries(Config.platform, Config.job_defaults, Config.jobs)

        sounds_controller = SoundsController(jobs.names)
        lights_controller = LightsController(led_strip, jobs)
        lights_controller.off()

        controllers = list( (lights_controller, sounds_controller) )
        jobs.start_polling(controllers)
Esempio n. 2
0
 def __init__(self):
   self.build_jobs = BuildJobs.from_dictionaries(Config.platform, Config.job_defaults, Config.jobs)
   self.printGlobal()
   self.printJobs()
   self.printLedLayout()
   self.printTestResponse()