-50%








五色大按鈕控制模組 按鍵控制模組
0 out of 5
NT$150 原始價格:NT$150。NT$75目前價格:NT$75。 (未稅)
- 描述
- 評價 (0)
描述
描述
五色大按鈕控制模組 按鍵控制模組
arduino專用模塊,端口兼容傳感器擴展板
按下時輸出低電平,釋放保持高電平
尺寸:26*21mm
一套套五個(紅、黃、綠、藍、白色各一枚)
Arduino
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
// Sensor Signal (S) = [Pin 3] // Sensor +V = [Pin 5V] // Sensor – = [Pin GND] // Arduino Code for Push button Module int Led = 13 ;// Declaration of the LED-output pin int Key = 3; // Declaration of the sensor input pin int val; // Temporary variable void setup () { pinMode (Led, OUTPUT) ; // Initialization output pin pinMode (Key, INPUT_PULLUP) ; // Initialization Key pin with internal pull-up resistor } void loop () { val = digitalRead (Key) ; // The current signal at the key will be read if (val == HIGH) // If a signal was detected, the LED will light up. { digitalWrite (Led, HIGH); } else { digitalWrite (Led, LOW); } } |
評價 (0)
相關商品
-
按鍵 / 輸入 / 人機介面模組
Grove Switch(P) 開關模組
0 out of 5NT$100原始價格:NT$100。NT$95目前價格:NT$95。 (未稅)加入購物車產品速覽 -
按鍵 / 輸入 / 人機介面模組
微動開關 4×4 矩陣 16 按鍵/鍵盤模組
0 out of 5NT$45原始價格:NT$45。NT$35目前價格:NT$35。 (未稅)加入購物車產品速覽 -
按鍵 / 輸入 / 人機介面模組
Grove – Mouse Encoder 機械式旋轉編碼器
0 out of 5NT$219原始價格:NT$219。NT$210目前價格:NT$210。 (未稅)加入購物車產品速覽 -
按鍵 / 輸入 / 人機介面模組
Arduino JoyStick 雙軸按鍵搖桿模組
0 out of 5NT$33原始價格:NT$33。NT$25目前價格:NT$25。 (未稅)加入購物車產品速覽
商品評價
目前沒有評價。