Add comment about GpioModeAnalog
This commit is contained in:
parent
5c5333e55e
commit
3f9554fb07
@ -41,4 +41,10 @@ Run the application and the LED should start blinking. Hold the back button to
|
|||||||
- We loop if the back button is not currently pressed.
|
- We loop if the back button is not currently pressed.
|
||||||
```c
|
```c
|
||||||
while(furi_hal_gpio_read(pin_back))
|
while(furi_hal_gpio_read(pin_back))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- Typically when a pin is no longer in use, it is set to analog mode. This causes the pin to be a floating input.
|
||||||
|
```c
|
||||||
|
furi_hal_gpio_init_simple(pin_led, GpioModeAnalog);
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user