Plot a sine wave
Prints two waves. Open Tools > Plotter while it runs to watch them.
A starter program from the MantisIDE Full IDE (Tools › Examples). Press Open in Full IDE to run it on your board, change it, and save it as your own.
# Prints two waves. Open Tools > Plotter while it runs to watch them.
import math, time
t = 0
while True:
print("sine:", round(math.sin(t), 3), "cosine:", round(math.cos(t), 3))
t += 0.15
time.sleep_ms(50)
Comments