-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update variable reference pages (#6024)
* create/set variables gifs * update variable/type pages
- Loading branch information
Showing
6 changed files
with
123 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,27 @@ | ||
# @extends | ||
|
||
## #intro | ||
## #create | ||
|
||
## ~ hint | ||
In the ``||variables:Variables||`` category of the **Toolbox** you can create new variable: | ||
|
||
For the @boardname@, ASCII character codes 32 to 126 are supported; letters, digits, punctuation marks, and a few symbols. All other character codes appear as a ? on the [LED screen](/device/screen). | ||
![Create a new string variable](/static/blocks/variables/string.gif) | ||
|
||
## ~ | ||
Here's how to create a string variable using the Toolbox: | ||
|
||
1. Click ``||variables:Variables||`` in the Toolbox. | ||
2. Click on **Make a Variable...**. | ||
3. Choose a name for your variable, type it in, and click **Ok**. | ||
4. Drag the new ``||variables:set||`` block into your code. | ||
5. Click on the ``||text:Text||`` drawer in the Toolbox and find the ``||text:" "||`` block. | ||
6. Drag the ``||text:" "||`` block into the value slot in of your variable ``||variables:set||`` block. | ||
|
||
## Characters you use in strings #custom | ||
|
||
### ~ hint | ||
|
||
#### Character sets | ||
|
||
The available characters to use for a language is called the _character set_. Each character in the set has a number code to match it with. | ||
To display characters on the [LED screen](/device/screen), the @boardname@, uses the "ASCII" character codes of `32` to `126`; letters, digits, punctuation marks, and a few symbols. All other character codes appear as a `?` on the LED screen. | ||
|
||
### ~ |