pxt-calliope/olddocs/js/guides/touchdevelop-lessons.md
2017-03-16 07:57:41 -07:00

136 lines
3.4 KiB
Markdown

# TouchDevelop Lessons
Overview of TouchDevelop lessons for the @boardname@.
### @section full
### ~column
### LED screen
* [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)
## @boardname@
## functions
### Basic
* [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)
## Language {#pconst}
### Variables
* [global variables ](/nkecii) `guided tutorial`
* [local variable - create image, show image](/dcvnwv)
* data types: [number](/types/number), [boolean](/types/boolean), [string](/types/string), [image](/reference/image/image)
### Statements and control structures
* [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) `:=`
### Maths
* arithmetic operators (`+`, `-`, `*`, `/`, mod) on [numbers](/types/number)
* comparison operators (such as `>`, `=`) on [numbers](/types/number)
* the [math](/js/math) library
* the [bits](/js/bits) library
### Logical
* boolean operators (`not`, `or`, `and`) on [booleans](/types/boolean)
### Strings
* concat operator combines [strings](/types/string)
### ~
### ~column
### Input
* [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)
### ~
### ~column
### Authoring & Other Bits
* [TouchDevelop editor](/js/editor)
* [markdown](/js/markdown)
* [creating interactive tutorials](/js/creatinginteractivetutorials)
* [run scripts in a web browser](/js/simulator)
* [run scripts on your @boardname@](/usb)
* [libraries](/js/libraries)
### Functions and libraries
* [creating functions](/js/function)
* [function parameters](/js/functionparameters)
* [calling functions](/js/call)
* [libraries](/js/libraries)
### Images
* [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)
### Pins
* [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)
### Accessories
* [forever](/reference/basic/forever)
* [in background](/reference/control/in-background)
## 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)
### ~