Posted: 06:07pm 24 Jan 2016 |
Copy link to clipboard |
 Print this post |
|
I have a momentary push button connected to the earth with a 100n cap connected in parrellel with it as shown in this pic...
In MMbasic 4.5 when I specify
setpin BUTTON, DIN, PULLUP, OnButton
it doesn't reconize the PULLUP keyword, so I have omitted it..
When I wave my hand over it from about 10cm above it.. it will activate the OnButton interrupt and run that code... I haven't even pressed the button...
Oh yeah the code I used is
setpin BUTTON, INTL, OnButton
any ideas on how to fix it?
Thanks for the replies |