alonewolfx2 / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

no output from processor. #246

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hi. i tried hello world program and it doesn't worked on my setup. so i tried 
it in simulator and it doesn't have any output, ports won't get even 
initialized.

is there anything wrong with the source code?

processor atmega644

here is the source code:

#define F_CPU 8000000UL

#include <avr/io.h>
#include <util/delay.h>
#include "u8g.h"

u8g_t u8g;

void u8g_setup(void)
{

    //u8g_Init8Bit(u8g, dev,                         d0,      d1,      d2,      d3,      d4,      d5,      d6,      d7,      en,     cs1,     cs2,       di,      rw,   reset)
    u8g_Init8Bit(&u8g, &u8g_dev_sbn1661_122x32, PN(2,0), PN(2,1), PN(2,2), PN(2,3), PN(2,4), PN(2,5), PN(2,6), PN(2,7), PN(3,0), PN(3,1), PN(3,2),  PN(3,3), PN(3,4), PN(3,5));

}

void sys_init(void)
{
    #if defined(__AVR__)
    /* select minimal prescaler (max system speed) */
    CLKPR = 0x80;
    CLKPR = 0x00;
    #endif
}

void draw(void)
{
    u8g_SetFont(&u8g, u8g_font_6x10);
    u8g_DrawStr(&u8g, 0, 15, "Hello World!");
}

int main(void)
{
    sys_init();
    u8g_setup();

    for(;;)
    {
        u8g_FirstPage(&u8g);
        do
        {
            draw();
        } while ( u8g_NextPage(&u8g) );
        u8g_Delay(100);
    }

}

Original issue reported on code.google.com by salko.ma...@gmail.com on 24 Mar 2014 at 6:06

GoogleCodeExporter commented 9 years ago
Are you able to measure any activity on the outputs?

Original comment by olikr...@gmail.com on 24 Mar 2014 at 6:30

GoogleCodeExporter commented 9 years ago
no further reply....closing....

Original comment by olikr...@gmail.com on 16 Jun 2014 at 7:10