LUXROBO/pymodi

View on GitHub
examples/basic_usage_examples/dial_example.py

Summary

Maintainability
A
0 mins
Test Coverage
import modi
import time

"""
Example script for the usage of dial module
Make sure you connect 1 dial module and 1 speaker module to your network module
"""

if __name__ == "__main__":
    bundle = modi.MODI()
    dial = bundle.dials[0]
    speak = bundle.speakers[0]

    while True:
        speak.tune = 800, dial.degree
        time.sleep(0.02)