diff --git a/driver-epaperdriverhat/src/main/java/com/leinardi/android/things/driver/epaperdriverhat/Epd.java b/driver-epaperdriverhat/src/main/java/com/leinardi/android/things/driver/epaperdriverhat/Epd.java index 5b155d8..6f7223b 100644 --- a/driver-epaperdriverhat/src/main/java/com/leinardi/android/things/driver/epaperdriverhat/Epd.java +++ b/driver-epaperdriverhat/src/main/java/com/leinardi/android/things/driver/epaperdriverhat/Epd.java @@ -149,16 +149,6 @@ public void reset() throws IOException { */ public abstract void clearPixels(); - /** - * Sets a specific pixel in the display buffer to on or off. This will be rendered the next time - * {@link #show()} is called. - * - * @param x The horizontal coordinate. - * @param y The vertical coordinate. - * @param color Color of the pixel. - */ - public abstract void setPixel(int x, int y, Color color) throws IllegalArgumentException; - /** * Sets a specific pixel in the display buffer to on or off. This will be rendered the next time * {@link #show()} is called. diff --git a/driver-epaperdriverhat/src/main/java/com/leinardi/android/things/driver/epaperdriverhat/Gdew075t8Epd.java b/driver-epaperdriverhat/src/main/java/com/leinardi/android/things/driver/epaperdriverhat/Gdew075t8Epd.java index ba716ce..7b3fbdf 100644 --- a/driver-epaperdriverhat/src/main/java/com/leinardi/android/things/driver/epaperdriverhat/Gdew075t8Epd.java +++ b/driver-epaperdriverhat/src/main/java/com/leinardi/android/things/driver/epaperdriverhat/Gdew075t8Epd.java @@ -16,8 +16,6 @@ package com.leinardi.android.things.driver.epaperdriverhat; -import android.graphics.Color; - import java.io.IOException; import java.util.Arrays; @@ -153,10 +151,6 @@ public void clearPixels() { } @Override - public void setPixel(int x, int y, Color color) throws IllegalArgumentException { - setPixel(x, y, !color.equals(Color.valueOf(Color.WHITE))); - } - public void setPixel(int x, int y, boolean on) throws IllegalArgumentException { if (x < 0 || y < 0 || x >= getDisplayWidth() || y >= getDisplayHeight()) { throw new IllegalArgumentException("pixel out of bound:" + x + "," + y);