![]() |
![]() |
![]() |
|||||||
![]() |
|||||||||
|
![]() |
||||||||
![]() |
|||||||||
|
Inhaltsverzeichnis(ACM-SPI) Python / BeispieleSPI-SS schalten (Break)#!/usr/bin/env python import serial import time ser = serial.Serial('/dev/ttyACM0') while True: ser.setBreak(True) ser.write('123') ser.setBreak(False) time.sleep(0.5) ser.close() IO-Pin schalten (DTR)#!/usr/bin/env python import serial import time ser = serial.Serial('/dev/ttyACM0') while True: ser.setDTR(True) time.sleep(0.5) ser.setDTR(False) time.sleep(0.5) ser.close() |
||||||||
![]() |
|||||||||
![]() |
|
|
![]() |
||||||
![]() |
Copyright 2021, e-design / Alexander Krause |