hdd led stuff

This commit is contained in:
dajoho 2023-12-20 11:21:41 +01:00
parent 4d900904e4
commit abd9c45a33
2 changed files with 15 additions and 0 deletions

View file

@ -4,6 +4,10 @@
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
void libpandory_hddled(void) {
system("(echo 1 > /sys/class/gpio_sw/PL7/data; sleep 0.1; echo 0 > /sys/class/gpio_sw/PL7/data) &");
}
char *libpandory_rot13(const char *src) { char *libpandory_rot13(const char *src) {
if (src == NULL) { if (src == NULL) {
return NULL; return NULL;

View file

@ -1,5 +1,16 @@
#ifndef LIBPANDORY_H #ifndef LIBPANDORY_H
#define LIBPANDORY_H #define LIBPANDORY_H
#ifdef __cplusplus
extern "C"{
#endif
extern void libpandory_lefcheck(void); extern void libpandory_lefcheck(void);
extern void libpandory_hddled(void);
char *libpandory_rot13(const char *src); char *libpandory_rot13(const char *src);
#ifdef __cplusplus
}
#endif
#endif // LIBPANDORY_H #endif // LIBPANDORY_H