Addressing 23017/4051 using I2C Serial Interface & PROGMEM

//Table 1-2 (0)
if(PadNote == 60) ledBits |= 0x01;
if(PadNote == 61) ledBits |= 0x02;
if(PadNote == 62) ledBits |= 0x03;
if(PadNote == 63) ledBits |= 0x04;
if(PadNote == 64) ledBits |= 0x05;

  • // the same goes for turning the LED off:-*
    if(PadNote == 60) ledBits &= ~0x01;
    if(PadNote == 61) ledBits &= ~0x02;
    if(PadNote == 62) ledBits &= ~0x03;
    if(PadNote == 63) ledBits &= ~0x04;
    if(PadNote == 64) ledBits &= ~0x05;
    > In mathematics and computer science, hexadecimal (also base 16, or hex) is a positional numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 0–9 to represent values zero to nine, and A,?B,?C,?D,?E,?F (or alternatively a–f) to represent values ten to fifteen. For example, the hexadecimal number 2AF3 is equal, in decimal, to (2?×?163) + (10?×?162) + (15?×?161) + (3?×?160), or 10,995.
    > Each hexadecimal digit represents four binary digits (bits), and the primary use of hexadecimal notation is a human-friendly representation of binary-coded values in computing and digital electronics. One hexadecimal digit represents a nibble, which is half of an octet (8 bits). For example, byte values can range from 0 to 255 (decimal), but may be more conveniently represented as two hexadecimal digits in the range 00 to FF. Hexadecimal is also commonly used to represent computer memory addresses.
    OK back to my scrapbook
    > 16 (hexadecimal) 0x7B leading "0x" characters 0-9, A-F, a-f valid