Activities/Turtle Art/Sensors

From Sugar Labs

Jump to: navigation, search
english | español | HowTo [ID# 59802] 


The Sensors Palette (red)

THIS INFOMATION IS OUT OF DATE, SEE Activities/Turtle_Art#Sensors_Palette

examples (4)

TA-kbexample.png

TA-myfunc-example.png TA-status-zero.png

descriptions (4)

TA-querykb.svgquery for keyboard inputresults stored in keyboard block
TA-keyboard.svgkeyboard inputholds results of query-keyboard block
TAMyblock.svg user-definable code This block runs code found in the tamyblock.py module found in the Journal and editable in Pippy. Use the load Pippy button TAPippyButton.svg on the Save/Load toolbar to load your custom module. The block changes appearance once Python code is loaded. TA-python-code-loaded.svg
TA-myfunc.pngmy functiona programmable block: add your own math equation in the block, e.g., sin(x)
TA-hres.svghorizontal sizethe canvas width
TA-vres.svgvertical sizethe canvas height
TA-push.svgpush push value onto FILO (first-in last-out) heap
TA-pop.svgpop pop value off FILO
TA-showheap.svgshow heap show FILO in status block at bottom of canvas
TA-emptyheap.svgempty heap empty FILO

These additional blocks are available in the experimental version of Turtle Art

TA-volume.svg volume microphone input volume
TA-pitch.svg pitch microphone input pitch
TA-voltage.svg voltage (OLPC XO-1 only)
TA-resistance.svg resistance (OLPC XO-1 only)

More details on how to use the sensors can be found in Tony Forster's blog and on the Measure Activity page.

Personal tools
Namespaces
Variants
Actions
Sugar
Projects
Teams
Local Labs
Using the Wiki
Google translations