MantisIDE

Plot a sine wave

Guide by MantisIDE Team · Fri Nov 27 2026 · 0 points · 0 comments

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)
Loading post…

Dialog