Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: WinAVR / GCC question re Stack

2009-03-25 by David VanHorn

This almost seems to work, but the string is stored in pgm space, but
pgm_read_byte_near is returning values that aren't anything like
what's in the string.

const char BootString[] PROGMEM =   " Signon Msg  ";

for (i=0; 16 > i; i++)	{
 LCD_Data_A = pgm_read_byte_near(BootString[i]);
 lcd_putc(LCD_Data_A);
}

-- 
There is no computer problem which cannot be solved by proper
application of a sufficiently large hammer.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.