Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int lookupTable[] PROGMEM = {1, 2, 3, 4, 5}; // Store lookup table in FLASH
- void useLookupTable() {
- for (int i = 0; i < 5; i++) {
- int value = pgm_read_word_near(lookupTable + i); // Read from FLASH
- Serial.println(value);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement