Search found 1 match

by partyk1d24
Wed Jan 17, 2024 11:47 pm
Forum: ESP-IDF
Topic: [Newbie] Button seems to be acting flakey but I think it is wired correctly what am I missing?
Replies: 0
Views: 584

[Newbie] Button seems to be acting flakey but I think it is wired correctly what am I missing?

I have a switch from this set https://spot.pcc.edu/~dgoldman/labs/37SENSORKIT.pdf switchDoc.png I hook it up to port 32 and use this code gpio_set_direction(GPIO_NUM_25, GPIO_MODE_OUTPUT); gpio_set_direction(GPIO_NUM_32, GPIO_MODE_INPUT); gpio_set_level(GPIO_NUM_25, 1); int button_state = 1; while (...