mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 05:22:03 +08:00
6adb63b915
date: 2026-06-04T09:49:56 master commit: c0ab3550eca2e9daf197c46b7e4b24aa9637cf2e
15 lines
236 B
Python
Executable File
15 lines
236 B
Python
Executable File
#!/usr/bin/env python3
|
|
import time
|
|
|
|
from panda import Panda
|
|
|
|
power = 0
|
|
if __name__ == "__main__":
|
|
p = Panda()
|
|
while True:
|
|
p.set_ir_power(power)
|
|
print("Power: ", str(power))
|
|
time.sleep(1)
|
|
power += 10
|
|
power %= 100
|