Skip to content

Commit

Permalink
And also wire in the new WFM in the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe committed Jan 6, 2025
1 parent 9a4869e commit c445691
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@

Note for Cervantes: as well as `GC4`, `REAGL` & `REAGLD`.

Note for Kindle: as well as `REAGL`, `REAGLD`, `GC16_FAST`, `GL16_FAST`, `DU4`, `GL4`, `GL16_INV`, `GCK16`, `GLKW16` & `DUNM` on some Kindles, depending on the model & FW version. Note that specifying a waveform mode is ignored on legacy einkfb devices, because the hardware doesn't expose such capabilities.
Note for Kindle: as well as `REAGL`, `REAGLD`, `GC16_FAST`, `GL16_FAST`, `DU4`, `GL4`, `GL16_INV`, `GCK16`, `GLKW16`, `DUNM`, `GCC16`, `GLRC16`, `GCCK16` & `GLRCK16` on some Kindles, depending on the model & FW version. Note that specifying a waveform mode is ignored on legacy einkfb devices, because the hardware doesn't expose such capabilities.

Note for PocketBook: as well as `GC4`, `A2IN`, `A2OUT`, `DU4`, `REAGL`, `REAGLD`, `GC16HQ` & `GS16`.

Expand Down
14 changes: 14 additions & 0 deletions fbink.c
Original file line number Diff line number Diff line change
Expand Up @@ -9535,6 +9535,20 @@ static __attribute__((cold)) const char*
return "GC4L";
case WFM_GCC16:
return "GCC16";
case WFM_GLRC16:
return "GLRC16";
case WFM_GC16_PARTIAL:
return "GC16_PARTIAL";
case WFM_GCK16_PARTIAL:
return "GCK16_PARTIAL";
case WFM_DUNM:
return "DUNM";
case WFM_P2SW:
return "P2SW";
case WFM_GCCK16:
return "GCCK16";
case WFM_GLRCK16:
return "GLRCK16";
default:
return "Unknown";
}
Expand Down
6 changes: 5 additions & 1 deletion fbink_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static void
"\t-W, --waveform MODE\tRequest a specific waveform update mode from the eInk controller, if supported (mainly useful for images).\n"
"\t\t\t\tAvailable waveform modes: A2, DU, GL16, GC16 & AUTO\n"
# if defined(FBINK_FOR_KINDLE)
"\t\t\t\tAs well as REAGL, REAGLD, GC16_FAST, GL16_FAST, DU4, GL4, GL16_INV, GCK16, GLKW16 & DUNM on some Kindles, depending on the model & FW version.\n"
"\t\t\t\tAs well as REAGL, REAGLD, GC16_FAST, GL16_FAST, DU4, GL4, GL16_INV, GCK16, GLKW16, DUNM, GCC16, GLRC16, GCCK16 & GLRCK16 on some Kindles, depending on the model & FW version.\n"
"\t\t\t\tNote that specifying a waveform mode is ignored on legacy einkfb devices, because the hardware doesn't expose such capabilities.\n"
# elif defined(FBINK_FOR_POCKETBOOK)
"\t\t\t\tAs well as GC4, A2IN, A2OUT, DU4, REAGL, REAGLD, GC16HQ & GS16.\n"
Expand Down Expand Up @@ -1760,6 +1760,10 @@ int
fbink_cfg.wfm_mode = WFM_GLRC16;
} else if (strcasecmp(optarg, "DUNM") == 0) {
fbink_cfg.wfm_mode = WFM_DUNM;
} else if (strcasecmp(optarg, "GCCK16") == 0) {
fbink_cfg.wfm_mode = WFM_GCCK16;
} else if (strcasecmp(optarg, "GLRCK16") == 0) {
fbink_cfg.wfm_mode = WFM_GLRCK16;
} else {
ELOG("Unknown waveform update mode '%s'.", optarg);
errfnd = true;
Expand Down

0 comments on commit c445691

Please sign in to comment.