Activities/Turtle Art/Using Turtle Art Sensors: Difference between revisions

Tonyforster (talk | contribs)
Tonyforster (talk | contribs)
Line 517: Line 517:
The following code is now a built in sample, <i>sinewave.py</i>. If typing it in, the indents are important. Click on the Python block to load the code.
The following code is now a built in sample, <i>sinewave.py</i>. If typing it in, the indents are important. Click on the Python block to load the code.


[[File:2tone python.jpg]]
def myblock(lc, x):
    import os
    os.system('speaker-test -t sine -l 1 -f %d' % (int(x)))
 


[[File:Fsk send.jpg]]
[[File:Fsk send.jpg]]