描述
技術規格
1.訊號傳輸型式: 數位 (Digital)
2.電壓範圍:3.3V ~ 5.0V。
3.控制方式:高電位亮、低電位暗
4.模組尺寸:40 x 30 mm
商品內容
§ LED發光模組 1個
§ RJ11 6P4C 50cm 信號線 1條
程式範例
每隔一秒閃爍LED一次!
int led = 2;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
接線範例
接線方式如果配合S4A IO Board只要把電話接頭(RJ11)接到標示D2D3孔位即可完成連接。