1
Project logs / Re: SSD1308 AVR Library for Arduino/Teensy
All I had to change is the charge pump to use onboard power in oled.c
Code: [Select]
void oled_config()send_command(0x8d); //
{
send_command(0xaf); // display on
send_command(0x20); // Set Memory Addressing Mode:
send_command(0x00); // Horizontal addressing mode
//send_command(0xb0); // set page address
//send_command(0x00); // set low col address
//send_command(0x10); // set high col address
send_command(0x14); // enable charge pump
Code: [Select]
//send_command(0x10); //
send_command(0x81); // Set Contrast Control:
send_command(0xfa); // default: 0x7f
//send_command(0xf9); // Set pre-charge period
//send_command(0xf1);
//send_command(0xa7); // Set Inverse Display
send_command(0xa6); // Set Normal Display
}
Thanks again