What is the simplest way to get or set single bits in a byte?
Ok, maybe this shouldn't be under questions but.... I'm used to use the following (MCU programming)
Ex:
Dim bit0, bit1 as boolean
Dim byte as byte
bit0 = byte.0 'Get bit 0 in byte
byte.1 = bit1 'Set bit 1 in byte
Lars
Ok, maybe this shouldn't be under questions but.... I'm used to use the following (MCU programming)
Ex:
Dim bit0, bit1 as boolean
Dim byte as byte
bit0 = byte.0 'Get bit 0 in byte
byte.1 = bit1 'Set bit 1 in byte
Lars