Shop OBEX P1 Docs P2 Docs Learn Events
IR remote for the Boe-bot — Parallax Forums

IR remote for the Boe-bot

jimrmjimrm Posts: 2
edited 2007-02-16 01:12 in Learn with BlocklyProp
IR remote for the Boe-bot
On page 99 what does the line below mean.

mute = ~ mute

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2007-02-16 01:12
    As it says, in the first entry in the help file (hint, hint), that is an Invert Bits operator.

    So, if 'mute' has %01100100, ~ mute will have 10011011.

    This is also known as "ones complement".
Sign In or Register to comment.