0 Members and 1 Guest are viewing this topic.
#include <T6963.h>#include <T6963_Commands.h>#define CLK 13#define DAT 12T6963 lcd(240,128,6);void setup() { lcd.Initialize(); lcd.clearCG(); // Clear character generator area lcd.clearGraphic(); // Clear graphic area lcd.clearText(); pinMode(CLK,INPUT); pinMode(DAT,INPUT);}void loop() { for (byte y = 0; y < 128; y +=2){ for (byte x = 0; x < 192; x+=2){ while (!digitalRead(CLK)); int c = digitalRead(DAT); lcd.setPixel(x,y,c); lcd.setPixel(x+1,y,c); lcd.setPixel(x+1,y+1,c); lcd.setPixel(x,y+1,c); while (digitalRead(CLK)); delayMicroseconds(1); //Needed for a stable connection, you could also use some asm("nop"); } }}
StoreGDBFnOffFor(Y,0,63)For(X,0,95)pxlTest(X,Y)?0,1->portFor(200):End3->portFor(200):EndEndIf getKey(15)EndIf getKey(15)LnReg
StoreGDBFnOffFor(I,L6,L6+767){I}->BFor(8)B . 128?0,1 //bitwise and b1000000 to get the MSB->portFor(whatever):End3->portB*2->B //shift leftFor(whatever):EndEndEndIf getKey(15)LnReg
Using direct buffer reads will at least make this 8 times faster if not 16 times
Now try to use a color screen