Initialize Git Repository: 'Argon-One-Daemon'
All checks were successful
Argon One Daemon (Bookworm) / Argon One Daemon [arm64] (push) Successful in 12s
Argon One Daemon (Noble) / Argon One Daemon [arm64] (push) Successful in 28s
Argon One Daemon (Trixie) / Argon One Daemon [arm64] (push) Successful in 29s

This commit is contained in:
Cantibra
2026-01-26 06:09:54 +01:00
commit 4631083627
19 changed files with 925 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/python3
import sys
import smbus
import RPi.GPIO as GPIO
rev = GPIO.RPI_REVISION
if rev == 2 or rev == 3:
bus = smbus.SMBus(1)
else:
bus = smbus.SMBus(0)
if len(sys.argv) > 1:
bus.write_byte(0x1A, 0)
if sys.argv[1] == "poweroff" or sys.argv[1] == "halt":
try:
bus.write_byte(0x1A, 0xFF)
except:
rev = 0