Example #1
0
int main(void)
{
    unsigned char i =0;
    gpio_init();

    I2C_Init();
    ssd_init();

    while (1) {
        //invertDisplay(1);
       /* OUTPUT_TOGGLE(GREEN_LED);
        delay();
        OUTPUT_TOGGLE(RED_LED);
        delay();
        //invertDisplay(0);
        OUTPUT_TOGGLE(BLUE_LED);
        delay();*/
        //ssd1306_writeString(i++,0," Test");

        ssd1306_writeString(i*8,i,"Test");
i++;
        if ( i >= 8) i=0;
        //display();

        //startscrollright(0x00, 0xf);
        //startscrollright(0x00, 0xf);

    }
}
Example #2
0
int main(void)
{

    ssd_init();
    char buf[] = {1,2,3,4};

    ssd_putc( buf );

    while(1)
    {
    	ssd_frame();
		_delay_ms(2);

    };

    return 0;
}
Example #3
0
int main(void)
{
    gpio_init();

    I2C_Init();
    ssd_init();

    PTA->PSOR = (1U << 1);
    PTA->PSOR = (1U << 2);



    while (1) {
        OUTPUT_TOGGLE(BLUE_LED);
        ssd1306_writeString(8,1,"Test");
        ssd1306_writeString(9,2,"Test");
        delay();
    }
}