New topic: Testing individual bits of a Byte
<http://forums.realsoftware.com/viewtopic.php?t=30728> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message RGV250 Post subject: Testing individual bits of a BytePosted: Wed Oct 28, 2009 8:16 pm Joined: Sun Oct 04, 2009 11:41 am Posts: 8 Hi, Is it possible to test individual bits of a byte, I have a PIC microcontroller and I send the status of one of the ports as a byte, what I then want to do is to mimic the 8 outputs with objects (not sure which type yet, probably just circles to mimic LED) so they show red or green individually depending on their state. Regards, Bobby Top DaveS Post subject: Re: Testing individual bits of a BytePosted: Wed Oct 28, 2009 9:26 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 1690 Location: San Diego, CA Yup.... use the BITWISE functions... simple BOOLEAN Algebra... AND .... OR etc. _________________ Dave Sisemore MacPro, OSX 10.5.8 RB2009r2 Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
