Skip to Content
Lumensalis CircuitPython framework coming soon 🎉

MainManager

The MainManager provides the foundation for building and operating projects in the LCPF. It is the primary noun for the LCPF, and provides access to defining just about everything else in your project.

The MainManager in an LCPF Project Definition is typically named main, but you can use whatever name you like. However, main is used by convention in many examples and documentation. Specifically, whenever you see a bit of “code” in the documentation that doesn’t itself define main, it is safe to assume that main always implies the MainManager created by an ealier call to ProjectManager.

You “create” a MainManager in your project with the ProjectManager verb. It is customarily named “main” and usually defined as follows:

from LumensalisCP.Simple import * # http://lumensalis.com/ql/h2Start main = ProjectManager("myProjectName") # ... the rest of your project definition goes here