compiler. To get similar functionality you would use oPWMX which has 16
values of duty cycle (oLED is simply a wrapper for oPWML, which is the
V.6 name for oPWMX.)
DLC
dan michaels wrote:
>--- In oopic@yahoogroups.com, "jeffkaypic" <jeffkaypic@...> wrote:
>
>
>
>
>Dennis probably knows offhand the reason for your compile time error.
>I don't see an oLed object for version B.2.2+ chips. Try using oDIO1.
>
>Also ... don't use IOlines 1-7 for digital I/O. Rather, reserve them
>for A/D inputs. People run into nothing but trouble here, because of
>the flukey way that Microchip asigns pins between digital and analog
>I/O [this is not really an oopic problem].
>
>
>
>
>
>
>>Hi, I have a OOPICII+ in a OObot-40II board. I am running the 5.x
>>IDE on a Win98 computer (so I can't run ver. 6). I have
>>
>>
>succesefully
>
>
>>loaded and ran a tone generating program via the serial and parallel
>>port methods. My problem is, that when I try to compile the code
>>below (lifted from OOPIC site) I get an error saying that basic
>>expects a class object--something to the effect that it does not
>>
>>
>know
>
>
>>what the object is. In this version, oLED should work, correct?
>>
>>
>Do I
>
>
>>have to tell the IDE something more about firmware? I have selected
>>the B.2.x+ in the target menu.
>>
>>Trying to load:
>>'This program causes an LED on I/O
>>'Line 7 to change brightness.
>>
>>Dim A As New oLED
>>
>>Sub Main()
>> A.IOLine = 7
>> A.Operate = cvTrue
>> Do
>> ooPIC.Delay = 20
>> A.Brightness = A.Brightness + 1
>> Loop
>>End Sub
>>
>>Jeff K. Burbank
>>
>>
>>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------
[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