Dynamic Light Documentation


Introduction

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 instantly change luminosity. It will either brighten or dim to the desired light level over time (a rate of 1 light level per tick).

The Dynamic Light is categorized as "neetcomputers:dynamic_light" in the IO API

Lookup 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: None

turnOn()

Sets the target light level to 15 (the maximum)

Parameters: None Returns: None

turnOff()

Sets the target light level to zero

Parameters: None Returns: None