geekscape / aiko_engine_mp

microPython event based engine supporting network messages (MQTT), times and various hardware drivers
Other
22 stars 24 forks source link

OLED Enabled and similar should be application instantiable #6

Open ajfisher opened 6 years ago

ajfisher commented 6 years ago

At the moment to enable certain behaviour such as an OLED, you need to initialise it in main.py to make it available on and then bring it into your application code to use it.

Suggest moving the creation and initialisation step to the application level instead where it can then have more control. This will also allow for a generic interface such as nodebots to be able to create objects on the fly and not have to pre-determine what types of modules you want to use up front and then flash the firmware for it (for what amounts only to a config change).