bit shifting
#check if the 4th from the right is on
def check_bit4(input):
if input & 0b1000 > 0:
return "on"
else:
return "off"INFO
#check if the 4th from the right is on
def check_bit4(input):
if input & 0b1000 > 0:
return "on"
else:
return "off"