On 12/10/2014 11:51 AM, [email protected] wrote:
------------------------------

Date: Wed, 10 Dec 2014 11:45:27 -0800
From: Thomas Hudson <[email protected]>

There is some code written in C-sharp. I'm wondering how to serial output
to this program. I'm pretty close but can't figure it out.  Any help?

CS code:
My inclination is to recode RaiseEventsForPressBytes as follows:

   private void RaiseEventsForPressBytes(byte[] pressBytes)
   {
        for (int row = 0; row < rowCount; row++)
        {
            for (int bit = 0; bit < 6; bit++)
                if ((pressBytes[row] & (1 << bit)) != 0)
                    floor.RaiseTileEvents(bit, row);
        }
   }

Much more compact, and it appears that locality requirements are not an issue with this application
_______________________________________________
dorkbotpdx-blabber mailing list
[email protected]
http://music.columbia.edu/mailman/listinfo/dorkbotpdx-blabber

Reply via email to