PaulStoffregen / Encoder

Quadrature Encoder Library for Arduino
http://www.pjrc.com/teensy/td_libs_Encoder.html
561 stars 243 forks source link

Using the encoder lib on an esp8266 via a MCP23017 #9

Closed brunnwart closed 8 years ago

brunnwart commented 8 years ago

Dear Paul,

unfortunately I don't have enough GPIO pins on my esp-07 so I need to use an MCP23017 with the https://github.com/adafruit/Adafruit-MCP23017-Arduino-Library lib. Do you see a chance to talk to the encoder via the mcp and do you have an idea how this can be done?

With the Adafruit_MCP23017 lib

include

include

I can declare the input pins on the MCP as mcp.pinMode(x, INPUT);

but I can't do a nested mcp.Encoder encmotor1(0, 1); to tell that the interrupts are on the MCP.

Do you have a hint for me?

Thanks and regards, Ditmar

PaulStoffregen commented 8 years ago

Do you see a chance to talk to the encoder via the mcp

Nope, sorry.