From: Bill P. <goa...@ya...> - 2004-02-02 05:07:43
|
re: the F*CK problem, glad to know you're human. ;) > snprintf (tmpbuffer, 2, "\%o", cu_vfd_brightness); > What the heck is "\%o"? Is it octal? Why the backslash? What does the > resulting string look like? I suppose the backslash was a typo. ach yes backslash is a leftover. I was trying to pass the function set along with the hd_write. Which didn't work. and octal is... whoops. > It gets even more strange: > HD_write (0x03, tmpbuffer, 1, T_WRCG); > If the abofe format string is correct, the brightness would be in the > second character. But you're sending only one byte (the backslash). > That IS strange. Strange that it actually changes the brightness anyway. It worked or I'd have spotted that (I hope, anyway). No clue why it works. > But please double-check the code in > drv_HD44780.c Thanks! Yep! It works like you knew it would. CLEAN too. Look at those sleek lines. See what purpose crappy coding is for? It motivates real programmers. ;) -BP __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ |