2016-03-26 00:47:20 +01:00
|
|
|
# TouchDevelop Lessons
|
|
|
|
|
2016-11-02 01:44:37 +01:00
|
|
|
Overview of TouchDevelop lessons for the @boardname@.
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### @section full
|
|
|
|
|
|
|
|
### ~column
|
|
|
|
|
|
|
|
### LED screen
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* [plot guided](/hcwxud) `guided tutorial ` `video available`
|
|
|
|
* [plots an LED](/njuzbvocit) [guided tutorial]
|
|
|
|
* [blink symbols](/rfchtfjmag) `docs`
|
|
|
|
* [clear screen](/jwqywu)
|
|
|
|
* [point](/reference/led/point)
|
|
|
|
* [set brightness](/tfrmcgdtxk)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
2016-11-02 01:44:37 +01:00
|
|
|
## @boardname@
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
## functions
|
|
|
|
|
|
|
|
### Basic
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* [show number](/doxhko)
|
|
|
|
* [show string](/hgsfxg)
|
|
|
|
* [forever - show image](/bniyze) `guided tutorial`
|
|
|
|
* [forever - show animation - two frames 1a](/rwsjmubtaa)
|
|
|
|
* [forever - show animation - two frames 1c](/fomtaxxdkk)
|
|
|
|
* [forever - show animation - two frames 1 d](/huguhgjmmn)
|
|
|
|
* [forever - show animation - multliple frames](/tweyhx)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
## Language {#pconst}
|
|
|
|
|
|
|
|
### Variables
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* [global variables ](/nkecii) `guided tutorial`
|
|
|
|
* [local variable - create image, show image](/dcvnwv)
|
2017-03-16 15:57:41 +01:00
|
|
|
* data types: [number](/types/number), [boolean](/types/boolean), [string](/types/string), [image](/reference/image/image)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### Statements and control structures
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* [if](/reference/logic/if)
|
|
|
|
* [for](/reference/loops/for)
|
|
|
|
* [for loop nested - plot](/vpvhdnaqfm) **script**
|
|
|
|
* [while](/js/while)
|
|
|
|
* [while - show string, show number, show animation](/bidtzqdips) `docs`
|
|
|
|
* [while - create image ](/bnqbom)
|
|
|
|
* [return](/js/return)
|
|
|
|
* [break](/js/break)
|
|
|
|
* [function](/js/function)
|
|
|
|
* [assignment operation](/reference/variables/assign) `:=`
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### Maths
|
|
|
|
|
2017-03-16 15:57:41 +01:00
|
|
|
* arithmetic operators (`+`, `-`, `*`, `/`, mod) on [numbers](/types/number)
|
|
|
|
* comparison operators (such as `>`, `=`) on [numbers](/types/number)
|
2016-04-13 17:27:45 +02:00
|
|
|
* the [math](/js/math) library
|
|
|
|
* the [bits](/js/bits) library
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### Logical
|
|
|
|
|
2017-03-16 15:57:41 +01:00
|
|
|
* boolean operators (`not`, `or`, `and`) on [booleans](/types/boolean)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### Strings
|
|
|
|
|
2017-03-16 15:57:41 +01:00
|
|
|
* concat operator combines [strings](/types/string)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### ~
|
|
|
|
|
|
|
|
### ~column
|
|
|
|
|
|
|
|
### Input
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* [button is pressed](/reference/input/button-is-pressed)
|
|
|
|
* [on button pressed](/reference/input/on-button-pressed)
|
|
|
|
* [acceleration](/reference/input/acceleration)
|
|
|
|
* [compass heading](/reference/input/compass-heading)
|
|
|
|
* [calibrate](/functions/calibrate)
|
|
|
|
* [running time](/reference/input/running-time)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### ~
|
|
|
|
|
|
|
|
### ~column
|
|
|
|
|
|
|
|
### Authoring & Other Bits
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* [TouchDevelop editor](/js/editor)
|
|
|
|
* [markdown](/js/markdown)
|
|
|
|
* [creating interactive tutorials](/js/creatinginteractivetutorials)
|
|
|
|
* [run scripts in a web browser](/js/simulator)
|
2016-11-02 01:44:37 +01:00
|
|
|
* [run scripts on your @boardname@](/usb)
|
2016-04-13 17:27:45 +02:00
|
|
|
* [libraries](/js/libraries)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### Functions and libraries
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* [creating functions](/js/function)
|
|
|
|
* [function parameters](/js/functionparameters)
|
|
|
|
* [calling functions](/js/call)
|
|
|
|
* [libraries](/js/libraries)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### Images
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* [create image](/reference/images/create-image)
|
|
|
|
* [clear](/reference/basic/clear-screen)
|
|
|
|
* [set pixel](/reference/images/set-pixel)
|
|
|
|
* [pixel](/reference/images/pixel)
|
|
|
|
* [show image](/reference/images/show-image)
|
|
|
|
* [scroll image](/reference/images/scroll-image)
|
|
|
|
* [width](/functions/width)
|
|
|
|
* [show animation](/reference/basic/show-animation)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### Pins
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* [analog read pin](/reference/pins/analog-read-pin)
|
|
|
|
* [analog write pin](/reference/pins/analog-write-pin)
|
|
|
|
* [digital read pin](/reference/pins/digital-read-pin)
|
|
|
|
* [digital write pin](/reference/pins/digital-write-pin)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### Accessories
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* [forever](/reference/basic/forever)
|
|
|
|
* [in background](/reference/control/in-background)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
## Tutorials
|
|
|
|
|
|
|
|
* [Blink](/script:hcwxud)
|
|
|
|
* [Button](/script:rxqgzy)
|
|
|
|
* [Compass](/script:fhhhwl)
|
|
|
|
* [Counter](/script:bqrria)
|
|
|
|
* [Digital pet](/script:lsqwsk)
|
|
|
|
* [Flashing heart](/script:bniyze)
|
|
|
|
* [Glowing image](/script:hydyrp)
|
|
|
|
|
|
|
|
### ~
|
|
|
|
|