Skip to content

Commit c63d0bf

Browse files
Replaced deprecated prog_uchar declarations
1 parent 1126bf8 commit c63d0bf

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

RGBmatrixPanel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ void RGBmatrixPanel::dumpMatrix(void) {
375375

376376
Serial.print("\n\n"
377377
"#include <avr/pgmspace.h>\n\n"
378-
"static PROGMEM prog_uchar img[] = {\n ");
378+
"static const uint8_t PROGMEM img[] = {\n ");
379379

380380
for(i=0; i<buffsize; i++) {
381381
Serial.print("0x");

examples/colorwheel_progmem_32x32/image.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <avr/pgmspace.h>
44

5-
static PROGMEM prog_uchar img[] = {
5+
static const uint8_t PROGMEM img[] = {
66
0xC2,0xC2,0xC2,0xC2,0xC2,0xC2,0xC2,0xE2,
77
0xE2,0xC2,0xC2,0xE2,0xC2,0xE2,0xE2,0xCE,
88
0xAF,0x65,0xE4,0x26,0xE2,0xA1,0x20,0xE3,

examples/plasma_16x32/plasma_16x32.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// until the first call to swapBuffers(). This is normal.
1717
RGBmatrixPanel matrix(A, B, C, CLK, LAT, OE, true);
1818

19-
static int8_t sinetab[256] PROGMEM = {
19+
static const int8_t PROGMEM sinetab[256] = {
2020
0, 2, 5, 8, 11, 15, 18, 21,
2121
24, 27, 30, 33, 36, 39, 42, 45,
2222
48, 51, 54, 56, 59, 62, 65, 67,

examples/plasma_32x32/plasma_32x32.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//#define D A0
2525
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false);
2626

27-
static int8_t sinetab[256] PROGMEM = {
27+
static const int8_t PROGMEM sinetab[256] = {
2828
0, 2, 5, 8, 11, 15, 18, 21,
2929
24, 27, 30, 33, 36, 39, 42, 45,
3030
48, 51, 54, 56, 59, 62, 65, 67,

examples/scrolltext_16x32/scrolltext_16x32.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int8_t ball[3][4] = {
2424
{ 17, 15, 1, -1 },
2525
{ 27, 4, -1, 1 }
2626
};
27-
PROGMEM uint16_t ballcolor[3] = {
27+
static const uint16_t PROGMEM ballcolor[3] = {
2828
0x0080, // Green=1
2929
0x0002, // Blue=1
3030
0x1000 // Red=1

extras/gamma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
2323
"#ifndef _GAMMA_H_\n"
2424
"#define _GAMMA_H_\n\n"
2525
"#include <avr/pgmspace.h>\n\n"
26-
"static PROGMEM prog_uchar gamma[] = {\n ");
26+
"static const uint8_t PROGMEM gamma[] = {\n ");
2727

2828
for(i=0; i<256; i++) {
2929
(void)printf("0x%02x",(int)(pow((float)i / 255.0, GAMMA) *

extras/sine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
int main(int argc, char *argv[]) {
1010
int i;
1111

12-
(void)printf("static int8_t sinetab[256] PROGMEM = {\n ");
12+
(void)printf("static const int8_t PROGMEM sinetab[256] = {\n ");
1313

1414
for(i=0; i<256; i++) {
1515
(void)printf("%4d",

gamma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include <avr/pgmspace.h>
55

6-
static PROGMEM prog_uchar gamma[] = {
6+
static const uint8_t PROGMEM gamma[] = {
77
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
88
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
99
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0 commit comments

Comments
 (0)