Dynamic Light documentation
Introductions
The Dynamic Light is a very simple peripheral that programmatically changes its own light level, it's a great starting point for learning the peripheral system!
Its also noteworthy that it doesn't change luminosity instantly, instead warming or cooling to the desired light level over time (a rate of 1 light lever per tick)
The Dynamic Light is categorized as "neetcomputers:dynamic_light" in the IO APILookup table
| setLuminance(luminance) | Sets the target light level of the lamp |
| turnOn() | Sets the target light level to it max setting |
| turnOff() | Sets the target light level to zero |
Functions in detail
setLuminance(luminance)
Sets the target light level of the lamp with an input range of 0-15
Parameters: Luminance[Integer] Returns: NoneturnOn()
Sets the target light level to 15 (the maximum)
Parameters: None Returns: NoneturnOff()
Sets the target light level to zero
Parameters: None Returns: None