~gabe/flashlight-firmware/anduril2

« back to all changes in this revision

Viewing changes to tterev3/pic10f322-examples/momentary-switch.txt

  • Committer: Selene Scriven
  • Date: 2016-11-29 22:51:09 UTC
  • mto: This revision was merged to the branch mainline in revision 176.
  • Revision ID: ubuntu@toykeeper.net-20161129225109-oab58sah3mb7mk1j
Copied biscotti.c to gchart/babka/babka.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
http://budgetlightforum.com/node/30556?page=1#comment-575958
 
2
 
 
3
Hi guys, Here's an adaptation of the same code that uses a momentary switch instead of power cycles to demonstrate debounce and sleep mode. With this framework you could do a lot more with length of switch presses, etc. by adding a press timer and watching the "pressed" flag. currently using 56% of flash memory and 31% of RAM