Skip to Content
Lumensalis CircuitPython framework coming soon 🎉

Panel

Panels provide a way for you to define “remote control” interfaces for your project. You define what you want to be able to control, and the LCPF takes care of how to make that happen.

A panel is a collection of Panel Controls, Panel Monitors, and Panel Triggers.

The MainManager provides a main.panel you can use which will be enough for most projects, but you can create additional panels if you wish.

Example

from LumensalisCP.Simple import * # http://lumensalis.com/ql/h2Start ############################################################################# main = ProjectManager("PanelsDemo") scene1 = main.addScene() scene2 = main.addScene() demoPanel = main.panel distance = demoPanel.addMillimeters(100.0, min=10.0, max=1000.0) onOff = demoPanel.addSwitch() result = demoPanel.addFloatOutput() demoPanel.monitor( result ) # result is based on scene scene1.addRule( result, distance ) scene2.addRule( result, distance / 2 ) main.launchProject(globals())

will give your project a WebUI which looks something like Panel.

See the Panel Example for a complete example of how to use panels in your project

Last updated on