Add comment about GpioModeAnalog
This commit is contained in:
parent
5c5333e55e
commit
3f9554fb07
@ -42,3 +42,9 @@ Run the application and the LED should start blinking. Hold the back button to
|
|||||||
```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