push button on/off switch. I have an oLED object and an oSwitch object and
I'm using a C.1.X chip and the OOPic 6 compiler. All I have is a simple LED
and a board-mount micro-switch that I bought from the local Tandy store
(normally off). My code works perfectly and I can turn on the LED in code
but the moment I introduce oSwitch into the code the LED comes on and stays
on and the state off the switch seems to be ignored. My code is an exact
copy of the code on the website - and everything seems to be wired up OK. It
just doesn't work.
Dim Fred As New oSwitch
Dim Bob As New oLED
Sub Main()
Bob.IOLine = 8
Fred.IOLine = 9
Do
If Fred.IsOn Then
Bob.TurnOnBright
Else
Bob.TurnOnDim
EndIf
Loop
End Sub
_____
From: oopic@yahoogroups.com [mailto:oopic@yahoogroups.com] On Behalf Of
David Warner
Sent: Monday, 26 May 2008 12:44 AM
To: oopic@yahoogroups.com
Subject: Re: [oopic] Re: where is everybody!
Well Mike since it's just you and I, tell me about it and I'll try to give
you a hand. First what board are you working with and what version compiler
are you using?
Dave W.
--- On Sun, 5/25/08, Mike Martin <xaviour2me@yahoo.
<mailto:xaviour2me%40yahoo.com.au> com.au> wrote:
From: Mike Martin <xaviour2me@yahoo. <mailto:xaviour2me%40yahoo.com.au>
com.au>
Subject: [oopic] Re: where is everybody!
To: oopic@yahoogroups. <mailto:oopic%40yahoogroups.com> com
Date: Sunday, May 25, 2008, 11:41 AM
Well I'm always here but I'm lurking and learning - I don't usually
have anything to post because I don't know very much (and pulling my
hair out lately over simple things - like why I can't make a simple
LED / SWITCH toggle work, grrr...)
Mike M.
--- In oopic@yahoogroups. com, Brian Lloyd <brian-wb6rqn@ ...> wrote:
>
>
> On May 24, 2008, at 12:31 PM, bimityedye wrote:
>
> > Hey where is everybody? Haven't had a message in days. Anybody out
> > there?
>
> No.
>
> --
>
> 73 de Brian, WB6RQN
> Brian Lloyd - brian HYPHEN wb6rqn AT lloyd DOT com
>
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment