eensy

Types

pub opaque type BoardConfig
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 get_system_platform() -> PlatformName

get the running platform name

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
pub fn processes_info() -> Nil

System processess

Search Document