EVERYTHING FROM THE OTHER REPO

This commit is contained in:
2026-07-29 03:36:26 +03:00
parent 6777ea96db
commit 92a6ae42f5
4426 changed files with 1696506 additions and 2 deletions
+27
View File
@@ -0,0 +1,27 @@
#include "../../include/dev/fan_pwm.h"
#include <stdio.h>
#define FAN_DEVICE "/sys/devices/platform/pwm-fan.6/hwmon/hwmon5/pwm1"
void set_fanPWM(int pwm){
if (pwm > 255) {
pwm = 255;
} else if (pwm < 100) {
pwm = 100;
}
FILE *fan_file = fopen(FAN_DEVICE, "w");
if (fan_file != NULL){
fprintf(fan_file, "%d", pwm);
fclose(fan_file);
}
}
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
#include "../include/dev/fan_pwm.h"
#include "../include/troposphere_lib.h"
#include <stdlib.h>
const Troposphere_API troposphere_api = {
.setFanSpeed = set_fanPWM,
};
Binary file not shown.