0 corresponds to no light while 100 corresponds to a light shining directly onto module.
What ports can I use it on?
1,2,7,8
Code
var daylight = Magic.modules.light.brightness;
using Magic;
public class Demo : MonoBehaviour
{
// create a reference to the module
public Magic.Modules.LightModule light;
void Start()
{
}
void Update()
{
// access the property of the module
int daylight = light.brightness;
}
}