Skip to main content

Control LEDs with Python

Project description

Led控制

介绍

通过简单的命令对linux的LED进行控制,包括开灯和关灯。脚本通过Python实现

如何使用

  1. 首先需要安装led工具包,在终端中输入以下命令:
    pip install led_ctl
    
  2. 在终端中使用led命令
    • 获取LED列表:
      led list
      
    • 获取LED状态:
      led get <led_name>
      
    • 设置LED状态(开灯或关灯):
      led set <led_name> on|off
      
    • 通过Web控制LED:

      执行这个命令后会启动一个web服务器,默认为http://IP:8082,可以通过--host--port参数指定端口和IP地址。

      led web [--host <host>] [--port <port>]
      

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

led_ctl-1.0.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

led_ctl-1.0.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file led_ctl-1.0.0.tar.gz.

File metadata

  • Download URL: led_ctl-1.0.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.10

File hashes

Hashes for led_ctl-1.0.0.tar.gz
Algorithm Hash digest
SHA256 70b2a21f1f0dba7aba3874a22dfd4d46d3fb49e9308b92a5b9098ce763a8f26f
MD5 cd920ed5d6fd858078e81f283a88e277
BLAKE2b-256 1957e1df6911656ba42e67dade0bc6f0cdc7d0d8fe5f388ce0f7c674c9819133

See more details on using hashes here.

File details

Details for the file led_ctl-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: led_ctl-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.10

File hashes

Hashes for led_ctl-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 765693b6200f6979e096ce81706d41136be80f9e3a7144562cddd9a253395c6a
MD5 e256a21564b59090b7fa7524cce83cb0
BLAKE2b-256 3b405acfcc487c964dabcbec1ea601497e4bf13c046d47152273f106fbfe5093

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page