8000 Feature Request: Print variables as text/strings · Issue #161 · dekuNukem/duckyPad · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Feature Request: Print variables as text/strings #161
Open
@coreman14

Description

@coreman14

Right now when you type out text through STRING or the OLED_PRINT, it has to be predefined in a constant or by the script itself.

Because of this, if you want to have more than one options for text output, you need to add if statements.

I purpose that to put a dent in the above problem, a new command is added that converts an int to an ascii character which is then outputted.

Something along the lines of CHAR, CHARLN and for the oled screen OLED_CHAR.

Which would allow for

VAR $i = 0
$_RANDOM_MIN = 65
$_RANDOM_MAX = 90

WHILE $i < 5
    STRING Random Letter: 
    CHARLN $_RANDOM_INT
    $i = $i + 1
END_WHILE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0