Sat Aug 20, 2016 4:26 pm
#include <SPI.h>
#include <Gamebuino.h>
Gamebuino gb;
void setup(void) {
gb.begin();
gb.display.setColor(BLACK);
gb.display.fillRect(0,0,84,48);
gb.display.update();
noInterrupts();
}
void loop(void) {
gb.display.command(PCD8544_FUNCTIONSET | PCD8544_EXTENDEDINSTRUCTION);
gb.display.command(PCD8544_SETVOP | 0x7f);
while(1){
gb.display.command(PCD8544_FUNCTIONSET | 4);
delay(1);
gb.display.command(PCD8544_FUNCTIONSET);
delay(1);
}
}
#include <SPI.h>
#include <Gamebuino.h>
Gamebuino gb;
void setup(void) {
gb.begin();
gb.display.setColor(BLACK);
gb.display.fillRect(0,0,84,48);
gb.display.update();
noInterrupts();
}
void loop(void) {
gb.display.command(PCD8544_FUNCTIONSET | PCD8544_EXTENDEDINSTRUCTION);
gb.display.command(PCD8544_SETVOP | 0x7f);
while(1){
gb.display.command(PCD8544_FUNCTIONSET | 4);
gb.display.command(PCD8544_FUNCTIONSET | PCD8544_EXTENDEDINSTRUCTION);
gb.display.command(PCD8544_SETVOP | 0x7f);
gb.display.command(PCD8544_FUNCTIONSET | PCD8544_EXTENDEDINSTRUCTION);
gb.display.command(PCD8544_SETVOP | 0);
}
}
Sun Aug 21, 2016 2:59 am
Sun Aug 21, 2016 3:33 pm
Sun Aug 21, 2016 10:11 pm
jonnection wrote:I've killed a couple of these screens by using out-of-bounds values for contrast.
It is not just a simple "contrast" setting. It is the voltage for some control circuit that in my experience will get fried if you abuse it too much.
Just so you know. This is really a way to brick the screen.
Tue Aug 23, 2016 3:21 pm