Skip to content

Commit 3052ef8

Browse files
authored
Update Zigbee_Color_Dimmable_Light.ino
Configure BUTTON_PIN as an input and enable the internal pull-up resistor
1 parent 9e643c0 commit 3052ef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/Zigbee/examples/Zigbee_Color_Dimmable_Light/Zigbee_Color_Dimmable_Light.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void setup() {
6565
rgbLedWrite(LED_PIN, 0, 0, 0);
6666

6767
// Init button for factory reset
68-
pinMode(BUTTON_PIN, INPUT);
68+
pinMode(BUTTON_PIN, INPUT_PULLUP);
6969

7070
// Set callback function for light change
7171
zbColorLight.onLightChange(setRGBLight);

0 commit comments

Comments
 (0)