@@ -0,0 +1,480 @@
+#!/usr/bin/env python%0Afrom linux_metrics import cpu_stat%0Aimport serial%0Aimport time%0A%0Aport = serial.Serial('/dev/ttyACM0', 9600)%0Aimport signal%0Aimport sys%0Adef signal_handler(signal, frame):%0A        port.write(%5B0%5D)%0A        sys.exit(0)%0Asignal.signal(signal.SIGINT, signal_handler)%0Awhile True:%0A    idle = cpu_stat.cpu_percents()%0A    idle = idle%5B'idle'%5D/100%0A    val = 255 * (1-idle)%0A    val = int(str(val).split('.')%5B0%5D)%0A    print(val)%0A    port.write(bytes(%5Bval%5D))%0A%0A    time.sleep(0.25)%0A

Create CPULinux.py