Skip to content

fix(zigbee): Enable the internal pull-up resistor for BUTTON_PIN #10491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ void setup() {
rgbLedWrite(LED_PIN, 0, 0, 0);

// Init button for factory reset
pinMode(BUTTON_PIN, INPUT);
pinMode(BUTTON_PIN, INPUT_PULLUP);

// Set callback function for light change
zbColorLight.onLightChange(setRGBLight);
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ void setup() {
}

//Init button switch
pinMode(SWITCH_PIN, INPUT);
pinMode(SWITCH_PIN, INPUT_PULLUP);

//Optional: set Zigbee device name and model
zbSwitch.setManufacturerAndModel("Espressif", "ZigbeeSwitch");
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ void setup() {
digitalWrite(LED_PIN, LOW);

// Init button for factory reset
pinMode(BUTTON_PIN, INPUT);
pinMode(BUTTON_PIN, INPUT_PULLUP);

//Optional: set Zigbee device name and model
zbLight.setManufacturerAndModel("Espressif", "ZBLightBulb");
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ void setup() {
}

// Init button switch
pinMode(BUTTON_PIN, INPUT);
pinMode(BUTTON_PIN, INPUT_PULLUP);

// Optional: set Zigbee device name and model
zbTempSensor.setManufacturerAndModel("Espressif", "ZigbeeTempSensor");
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ void setup() {
}

// Init button switch
pinMode(BUTTON_PIN, INPUT);
pinMode(BUTTON_PIN, INPUT_PULLUP);

// Set callback functions for temperature and configuration receive
zbThermostat.onTempRecieve(recieveSensorTemp);