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).
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).