Ht16k33Multi.CircuitSimMock.Ht16k33Mock (ht16k33_multi v0.2.0)

View Source

Ht16k33 mock for testing purposes.

This module simulates the Ht16k33 device and is used in conjunction with the CircuitsSim library for running tests without requiring real hardware.

It is configured in the config/test.exs file.

Summary

Types

t()

(since 0.1.0)
@type t() :: %Ht16k33Multi.CircuitSimMock.Ht16k33Mock{
  defval: byte(),
  gpinten: byte(),
  gpio: byte(),
  gppu: byte(),
  intcap: byte(),
  intcon: byte(),
  intf: byte(),
  iocon: byte(),
  iodir: byte(),
  ipol: byte(),
  olat: byte()
}

Functions

child_spec(args)

(since 0.1.0)
@spec child_spec(keyword()) :: Supervisor.child_spec()

new()

(since 0.1.0)
@spec new() :: %Ht16k33Multi.CircuitSimMock.Ht16k33Mock{
  defval: 0,
  gpinten: 0,
  gpio: 0,
  gppu: 0,
  intcap: 0,
  intcon: 0,
  intf: 0,
  iocon: 0,
  iodir: 255,
  ipol: 0,
  olat: 0
}