Cleaned up a few things before publishing
This commit is contained in:
parent
2ebfc20537
commit
69ca29e700
@ -7,18 +7,7 @@ from drawing import draw_cpu, draw_memory, draw_battery, draw_borders_left, draw
|
||||
from monitors import CPUMonitor, MemoryMonitor, BatteryMonitor, DiskMonitor, NetworkMonitor, get_monitor_brightness
|
||||
|
||||
# External Dependencies
|
||||
try:
|
||||
# These are used in later scripts, but imported here to test if missing
|
||||
import serial # pyserial
|
||||
from serial.tools import list_ports
|
||||
import numpy as np
|
||||
except ImportError:
|
||||
import pip
|
||||
for dependency in ["numpy", "pyserial"]:
|
||||
pip.main(['install', '--user', dependency])
|
||||
import numpy as np
|
||||
|
||||
# print(sbc.get_brightness())
|
||||
import numpy as np
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Binary file not shown.
3
run.bat
Normal file
3
run.bat
Normal file
@ -0,0 +1,3 @@
|
||||
py -3 -m pip install pyserial numpy
|
||||
|
||||
py -3 led_system_monitor.py
|
Loading…
Reference in New Issue
Block a user