Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Replace "B..." binary constants with "0b..." #793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
per1234 merged 1 commit into arduino:master from cousteaulecommandant:use-binary-constants
Dec 25, 2020

Conversation

Copy link
Contributor

@cousteaulecommandant cousteaulecommandant commented Oct 29, 2020

Follow-up to issue arduino/Arduino#3561 and PR arduino/Arduino#7064 -- updating documentation to reflect this change.

Replaced all references to the deprecated B... binary format (e.g. B00101010) with the GCC- and C++14-compliant 0b... format (e.g. 0b00101010).
This also removes the restriction that binary constants must be 8 bits or less, so I'm removing that part as well.

Some examples using B... still remain in legacy code (libraries, old tutorials, etc); those should be replaced as well.

per1234 reacted with thumbs up emoji
Replaced all references to the deprecated "B..." binary format (e.g. B00101010)
with the GCC- and C++-compliant "0b..." format (e.g. 0b00101010).
This also removes the restriction that binary constants must be 8 bits or less,
so I'm removing that part as well.
@per1234 per1234 merged commit 4d562db into arduino:master Dec 25, 2020
Copy link
Collaborator

per1234 commented Dec 25, 2020

Thanks so much @cousteaulecommandant!

cousteaulecommandant reacted with hooray emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@per1234 per1234 Awaiting requested review from per1234

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /