Skip to content

Commit fab18e2

Browse files
Removed redundant .attach_device(ard)
1 parent 44410b4 commit fab18e2

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

Arduino_PyQt_demo_with_multithreading.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,7 @@ def DAQ_function():
460460
# --------------------------------------------------------------------------
461461

462462
# Create QDeviceIO
463-
qdev_ard = DvG_QDeviceIO.QDeviceIO()
464-
qdev_ard.attach_device(ard)
463+
qdev_ard = DvG_QDeviceIO.QDeviceIO(ard)
465464

466465
# Create workers
467466
# fmt: off

Arduino_PyQt_demo_with_multithreading__LARGE_TEXT.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,7 @@ def my_Arduino_DAQ_update():
490490
# --------------------------------------------------------------------------
491491

492492
# Create QDeviceIO
493-
qdev_ard = DvG_QDeviceIO.QDeviceIO()
494-
qdev_ard.attach_device(ard)
493+
qdev_ard = DvG_QDeviceIO.QDeviceIO(ard)
495494

496495
# Create workers
497496
# fmt: off

Arduino_PyQt_demo_with_multithreading__minimalistic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ def my_Arduino_DAQ_update():
211211
# --------------------------------------------------------------------------
212212

213213
# Create QDeviceIO
214-
qdev_ard = DvG_QDeviceIO.QDeviceIO()
215-
qdev_ard.attach_device(ard)
214+
qdev_ard = DvG_QDeviceIO.QDeviceIO(ard)
216215

217216
# Create workers
218217
# fmt: off

cpp_Arduino_wave_generator/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
; Please visit documentation for the other options and examples
99
; https://docs.platformio.org/page/projectconf.html
1010
[platformio]
11-
env_default = adafruit_itsybitsy_m4
11+
env_default = adafruit_feather_m4
1212

1313
[env:mzeropro]
1414
platform = atmelsam

0 commit comments

Comments
 (0)