Add signal number to example send_signal (#379)

This commit is contained in:
pycommatthew
2021-02-26 13:03:44 +00:00
committed by GitHub
parent f71733e9be
commit 25094d29c9

View File

@@ -22,7 +22,7 @@ In this section, we will explain how to create widgets for data visualisation an
# Send data continuously to Pybytes
while True:
for i in range(0,20):
pybytes.send_signal(math.sin(i/10*math.pi))
pybytes.send_signal(1, math.sin(i/10*math.pi))
print('sent signal {}'.format(i))
time.sleep(10)
```