Skip to content

Added defines for printing HEX and BIN values with specified minimum length.#26

Open
TobiasKnauss wants to merge 1 commit into
janelia-arduino:masterfrom
TobiasKnauss:master
Open

Added defines for printing HEX and BIN values with specified minimum length.#26
TobiasKnauss wants to merge 1 commit into
janelia-arduino:masterfrom
TobiasKnauss:master

Conversation

@TobiasKnauss
Copy link
Copy Markdown

Added defines for printing HEX and BIN values with specified minimum length.

example:

_HEX2 (11)    -> "0B" (leading 0 added)
_HEX2 (255)   -> "FF" (no change)
_HEX8(0x1234) -> "00001234" (4x leading 0 added)
_BIN16 (9)    -> "0000000000001001" (12x leading 0 added)

This modification requires changes in print.h and print.cpp of the Arduino Core.
The changes are proposed (arduino/ArduinoCore-API#271 and arduino/ArduinoCore-avr#621), but not accepted yet.

…length.

This modification requires changes in print.h and print.cpp of the Arduino Core. The changes are proposed (arduino/ArduinoCore-API#271), but not accepted yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant