Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Suggestion: Use raw literals for the hex file #9

Closed
@matthijskooijman

Description

@matthijskooijman

Since C++11 (which the Arduino IDE has enabled for quite some time now), raw string literals are supported. These are easy multi-line string literals, which would make it even easier to paste a hex file into images.cpp. Instead of

{
":107E0000112494B714BE892F8D7011F0892FDED004\n"
":107E100085E08093810082E08093C00088E18093B8\n"
}

you could write

{R"(
:107E0000112494B714BE892F8D7011F0892FDED004
:107E100085E08093810082E08093C00088E18093B8
)"}

Note the absence of the double quotes and \n around each line, which allows directly pasting from a hex file. It seems this is already supported as-is, but it would be nice to use these in the example in images.cpp, so people know right away.

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