cat /sys/class/thermal/thermal_zone0/temp
# make the first PWM device available
echo 0 > /sys/class/pwm/pwmchip1/export
# define what a full period is
echo 10000 > /sys/class/pwm/pwmchip1/pwm0/period
# set how much of this period should be in the "ON" state (75%)
echo 7500 > /sys/class/pwm/pwmchip1/pwm0/duty_cycle
# enable the PWM output
echo 1 > /sys/class/pwm/pwmchip1/pwm0/enable