adafruit/Adafruit-ST7735-Library — pull request #12 by mokipcs (2012-12-01 16:18:05+00:00)
Title: Changed Bcmd, ... from deprecated type (prog_uchar) to type (const uint8_t PROGMEM)

Compiling Adafruit-ST7735-Library using avr-libc version 1.8.0 fails, because the prog_uchar has been deprecated[1], and isn't enabled by default.

This patch changes the type of Bcmd, Rcmd1, Rcmd2green, Rcmd2red, and Rcmd3 to const uint8_t with the PROGMEM attribute.

$ avr-g++ -c -Os -Wall -mmcu=atmega32u2 -DARDUINO=101 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/mega -I/usr/share/arduino/libraries/SPI -I../Adafruit_GFX -Iutility -I. Adafruit_ST7735.cpp
Adafruit_ST7735.cpp:97:16: error: ‘prog_uchar’ does not name a type

$ avr-g++ --version
avr-g++ (GCC) 4.7.0
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[1] http://www.nongnu.org/avr-libc/user-manual/group__avr__pgmspace.html#gaa475b6b81fd8b34de45695da1da523b6