Bicycle speedometer

@jpfli … EXT16 was repurposed to ISP mode set to allow serial programming of Pokitto

Buttons were earlier done with interrupt (7 buttons, 7 interrupts) until it became evident polling is better

That is why only 1 interrupt was available

If you use only polling buttons, you can free up all pin interrupts

#define PROJ_BUTTONS_POLLING_ONLY and other mysteries

2 Likes

D’oh! I actually had PROJ_BUTTONS_POLLING_ONLY in an earlier unpublished version, but it got lost when cleaning up / rewriting the code. Thanks for bringing that up.

4 Likes

Another case showing it should be the default now :wink:

4 Likes

So I’m not crazy, it works just not the version I have downloaded?

The cyclometer works well with one interrupt. I just downloaded the zip file from my earlier message and tested it.

It was my attempt to add more inputs that failed.

1 Like

So the current version (us units) doesn’t work but the original one from oldest post works?

Both versions work.

1 Like

I’ll try it again later today.