I've never really used a lookup table before and I've read some stuff online. I'm really just posting to ensure my understanding is correct.
The project I want to implement this on is just a throbbing led. The look up table is precomputed gamma corrections for the led.
Lets say I have a small look up table...(im just making this stuff up as i go along, so these numbers dont really mean anything...yet)
int lookup[6]={10,15,26,45,25,1}
and if i want to cycle through these numbers..all i really need is a look to cycle through the indexes and do something with the number retrieved...
is that it ?
is all it really is, is just an array with determined values and giving it another name...'lookup' ?
The project I want to implement this on is just a throbbing led. The look up table is precomputed gamma corrections for the led.
Lets say I have a small look up table...(im just making this stuff up as i go along, so these numbers dont really mean anything...yet)
int lookup[6]={10,15,26,45,25,1}
and if i want to cycle through these numbers..all i really need is a look to cycle through the indexes and do something with the number retrieved...
is that it ?
is all it really is, is just an array with determined values and giving it another name...'lookup' ?