hdd led stuff
This commit is contained in:
parent
4d900904e4
commit
abd9c45a33
2 changed files with 15 additions and 0 deletions
|
@ -4,6 +4,10 @@
|
|||
#include <unistd.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) {
|
||||
if (src == NULL) {
|
||||
return NULL;
|
||||
|
|
11
libpandory.h
11
libpandory.h
|
@ -1,5 +1,16 @@
|
|||
#ifndef LIBPANDORY_H
|
||||
#define LIBPANDORY_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"{
|
||||
#endif
|
||||
|
||||
extern void libpandory_lefcheck(void);
|
||||
extern void libpandory_hddled(void);
|
||||
char *libpandory_rot13(const char *src);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // LIBPANDORY_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue