Skip to content

Commit

Permalink
repurpose ntx epd driver for crema 1010p (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
pazos authored and Frenzie committed Jul 5, 2019
1 parent fe0061e commit ca6b200
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions launcher/src/org/koreader/device/DeviceInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public enum EinkDevice {
BOYUE_T80D,
BOYUE_T78D,
BOYUE_T103D,
CREMA,
ONYX_C67,
ENERGY,
INKBOOK,
Expand All @@ -44,6 +45,7 @@ public enum EinkDevice {
public static final boolean BOYUE_T80D;
public static final boolean BOYUE_T78D;
public static final boolean BOYUE_T103D;
public static final boolean CREMA;
public static final boolean ONYX_C67;
public static final boolean ENERGY;
public static final boolean INKBOOK;
Expand Down Expand Up @@ -100,6 +102,11 @@ public enum EinkDevice {
&& PRODUCT.toLowerCase().contentEquals("t103d");
deviceMap.put(EinkDevice.BOYUE_T103D, BOYUE_T103D);

// Crema Note (1010P)
CREMA = BRAND.toLowerCase().contentEquals("crema")
&& PRODUCT.toLowerCase().contentEquals("note");
deviceMap.put(EinkDevice.CREMA, CREMA);

// Onyx C67
ONYX_C67 = MANUFACTURER.toLowerCase().contentEquals("onyx")
&& ( PRODUCT.toLowerCase().startsWith("c67") || MODEL.contentEquals("rk30sdk") )
Expand Down Expand Up @@ -137,6 +144,7 @@ public enum EinkDevice {

// freescale epd driver
EINK_FREESCALE = (
CREMA ||
TOLINO ||
NOOK_V520
);
Expand All @@ -161,6 +169,7 @@ public enum EinkDevice {

// full support
EINK_FULL_SUPPORT = (
CREMA ||
TOLINO
);

Expand Down
1 change: 1 addition & 0 deletions launcher/src/org/koreader/device/EPDFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public static EPDController getEPDController(final String tag) {
break;

/** devices using imx/ntx platform */
case CREMA:
case TOLINO:
case NOOK_V520:
controllerName = "Freescale NTX";
Expand Down

0 comments on commit ca6b200

Please sign in to comment.