Difference between revisions of "Activities/Turtle Art/Sensors"

From Sugar Labs
Jump to navigation Jump to search
(New page: <noinclude>{{Translations | english | español |}}</noinclude> <noinclude>{{ GoogleTrans-en | es =show | bg =show | zh...)
 
Line 15: Line 15:
 
|-
 
|-
 
|[[Image:TA-keyboard.svg]]||keyboard input||holds results of query-keyboard block
 
|[[Image:TA-keyboard.svg]]||keyboard input||holds results of query-keyboard block
 +
|-
 +
|[[Image:TAMyblock.svg]]|| [[#Programmable Brick|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 on the Save/Load toolbar to load your custom module.
 
|-
 
|-
 
|[[Image:TA-myfunc.png]]||my function||a programmable block: add your own math equation in the block, e.g., sin(x)
 
|[[Image:TA-myfunc.png]]||my function||a programmable block: add your own math equation in the block, e.g., sin(x)
Line 33: Line 35:
 
These additional blocks are available in the [[Activities/TAExperimental|experimental version of Turtle Art]]
 
These additional blocks are available in the [[Activities/TAExperimental|experimental version of Turtle Art]]
 
{|
 
{|
|-
 
|[[Image:TAMyblock.svg]]|| [[#Programmable Brick|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 on the Save/Load toolbar to load your custom module.
 
 
|-
 
|-
 
|[[Image:TA-volume.svg]]|| volume || microphone input volume
 
|[[Image:TA-volume.svg]]|| volume || microphone input volume

Revision as of 08:36, 21 March 2009

english | español | HowTo [ID# 23301] 


The Sensors Palette (red)

examples (4)

TA-kbexample.png

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

descriptions (4)

TA-querykb.svg query for keyboard input results stored in keyboard block
TA-keyboard.svg keyboard input holds 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 on the Save/Load toolbar to load your custom module.
TA-myfunc.png my function a programmable block: add your own math equation in the block, e.g., sin(x)
TA-hres.svg horizontal size the canvas width
TA-vres.svg vertical size the canvas height
TA-push.svg push push value onto FILO (first-in last-out) heap
TA-pop.svg pop pop value off FILO
TA-showheap.svg show heap show FILO in status block at bottom of canvas
TA-emptyheap.svg empty 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.