I had to update the pin's but is this right as its still not working..
Code: Select all
#include <Adafruit_GFX.h>
#include <Adafruit_SharpMem.h>
// any pins can be used
#define SHARP_SCK 13
#define SHARP_MOSI 11
#define SHARP_SS 10
Adafruit_SharpMem display(SHARP_SCK, SHARP_MOSI, SHARP_SS);
#define BLACK 0
#define WHITE 1
void setup(void)
{
Serial.begin(9600);
Serial.println("Hello!");
// start & clear the display
display.begin();
display.clearDisplay();
// draw a single pixel
display.drawPixel(10, 10, BLACK);
display.refresh();
delay(500);
display.clearDisplay();
// draw many lines
testdrawline();
delay(500);
display.clearDisplay();
..........
}