Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
88 additions
and 67 deletions.
- +1 −1 Makefile
- +3 −0 extra/nightmode.ini
- BIN installer/KoboRoot.tgz
- +3 −0 installer/mnt/onboard/.kobo/nightmode.ini
- BIN installer/root/screenInv.so
- BIN kobo-nightmode_build7.zip
- BIN kobo-nightmode_build8.zip
- +64 −66 src/screenInv.c
- +17 −0 src/screenInv.h
- BIN src/screenInv.so
- BIN uninstaller/KoboRoot.tgz
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -3,4 +3,4 @@ all: | ||
| $(MAKE) -C installer | ||
| $(MAKE) -C uninstaller | ||
| rm -f kobo-nightmode_build*.zip | ||
| zip -qr kobo-nightmode_build8.zip installer/KoboRoot.tgz uninstaller/KoboRoot.tgz extra | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,17 @@ | ||
| //Configuration | ||
| #define SI_CONTROL_PIPE "/tmp/invertScreen" | ||
| #define SI_CONFIG_FILE "/mnt/onboard/.kobo/nightmode.ini" | ||
| #define SI_DEBUG_LOGPATH "/mnt/onboard/.kobo/screenInvertLog" | ||
| #define SI_AREA_THRESHOLD 60 //percent | ||
|
|
||
| //for logging, compile with "make debug" | ||
| #ifdef SI_DEBUG | ||
| #define DEBUGPRINT(_fmt, ...) \ | ||
| do { \ | ||
| FILE *logFP = fopen(SI_DEBUG_LOGPATH, "a"); \ | ||
| fprintf(logFP, _fmt, ##__VA_ARGS__); \ | ||
| fclose(logFP); \ | ||
| } while (0) | ||
| #else | ||
| #define DEBUGPRINT(_fmt, ...) /**/ | ||
| #endif |
Binary file not shown.
Binary file not shown.