ArduinoDumbDisplay v0.9.9-r34
DumbDisplay Arduino Library -- https://github.com/trevorwslee/Arduino-DumbDisplay
 
Loading...
Searching...
No Matches
pgm_util.h
1
2const uint8_t *PgmCopyBytes(const uint8_t *bytes, int byteCount, uint8_t *buffer) {
3 for (int i = 0; i < byteCount; i++) {
4 buffer[i] = pgm_read_byte(bytes + i);
5 }
6 return buffer;
7}
8
9const uint16_t *PgmCopyWords(const uint16_t *words, int wordCount, uint16_t *buffer) {
10 for (int i = 0; i < wordCount; i++) {
11 buffer[i] = pgm_read_word(words + i);
12 }
13 return buffer;
14}
15