Skip to content
php-baremetal REGISTRY
Publish a package

php-baremetal/io-ch422g

bm-lib MIT

CH422G I/O expander driver for ext-i2c (Baremetal\I2c\Driver\Ch422g): eight bidirectional and four output pins, also named by other drivers in the board file ("exio2").

bus: i2c

Changelog

1.0.0

  • First release.
  • Added: the class Baremetal\I2c\Driver\Ch422g (registered into ext-i2c's i2c_drivers): set() and get() of exio0 to exio7 and oc0 to oc3, onboard() from the board's expander block, inputs of the board kept low and refused.
  • Added: the pin provider ch422g (registered into ext-gpio's pin_providers): other drivers name the expander's pins in the board file ("exio2") and share the driver's copy of the outputs.