Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
BTW: This is code i'm using:
#define F_CPU 8000000UL
#include <avr/io.h>
#include <util/delay.h>
#include "u8g.h"
int main(void)
{
while(1)
{
U8GLIB_SBN1661_122X32 u8g(d0, d1, d2, d3, d4, d5, d6, d7, cs1, cs2, di, rw );
// picture loop
u8g.firstPage();
do {
draw();
} while( u8g.nextPage() );
// rebuild the picture after some delay
_delay_ms(1000);
}
}
void draw(void) {
// graphic commands to redraw the complete screen should be placed here
u8g.setFont(u8g_font_unifont);
u8g.drawStr( 0, 20, "Hello World!");
}
Original comment by salko.ma...@gmail.com
on 22 Mar 2014 at 11:12
it might work with the c interfrace:
Modify the aver examples and use u8g_Init8Bit:
uint8_t u8g_Init8Bit(&u8g, &u8g_dev_sbn1661_122x32, uint8_t d0, uint8_t d1,
uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t
en, uint8_t cs1, uint8_t cs2, uint8_t di, uint8_t rw, uint8_t reset);
Original comment by olikr...@gmail.com
on 22 Mar 2014 at 2:16
thanks. it looks promising but one more thing how do i determine ports.
I know that PN(1,1) stands for port B pin 1 but i need to use port D,C or A
because port B has all isp pins and they interfere with lcd.
Original comment by salko.ma...@gmail.com
on 22 Mar 2014 at 3:01
he he. looks like i tried to use arduino syntax. sorry for confusion my bad, oh
and the code worked ;D
Original comment by salko.ma...@gmail.com
on 22 Mar 2014 at 6:56
PN(3,1) is port D, pin 1, if this is still a question.
Original comment by olikr...@gmail.com
on 22 Mar 2014 at 7:16
closing...
Original comment by olikr...@gmail.com
on 16 Jun 2014 at 7:09
Original issue reported on code.google.com by
salko.ma...@gmail.com
on 22 Mar 2014 at 11:04