Sign in

username:

password:



Not a member?

Search oopic



Search tips

Subscribe to oopic



Ads

Discussion Groups

Discussion Groups | | Struggling newbee question : ooPIC-R LEDs

Struggling newbee question : ooPIC-R LEDs - "design.wonk" - Mar 11 17:29:55 2008

I am sorry if the answer to this question is painfully obvious, but
this is my second day with an ooPIC-R (vC1+, with 6.1 compiler). I
have been able to successfully download a program that makes the
speaker beep (the ooPIC version of "Hello world"). I would like to
try to light the on-board LEDs, but everything I have tried has not
worked. I am not even sure if I am using the right object (oLED).
Can someone show me an example of how this is done or point me to an
ooPIC-R specific example. The board came pre-loaded with a program
that lit the lights in sequence when it was powered up, but this was
erased when I download my first program - I would love to see this
code if it is out there.

thanks for the help



(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )


Re: Struggling newbee question : ooPIC-R LEDs - rtstofer - Mar 11 19:26:07 2008

--- In o...@yahoogroups.com, "design.wonk" wrote:
>
> I am sorry if the answer to this question is painfully obvious, but
> this is my second day with an ooPIC-R (vC1+, with 6.1 compiler). I
> have been able to successfully download a program that makes the
> speaker beep (the ooPIC version of "Hello world"). I would like to
> try to light the on-board LEDs, but everything I have tried has not
> worked. I am not even sure if I am using the right object (oLED).
> Can someone show me an example of how this is done or point me to an
> ooPIC-R specific example. The board came pre-loaded with a program
> that lit the lights in sequence when it was powered up, but this was
> erased when I download my first program - I would love to see this
> code if it is out there.
>
> thanks for the help
>

Why not try the sample code from the online documentation of the oLED
object? See www.oopic.com -> Manual -> Objects -> oLED. Use the
Visual Basic Syntax as a first attempt.

Or look through the sample code that got downloaded with the IDE.

Not coincidentally, the code uses IOLine 7 which, on the R board,
turns out to be the green LED.



(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )

Re: Struggling newbee question : ooPIC-R LEDs - "design.wonk" - Mar 13 11:58:05 2008

--- In o...@yahoogroups.com, "rtstofer" wrote:
>
> --- In o...@yahoogroups.com, "design.wonk" wrote:
> >
> > I am sorry if the answer to this question is painfully obvious, but
> > this is my second day with an ooPIC-R (vC1+, with 6.1 compiler). I
> > have been able to successfully download a program that makes the
> > speaker beep (the ooPIC version of "Hello world"). I would like to
> > try to light the on-board LEDs, but everything I have tried has not
> > worked. I am not even sure if I am using the right object (oLED).
> > Can someone show me an example of how this is done or point me to an
> > ooPIC-R specific example. The board came pre-loaded with a program
> > that lit the lights in sequence when it was powered up, but this was
> > erased when I download my first program - I would love to see this
> > code if it is out there.
> >
> > thanks for the help
> > Why not try the sample code from the online documentation of the oLED
> object? See www.oopic.com -> Manual -> Objects -> oLED. Use the
> Visual Basic Syntax as a first attempt.
>
> Or look through the sample code that got downloaded with the IDE.
>
> Not coincidentally, the code uses IOLine 7 which, on the R board,
> turns out to be the green LED.
>
I will give it a try today. One of the things that I have been having
some problems with is the documentation. There are properties and
methods that are visible in the object browser that are not documented
in the on-line manual. For example, the oLED object had an init
(among others) method that is not documented. Often it also seems
that the range of the arguments of these undocumented methods are also
not defined. Can these methods and propertied be used or are they
protected?

-Ray



(You need to be a member of oopic -- send a blank email to oopic-subscribe@yahoogroups.com )