Component Counter

Hi wildbill

I will have a search and look at some of the debounce examples, thanks for the help.

Yep, contact bounce is an expected issue with switches. You can also tackle this electronically by using a capacitor paralleled with the switch. It absorbs some of the spikes. Still not a bad idea to maybe pause for a few ms before sampling again.

Hi All

Spent ages looking and still cant find one, is there a definitive step by step guide on connecting an LCD via the MCP23017 epander and programming examples that beginners can follow?

That's going to be difficult if you're using an existing LCD library. Most of them assume they will communicate with the LCD by toggling certain pins, not by sending pin states via i2c. You would have to rewrite the I/O portions of those libraries.

I would consider using the LCD directly and using expanders for simpler I/O like buttons and LEDs.