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
# | |
# Board: ASRock J4105-ITX | |
# Processor: Intel(R) Celeron(R) J4105 | |
# | |
# From Nuvoton NCT6796D Data Sheet: | |
# 8-bit Analog to Digital Converter (ADC). Voltage range 0 - 2.048V, | |
# 8mV LSB (256 steps x 8mV = 2.048V). | |
# | |
# Sample values read by me from UEFI, ASRock A-Tuning and found on YT | |
# and Web reviews: |
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
# | |
# ASRock AM1B-ITX / AM1H-ITX | |
# | |
# From Nuvoton NCT6776D Data Sheet: | |
# - 8-bit Analog to Digital Converter (ADC). Voltage range 0 - 2.048V, | |
# 8mV LSB (256 steps x 8mV = 2.048V). | |
# - Scaling equation: (Value * 8mV * (R1 + R2)) / R2 [1] | |
# (*8 already done by driver) | |
# | |
# From ASRock A-Tuning Utility config file (AM1BITX.xml): |
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
chip "radeon-pci-0008" | |
label temp1 "GPU Temp" | |
chip "fam15h_power-pci-00c4" | |
label power1 "APU Power" | |
chip "k10temp-pci-00c3" | |
label temp1 "CPU Temp" | |
# http://lm-sensors.org/wiki/VoltageLabelsAndScaling |
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 serial | |
from serial.tools import list_ports | |
from gi.repository import Gtk, GObject | |
import widgets | |
ACC_PORT = None | |
for port in serial.tools.list_ports.comports(): | |
p_name, p_desc, p_hw_id = port | |
if p_hw_id != 'n/a': |