PololuAStar32u4.Driver (pololu_a_star_32u4 v0.1.0)

View Source

Internal GenServer driver for I2C communication with Pololu A-Star 32U4.

This module handles the low-level I2C protocol communication with the A-Star 32U4 board when it's operating in RPi slave mode. It manages the persistent I2C connection and implements the board's register-based communication protocol.

The board uses I2C address 0x14 and expects specific register offsets for different operations. This module should not be used directly; instead use the public API in PololuAStar32u4.

I2C Protocol

  • Address: 0x14
  • Bus: "i2c-1"
  • Communication: Write register offset, then read/write data
  • Timing: 1ms delay between operations

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the Driver GenServer.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

Starts the Driver GenServer.

Initializes the I2C connection to the A-Star 32U4 board. This function is called automatically by the Application supervisor.