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, September 28, 2007

[oopic] Re: TPA81

--- In oopic@yahoogroups.com, Abdul Rahman <rahman_oki@...> wrote:
>
> Dear All,
>
> Help me, I don't understand how program TPA81 sensor
> using OOPic or anyone have example source code
> program?
>
> thank's
>
> ARahman
>
>

If you don't find an OOPic example, look at the Basic Stamp (BS2)
example. Basically, you do an I2C write of one data byte to set the
register address. Then you do 8 reads to get the pixel values.

Remember, the OOPic wants the I2C address shifted right one place to
eliminate the R/W' bit of the standard I2C address. This causes no
end of problems because many manufacturers give the default address
with the R/W' bit assumed to be 0 but as an 8 bit address.

Richard



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: