GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Wa-He/USB_Relay8: Simple Python Class to control www.dcttech.com 8 Channel USB Relay

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
Class_USB_Relay.py
Class_USB_Relay.py
 
 
README.md
README.md
 
 

Repository files navigation

USB Relay

Simple example class to control dcttech.com USB Relay.

example code / how to use:

Create the object and start the device. starting is not required but makes sure that all channels are reset

USBRelay8 = USBRelay8() 
USBRelay8.start_device()

status bytes carry information of the name and currently active channels (last byte)

received_data = USBRelay8.get_status()

opening all 8 channels at once

USBRelay8.open_all_channells()

closes single relay channel by number, e.g. channel 2

USBRelay8.close_channel(2)

check status of single channel, e.g. channel 3

print(USBRelay8.channel3)

check status of all channels as dictionary

channel_status_dict = USBRelay8.get_channel_status()

closes all channels

USBRelay8.close_all_channels()  

About

Simple Python Class to control www.dcttech.com 8 Channel USB Relay

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.