This repository will collect all of products practice based on RAK IoT module and RAK IoT SDK RUI.The creativity may come from RAK official and open source contributor.
MIT License
18
stars
17
forks
source link
Pullup/Pulldown resistor not working in RAK811 as inputs #10
The inputs initialized correctly as inputs, but the pullups seems to be not working because getting random readings with the pins floating. Checking with a multimeter between ground and the I/O pin shows a floating random voltage, never gets VCC.
Changed the setting to RUI_GPIO_PIN_PULLDOWN gave the same results, random reads if pins floating. measured agan with a multimeter, never gets 0V.
I initialized PB14 (PIN3) and PB15 (PIN) as follows:
Switch_One.pin_num = 3; Switch_One.dir = RUI_GPIO_PIN_DIR_INPUT; Switch_One.pull = RUI_GPIO_PIN_PULLUP;
Switch_Two.pin_num = 4; Switch_Two.dir = RUI_GPIO_PIN_DIR_INPUT; Switch_Two.pull = RUI_GPIO_PIN_PULLUP;
rui_gpio_init(&Switch_One); rui_gpio_init(&Switch_Two);
The inputs initialized correctly as inputs, but the pullups seems to be not working because getting random readings with the pins floating. Checking with a multimeter between ground and the I/O pin shows a floating random voltage, never gets VCC.
Changed the setting to RUI_GPIO_PIN_PULLDOWN gave the same results, random reads if pins floating. measured agan with a multimeter, never gets 0V.