This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Friday, January 18, 2008

Re: [oopic] Encoder Communication

rtstofer wrote:
>
>> All I want is for the OOPic to read the encoder. When I twist it a
> specific
>> amount (1 to 2 revolutions), I want it to beep, wait a second, then
> reset
>> and allow me to twist it again.
>
> There is a simple example in the Manual for the oQencode object. It
> simply outputs the count to an oDIO8.
>
> You can just look at the count in A and when it reaches some value do
> whatever you want. Just make sure you stay in the loop.
>

Then, do I just use an if statement to compare it, or should I use the
oCompare object in the OOPic library? Also, is there any way to submit
feedback to the computer so I can see in real-time what the value of the
counter is as I turn the encoder?
--
View this message in context: http://www.nabble.com/Encoder-Communication-tp14936159p14957784.html
Sent from the OOPic mailing list archive at Nabble.com.


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:

http://docs.yahoo.com/info/terms/

No comments: