mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-20 18:03:46 +08:00
e01ac7f80f
date: 2026-08-19T09:43:43
master commit: ba29a38507
15 lines
263 B
Python
Executable File
15 lines
263 B
Python
Executable File
#!/usr/bin/env python
|
|
import time
|
|
|
|
from panda import Panda
|
|
|
|
if __name__ == "__main__":
|
|
p = Panda()
|
|
power = 0
|
|
while True:
|
|
p.set_fan_power(power)
|
|
time.sleep(5)
|
|
print("Power: ", power, "RPM:", str(p.get_fan_rpm()))
|
|
power += 10
|
|
power %= 110
|