This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| ## | |
| ## Interfacing with the MCP2200 GPIO via USB HID. Plays with the first four GPIO ports. | |
| ## | |
| ## Used for controlling 4 port USB relay board from Denkovi. | |
| ## | |
| import usb.core | |
| import usb.util | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Quick and dirty serial logger. Logs data received from a serial port. | |
| ## Port and baud rate selection | |
| monitorPort = 'COM29' | |
| monitorBaud = 115200 | |
| ## | |
| import serial | |
| import time | |
| import signal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Automation relay switcher server | |
| ## Allows control of MCP2200 based four port relay board via a websocket. Also interfaces with two pins | |
| ## on the NanoPi GPIO to read the state of two buttons using only two wires. | |
| ## Address to listen on. Set to 0.0.0.0 for all | |
| listenAddress = '0.0.0.0' | |
| ## Port to listen on | |
| listenPort = 8000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Site ping check tool ## | |
| ## | |
| ## Originally developed and tested on Win10 with Python 2.7. Updates made with | |
| ## Python 3.7, but should still work on Python 2.x provided the Tk install | |
| ## isn't ancient. | |
| ## | |
| ## Reads one or more files containing details of sites to ping, pings them at | |
| ## the defined frequency, and displays the result in a GUI. | |
| ## | |
| ## Within the host files, the last word on each line is considered to be the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| ## which serial port the MPP Solar inverter is connected to | |
| serial_port = '/dev/ttyS0' | |
| ### | |
| import serial ## provided by 'pyserial' from pip | |
| import crc16 ## provided by 'crc16' from pip | |
| import sys ## inbuilt library |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Gets VPOS serials not owned by the current account. Copy in your auth | |
| ## parameters for an existing valid session below. | |
| ## Nayax preset ID | |
| preset_id = '' | |
| ## Auth cookie value | |
| auth_cookie = '' | |
| ## RVC cookie value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import socket | |
| import threading | |
| import re | |
| class FoxHunter(threading.Thread): | |
| def __init__(self): | |
| threading.Thread.__init__(self) | |
| self.name = 'thread_FoxHunter' | |
| self.units = [] | |
| self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <WiFi.h> | |
| #include <Preferences.h> | |
| #include <esp_task_wdt.h> | |
| #define CMDPROMPT "ESP32> " | |
| #define TIMEOUT 10000 | |
| // cmd line vars | |
| char cmdBuffer[32]; | |
| int cmdBufferPosition = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries | |
| # SPDX-License-Identifier: MIT | |
| """ | |
| This test will initialize the display using displayio and draw a solid green | |
| background, a smaller purple rectangle, and some yellow text. | |
| """ | |
| import board | |
| import terminalio |
OlderNewer