shiftOut question

shiftOut(dataPin, clockPin, bitOrder, value)

If “value” is an int variable, does shiftOut convert it to binary?

If “value” is a byte variable, does shiftOut leave it alone?

I ask because I think in certain examples I am seeing both binary and integer variables being used in the value part of the shiftOut function.

value can only be a byte, not an int All the variables in the program are made up of bits so are already binary.

Makes more sense...thanks. JK

I would think an int would get chopped off to lower 8 bits.

8 bits get sent out: byte, char, whatever, as the 8 bits that make up that value. Could be a font look up of a byte from an array:

shiftOut(dataPin, clockPin, MSBFIRST, fontArray[dataArray[x]]);

For example, char '0' = 48 decimal, = 0x30 (hex) = 0b00110000 . 00110000 is what gets shifted out. '0', 48, 0x30, are all just things to make it easier for us to interpret 00110000.