I’m in the process of learning the Littlefoot language, and I’ve noticed from some of the factory Blocks Littlefoot apps that you are able to set up global variables that can be given automatic getter and setter functions as well attributes such as min and max values.
Is there any documentation on this part of the Littlefoot language?
Do you mean config items? There are some comments above the config methods here and the enum containing the available configs is here, but the best way to learn is probably to just look at how they are used in the factory programs.
Ah I see what you mean now. The metadata section of the script has a variables section for declaring variables that can be displayed in BLOCKS Dashboard - you give it a name, a type, and some attributes such as min/max and initial value and it will be displayed as an editable parameter in Dashboard as well as being globally available in your script.
Yeah that’s correct. There isn’t any formal documentation on this, but this is the list of available attributes (as of the latest BLOCKS Dashboard version) :
name
displayName
configID
groupID
visible
enabled
type
displayMode
min
max
value