Skip to content

Support Binary Assignment to Variables #106

Closed
@marsfan

Description

@marsfan

Subject of the issue

Arduino supports assigning values to variables in binary form by prefixing the number with a capital B. (Ex: n = B101)
When I try to compile a program for my Artemis board, this fails, saying that the value was not declared in this scope.

Your workbench

  • Arduno 1.8.10 on Windows 10 1909 x64
  • Using Artemis ATP
  • Connected via USB-C cable to laptop USB-C port
  • Powered over USB-C

Steps to reproduce

  1. Create a new Arduino project with this code.
  2. Configure the Arduino IDE to use the Redboard Artemis ATP
  3. Verify the program.

Expected behaviour

Program verifies successfully.

Actual behaviour

Verification fails with the error that 'B101 was not declared in this scope'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions