
Modules Usage & API Reference
Light Sensor
光傳感器模塊可用於檢測環境中的光強度。將亮度分為
5
級。該模塊只能插入類
比連接器(
A0
,
A1
和
A2
)。
The Light Sensor module can be used to detect the intensity of light in the
environment.We divide the brightness into 5 levels.This module can only be pluged
into
Analog connector(A0, A1 and A2)
.
Module
Connect Type Available Connectors
Light Sensor Analog
A0, A1, A2
Block API
Get the light level
獲得當前的光照水平,我們將光強度分為
5
個等級,從
1
到
5.
其中
1
表示最亮,
5
表示黑暗。