Skip to content

Commit

Permalink
E-Paper Driver HAT: Removed setPixel with color
Browse files Browse the repository at this point in the history
  • Loading branch information
leinardi committed Jan 20, 2018
1 parent 76caad6 commit 10e87ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

package com.leinardi.android.things.driver.epaperdriverhat;

import android.graphics.Color;

import java.io.IOException;
import java.util.Arrays;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 10e87ce

Please sign in to comment.