eensy
Types
BoardConfig
opaque
pub opaque type BoardConfig
BoardPeripheral
opaque
pub opaque type BoardPeripheral
pub type PlatformName {
GenericUnix
Emscripten
Esp32
Pico
Stm32
}
Constructors
-
GenericUnix
-
Emscripten
-
Esp32
-
Pico
-
Stm32
pub type Pull {
Up
Down
}
Constructors
-
Up
-
Down
Functions
pub fn board(
inputs inputs: List(BoardPeripheral),
outputs outputs: List(BoardPeripheral),
) -> BoardConfig
pub fn erlang_display(any: a) -> Nil
using erlang:display directly from gleam for debug purposes
pub fn erlang_garbage_collect() -> Nil
using erlang:garbage_collect directly from gleam for forcing vm behaviour
pub fn i2c(
name name: String,
sda sda: Int,
scl scl: Int,
clock_speed clock_speed: Int,
pull pull: Pull,
) -> BoardPeripheral
pub fn pin(
name name: String,
num num: Int,
pull pull: Pull,
) -> BoardPeripheral