Why do embedded developers write pin masks in hex or binary?
Each hex digit maps cleanly to 4 bits (a nibble), making register flags like 0x0F (0b00001111) or I2C address 0x3C far easier to read than decimal.
Debug I2C addresses, bitmasks, and AVR/ESP32 hardware registers visually. Click individual bits or enter Decimal, Hex, or Binary to generate exact C++ literals.
Click any bit below to toggle 0 / 1 (MSB on left, Bit 0 on right):
uint8_t mask = 0xAA; // 0b10101010Each hex digit maps cleanly to 4 bits (a nibble), making register flags like 0x0F (0b00001111) or I2C address 0x3C far easier to read than decimal.
An unsigned uint8_t (byte) stores 0 to 255, while a signed int8_t stores -128 to 127 using two-complement encoding on the highest bit (MSB).
Chrome USB WebSerial + 300 Free Credits
Open Gokino in Chrome, let AI generate interactive /wiring circuit diagrams, fix C++ bugs in 1 click, and upload directly to Arduino, ESP32, or STM32 with zero installation.