fivdi / i2c-bus

I2C serial bus access with Node.js
MIT License
348 stars 57 forks source link

mcp23017 examples #51

Closed fair-man closed 6 years ago

fair-man commented 6 years ago

Hi, can you add an example of working with mcp23017?

  1. Recording, reading gpio.
  2. Reading dh11 sensors.
fair-man commented 6 years ago

https://www.raspberrypi-spy.co.uk/2013/07/how-to-use-a-mcp23017-i2c-port-expander-with-the-raspberry-pi-part-1/#prettyPhoto

fivdi commented 6 years ago

For an example of how to use i2c-bus to implement a driver see https://github.com/fivdi/mcp9808-temperature-sensor. It's a driver for the MCP9808 temperature sensor and should be helpful and provide lots of ideas if you would like to implement a driver for another chip like the MCP23017.