Code: Select all
...
#define B_SENSOR_PORT1 5
...
supla_input_cfg[1].type = INPUT_TYPE_SENSOR;
supla_input_cfg[1].gpio_id = B_SENSOR_PORT1;
supla_input_cfg[1].channel = 2;
supla_input_cfg[1].flags = INPUT_FLAG_PULLUP;
To jest płytka Yunshan - diodka IN lekko świeci.
Po podciągnięciu do 3,3V rezystorem działa bezbłędnie, ale nie daje mi to spokoju
