EVERYTHING FROM THE OTHER REPO
This commit is contained in:
Executable
+1
@@ -0,0 +1 @@
|
||||
arm-none-linux-gnueabihf-gcc -Iinclude change_fan_speed.c -Llib -ltroposphere -o change_fan_speed
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,17 @@
|
||||
#include <stdio.h>
|
||||
#include "include/troposphere_lib.h"
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int pwm;
|
||||
printf("Jibo fan speed set example\n");
|
||||
|
||||
scanf("%d", &pwm);
|
||||
printf("Setting jibos fan speed to pwm: %d\n", pwm );
|
||||
|
||||
troposphere_api.setFanSpeed(pwm);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
just an example app that runs in the terminal and changes jibos fan speed to intiger
|
||||
|
||||
pwm fan speed is capped inbetween 100-255 & if running be skill be aware that every time you go back to the eye it resets to 255
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef TROPOSHPERE_API_H
|
||||
#define TROPOSHPERE_API_H
|
||||
|
||||
typedef struct{
|
||||
|
||||
|
||||
void (*setFanSpeed)(int pwm);
|
||||
|
||||
|
||||
} Troposphere_API;
|
||||
|
||||
extern const Troposphere_API troposphere_api;
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Executable
BIN
Binary file not shown.
Reference in New Issue
Block a user