but as soon as i connect it to GPIO34, voltage drops to 2.1v (it still registers as a high level and the GPIO is on)
but thats a lot of drop!
code does set that GPIO as input
any ideas?
Code: Select all
#define GPIO_INPUT_IGNITION_SENSE GPIO_NUM_34
// INPUT PIN MASK
#define GPIO_INPUT_PINS ( (1ULL<<GPIO_INPUT_IGNITION_SENSE) )
gpio_config_t io_confx;
// set to inputs
io_confx.intr_type = GPIO_INTR_DISABLE;
io_confx.mode = GPIO_MODE_INPUT;
io_confx.pin_bit_mask = GPIO_INPUT_PINS;
io_confx.pull_down_en = GPIO_PULLDOWN_DISABLE;
io_confx.pull_up_en = GPIO_PULLUP_DISABLE;
gpio_config(&io_confx);