예제 #1
0
# In[3]:

# Initialize mutivibrator in MODE 1

m = Multivibrator(0, mode=1, time_period=1)
m.start()
m.setOutput(out)


# In[4]:

# Initialize the oscilloscope
o = Oscilloscope((out, 'OUT'))
o.start()
o.set_scale(0.005)  # Set scale by trial and error.
o.set_width(100)
o.unhold()
time.sleep(0.1)
m.trigger()  # Also works with m()
time.sleep(0.1)


# In[5]:

# Display the oscilloscope
o.display()


# In[6]:

# Kill the multivibrator and the oscilloscope threads