This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
while true; do | |
temp=$(sudo ec_probe read 0x70 | awk '{print $1}') | |
high_byte=$(sudo ec_probe read 0x35 | awk '{print $1}') | |
low_byte=$(sudo ec_probe read 0x36 | awk '{print $1}') | |
fan1=$((high_byte * 256 + low_byte)) | |
high_byte=$(sudo ec_probe read 0x37 | awk '{print $1}') | |
low_byte=$(sudo ec_probe read 0x38 | awk '{print $1}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import usb.core | |
import usb.util | |
import array | |
import time | |
import random | |
import math | |
import webcolors | |
import random | |
from collections import OrderedDict, namedtuple | |
from sys import exit |