Module pico
PICO-specific APIs.
Description
This module contains functions that are specific to the PICO platform.
Function Index
cyw43_arch_gpio_get/1 | Read a GPIO of the CYW43. |
cyw43_arch_gpio_put/2 | Write a GPIO of the CYW43. |
rtc_set_datetime/1 | Set the datetime on the RTC. |
Function Details
cyw43_arch_gpio_get/1
cyw43_arch_gpio_get(GPIO::0..2) -> 0..1
GPIO
: pin to read
returns: the level of the GPIO pin
Read a GPIO of the CYW43. This function is only available on Pico-W.
cyw43_arch_gpio_put/2
cyw43_arch_gpio_put(GPIO::0..2, Level::0..1) -> ok
GPIO
: pin to writeLevel
: value to write
Write a GPIO of the CYW43. This function is only available on Pico-W. It is typically used to drive the on-board LED.
rtc_set_datetime/1
rtc_set_datetime(Datetime::calendar:datetime()) -> ok
Set the datetime on the RTC. The datetime can be obtained through bif erlang:localtime()