Eric, I'm glad you're having fun. I've always enjoyed playing with LED projects. Here's a couple graphics of an old single chip Charlieplexed Clock/Calendar/Timer experiment;
Speaking of fun, I modified my version of the code (below) to support a second active lo switch on the RB4 pin (with external pull-up). Code in the main loop was modified for "up" and "down" switch functions.
May I suggest a simple exercise? Find out what changes are necessary in the code to eliminate the external pull-up resistors in favor of the internal pull-ups for the switches on RB7 and RB4.
BTW, with support for two switches in place, a minor code change would allow using a rotary encoder, which has A and B switches, in place of the two push button switches.
Food for thought...
Back to my homework... Regards, Mike
Speaking of fun, I modified my version of the code (below) to support a second active lo switch on the RB4 pin (with external pull-up). Code in the main loop was modified for "up" and "down" switch functions.
May I suggest a simple exercise? Find out what changes are necessary in the code to eliminate the external pull-up resistors in favor of the internal pull-ups for the switches on RB7 and RB4.
BTW, with support for two switches in place, a minor code change would allow using a rotary encoder, which has A and B switches, in place of the two push button switches.
Food for thought...
Back to my homework... Regards, Mike
Attachments
-
11.3 KB Views: 17
-
185.6 KB Views: 29
-
58.9 KB Views: 29
Last edited: