Changes

Jump to navigation Jump to search
New page: <noinclude>{{Translations | english | español |}}</noinclude> <noinclude>{{ GoogleTrans-en | es =show | bg =show | zh...
<noinclude>{{Translations | [[Activities/Turtle Art|english]] &#124; [[Activities/Turtle Art/lang-es|español]] &#124;}}</noinclude>
<noinclude>{{ GoogleTrans-en | es =show | bg =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | fi =show | fr =show | de =show | el =show | hi =show | it =show | ja =show | ko =show | no =show | pl =show | pt =show | ro =show | ru =show | sv =show }}</noinclude>

===The Sensors Palette (red)===

====examples (4)====
[[Image:TA-kbexample.png]]

[[Image:TA-myfunc-example.png]] [[Image:TA-status-zero.png]]

====descriptions (4)====
{|
|-
|[[Image:TA-querykb.svg]]||query for keyboard input||results stored in keyboard block
|-
|[[Image:TA-keyboard.svg]]||keyboard input||holds results of query-keyboard block
|-
|[[Image:TA-myfunc.png]]||my function||a programmable block: add your own math equation in the block, e.g., sin(x)
|-
|[[Image:TA-hres.svg]]||horizontal size||the canvas width
|-
|[[Image:TA-vres.svg]]||vertical size||the canvas height
|-.
|[[Image:TA-push.svg]]||push|| push value onto FILO (first-in last-out) heap
|-.
|[[Image:TA-pop.svg]]||pop|| pop value off FILO
|-.
|[[Image:TA-showheap.svg]]||show heap|| show FILO in status block at bottom of canvas
|-.
|[[Image:TA-emptyheap.svg]]||empty heap|| empty FILO
|}

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-pitch.svg]]|| pitch || microphone input pitch
|-
|[[Image:TA-voltage.svg]]|| voltage || (OLPC XO-1 only)
|-
|[[Image:TA-resistance.svg]]|| resistance || (OLPC XO-1 only)
|}

More details on how to use the sensors can be found in [http://tonyforster.blogspot.com/2009/03/data-logging-with-olpc.html Tony Forster's blog] and on the [http://wiki.laptop.org/go/Measure Measure] Activity page.

Navigation menu