gaoyu31_01 wrote:
> Write a program in Basic to make the three LEDs continuously count in
> binary from 000 to 111.
> Above question is one of exercises from University of Tasmania.
> can anyone give some idea about it.
> the three Leds are on the oopic R board.The order is red,yellow,green.
> >From 000-111 will be the following order
>
> 000 001 010 011 100 101 110 111
>
> which object I can use? A above may be a easy question for you. I am
> beginner of oopic.
>
> Thanks
>
>
I dont have a R Board so dont know which Iolines are connected to the 3
leds. I would use a oDio4 object and increment the value something like
this:
Dim A as oDio1
Do
Delay = 50
A.inc
If A > 7 then A = 0
Loop
Hope this helps
------------------------------------

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