~gabe/flashlight-firmware/anduril2

« back to all changes in this revision

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

  • Committer: Selene Scriven
  • Date: 2015-09-14 19:23:29 UTC
  • mto: (153.1.18 tiny25)
  • mto: This revision was merged to the branch mainline in revision 156.
  • Revision ID: ubuntu@toykeeper.net-20150914192329-0ean5s8qpnnkdbub
updated to BLF-VLD 0.2

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