Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - mctouch

1
Project logs / Re: SSD1308 AVR Library for Arduino/Teensy
ok so its working...

All I had to change is the charge pump to use onboard power in oled.c


Code: [Select]
void oled_config()
{
    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(0x8d); //
   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
2
Project logs / Re: SSD1308 AVR Library for Arduino/Teensy
Yes apologies I knew this and should have put it in my post. It does work however only faintly, I am hoping that upping the contrast fix this. The only difference I can see between the SSD1306 and SSD1308 is the charge pump is onboard the 1306 and not on the 1308 assuming you are supplying a separate 7.5 volt power supply on the OLED, or maybe the seeed breakout board has one.

I will try and boost the brightness tonight.

Thanks for this fantastic Frame buffer driver..

:)

Mark
5
Project logs / Re: SSD1308 AVR Library for Arduino/Teensy
I noticed that there is another device on the breadboard on the right hand side, is this a boost converter for the SSD1308 to 7v?

Also I am having issues compiling the code in Arduino 1.01 & 0023.

SPI_fong.ino: In function 'void loop()':
SPI_font_test:23 error: '_SIN' was not declared in this scope.

but it is declared in tri.h

#define _SIN( a ) ( (int8_t)pgm_read_byte( &_sin[ a ] ) )

Not too sure what I am doing wrong, any ideas?

thx

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01342312680session_write_close ( )...(null):0
20.01372444256ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01372445032Database_MySQL->query( ).../DatabaseHandler.php:119
40.05632583752Database_MySQL->error( ).../Db-mysql.class.php:273