Content originally posted in LPCWare by wrighflyer on Sat Feb 09 10:56:13 MST 2013 While the memcpy() is probably as close as you'll get I have a sneaking suspicion that the slightly obvious
Content originally posted in LPCWare by MikeSimmonds on Fri Feb 08 12:52:24 MST 2013 [FONT=Comic Sans MS][SIZE=1]My mistake (sorry). I must have read the first post and skipped to the end. I hate it when I assume and it bites me!
Content originally posted in LPCWare by Ex-Zero on Fri Feb 08 06:25:05 MST 2013 Quote: masterboy I know this way, but I want to save data to "pole" in MAIN(). Is it possible?
Everything is possible
uint8_t pole[5];
int main(void) {
// TODO: insert code here
// Enter an infinite loop, just incrementing a counter
volatile static int i = 0 ;
[COLOR=Red] memcpy(&pole[0],(uint8_t*)"\001\002\003\004\005",5);[/COLOR]
while(1) {
i++ ;
}
return 0 ;
}
Content originally posted in LPCWare by masterboy on Fri Feb 08 05:53:24 MST 2013 I know this way, but I want to save data to "pole" in MAIN(). Is it possible?