Cons&Vars in other Objects
bambino
Posts: 789
Mike,
I finally got around to the I2C routine in the Object exchange and noticed a nifty trick you did with the calls to other objects.
Is there some way to access Vars in the same way where it's undeclared in the calling Object?
I finally got around to the I2C routine in the Object exchange and noticed a nifty trick you did with the calls to other objects.
obj otherObject : object pub Main otherObject.someRoutine(#someConstant)
Is there some way to access Vars in the same way where it's undeclared in the calling Object?
Comments
No biggy, I just think its neat how things new to me about this chip come up all the time.
Another Q about that simple driver(not FemtoBasic). Is pageread and write the only accessable funtions for read & write or can bytes, words, and longs be used?
The Basic I2C Driver includes public methods for read & write of bytes, words, and longs. These all call readpage and writepage. Take a look.
It's not fresh on my mind what we are looking at but I did get the routines at the top that are commented out to work. The other methods will take a while more. But thanks for the object, I have always worked with SPI and this is my first I2C. You have made it a little less intimadating!
See my sig to download it [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://forums.parallax.com/showthread.php?p=650217
meow, i have my own topic now? (sorta)
M K,
Thanks, I'll take a look!