mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 05:06:35 +01:00
Add signal number to example send_signal (#379)
This commit is contained in:
@@ -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)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user