Skip to main content

Module pps

Module pps 

Source
Expand description

M5Stack PPS module (SKU U136) driver, I2C address 0x35.

The module serves one RAM register bank; reads auto-increment through it and writes land in it. The full map, who writes what, and the bus timing it was measured with are in docs/pps-register-map.md. This driver touches only 0x00..=0x1F:

AddrBytesRegisterWriter
0x002module ID, always 0x1041module
0x041ENABLE, 0 = output offhost
0x051running mode 0 off / 1 CV / 2 CCmodule, after it switched the output
0x071FLAG, +1 per measurement refresh (~16 Hz), wrapsmodule
0x08..=0x174 × f32output V, output A, °C, input Vmodule
0x18..=0x1F2 × f32voltage set, current sethost

The module applies the setpoints whether or not the output is enabled, and does NOT reject out-of-range ones: the caller clamps.

Two bus properties shape every caller (measured, 2026-10-17): the module holds SCL for 100-200 us while it copies the bank for a read, and it NACKs a transaction addressed right after another one ended. See crate::io::pps.

Structs§

PpsBank
One read of 0x04..=0x1F: the module’s state and what it was last told.
PpsDriver

Enums§

PpsError
PpsRunningMode

Constants§

ADDRESS
The module’s I2C address as shipped.
MODULE_ID
Module ID at registers 0x00/0x01, hardcoded by the module’s own firmware (https://github.com/m5stack/M5Module-PPS-Internal-FW Core/Src/i2c_comm.c).