Commit Graph

2 Commits

Author SHA1 Message Date
Ayke van Laethem 16d2b71820 all: do not use machine.TWI_FREQ_* constants
These constants were always a bit weird:

  * they use an uncommon name (TWI instead of I2C)
  * they don't follow Go naming conventions (CamelCase)
  * the constants don't provide much value: their name is their value
    (100KHZ => 100e3).

Therefore, I propose we remove them and replace them with regular
numeric constants.
2021-02-06 11:21:37 +01:00
Roger Peppe ce5e443084 mcp23017: implement pin toggling
Also add an example for using multiple devices.
2021-01-20 12:56:22 +01:00