bool[] leds = new bool[3*64]; int[] audionr = new int[4]; int audiosound; public int AudioSound { get {return audiosound;} set {audiosound = value;} } ....//further on in code leds[audionr[0]] = !Convert.ToBoolean(this.AudioSound & 0x001);
!
!true returns false
!false returns true
Convert.ToBoolean(this.AudioSound)
leds
AudioSound
this.AudioSound
0x002
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)