mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 22:22:11 +08:00
script to do voltage sweep
old-commit-hash: a1fb21e066b92d3276e8fd94d80c9922b2bdcb36
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import time
|
||||
|
||||
os.system("echo 1 > /sys/kernel/debug/regulator/pm8994_s11/enable")
|
||||
|
||||
for i in range(900000, 465000, -10000):
|
||||
print("setting voltage to",i)
|
||||
os.system("echo %d %d > /sys/kernel/debug/regulator/pm8994_s11/voltage" % (i,i))
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user