Thanks for the assistance. Thanks for the pointer about formatting. This is like Wiki. Unfortunately. The issues look similar - I feel bad bothering you with this, but really, it would take me an eon to comprehend this.
Anyhow, per your recommendation. I did as follows, please excuse my short hand:
- Download mtnscott / Adafruit libraries from Github
- Remove the original APP entirely - Basically, start from scratch
- Manually do the following
- Create example test INO file using github contents of example test file. save.
- Create ILI9341 H and CPP files in tab and copy contents from mtnscottâs library. Being careful to use get file names right. save.
- add mfgfx libraries through drawer
- made sure to reference mfgfx as "#include âAdafruit_mfGFX/Adafruit_mfGFX.hâ in both test INO and ILI9341 H files.
- made sure to reference ILI H library as #include âAdafruit_mfGFX.hâ in both ILI CPP and test INO file
- Save again
- Verify - Still doesnât compile?!
I went back and repeated above exercise but also got all original libraries (for mfGFX) from github and get the same errors (didnât make an exact diff comparison, but the look the same). Out of desperation, I tried several combinations of modifications. No luck. Anyhow, the errors are similar (at least to start as before).
In file included from Adafruit_ILI9341.cpp:17:0:
Adafruit_ILI9341.h:24:0: warning: "pgm_read_byte" redefined [enabled by default]
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
^
In file included from ../wiring/inc/spark_wiring.h:37:0,
from ./inc/application.h:36,
from Adafruit_mfGFX/Adafruit_mfGFX.h:13,
from Adafruit_ILI9341.h:21,
from Adafruit_ILI9341.cpp:17:
../wiring/inc/spark_wiring_arduino.h:32:0: note: this is the location of the previous definition
#define pgm_read_byte(x) (*(x))
^
In file included from Adafruit_ILI9341.cpp:17:0:
Adafruit_ILI9341.cpp: In member function 'void Adafruit_ILI9341::writecommand(uint8_t)':
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:43:2: note: in expansion of macro 'pinLO'
pinLO(_dc); //digitalWrite(_dc, LOW);
^
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:45:2: note: in expansion of macro 'pinLO'
pinLO(_cs); //digitalWrite(_cs, LOW);
^
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:47:2: note: in expansion of macro 'pinHI'
pinHI(_cs); //digitalWrite(_cs, HIGH);
^
Adafruit_ILI9341.cpp: In member function 'void Adafruit_ILI9341::writedata(uint8_t)':
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:52:2: note: in expansion of macro 'pinHI'
pinHI(_dc); //digitalWrite(_dc, HIGH);
^
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:54:2: note: in expansion of macro 'pinLO'
pinLO(_cs); //digitalWrite(_cs, LOW);
^
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:56:2: note: in expansion of macro 'pinHI'
pinHI(_cs); //digitalWrite(_cs, HIGH);
^
Adafruit_ILI9341.cpp: In member function 'void Adafruit_ILI9341::begin()':
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:112:2: note: in expansion of macro 'pinHI'
pinHI(_rst); //digitalWrite(_rst, HIGH);
^
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:114:2: note: in expansion of macro 'pinLO'
pinLO(_rst); //digitalWrite(_rst, LOW);
^
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:116:2: note: in expansion of macro 'pinHI'
pinHI(_rst); //digitalWrite(_rst, HIGH);
^
Adafruit_ILI9341.cpp: In member function 'void Adafruit_ILI9341::pushColor(uint16_t)':
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:246:2: note: in expansion of macro 'pinHI'
pinHI(_dc); //digitalWrite(_dc, HIGH);
^
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:247:2: note: in expansion of macro 'pinLO'
pinLO(_cs); //digitalWrite(_cs, LOW);
^
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:250:2: note: in expansion of macro 'pinHI'
pinHI(_cs); //digitalWrite(_cs, HIGH);
^
Adafruit_ILI9341.cpp: In member function 'virtual void Adafruit_ILI9341::drawPixel(int16_t, int16_t, uint16_t)':
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:261:2: note: in expansion of macro 'pinHI'
pinHI(_dc); //digitalWrite(_dc, HIGH);
^
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:262:2: note: in expansion of macro 'pinLO'
pinLO(_cs); //digitalWrite(_cs, LOW);
^
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:265:2: note: in expansion of macro 'pinHI'
pinHI(_cs); //digitalWrite(_cs, HIGH);
^
Adafruit_ILI9341.cpp: In member function 'virtual void Adafruit_ILI9341::drawFastVLine(int16_t, int16_t, int16_t, uint16_t)':
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:284:2: note: in expansion of macro 'pinHI'
pinHI(_dc); //digitalWrite(_dc, HIGH);
^
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:285:2: note: in expansion of macro 'pinLO'
pinLO(_cs); //digitalWrite(_cs, LOW);
^
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:292:2: note: in expansion of macro 'pinHI'
pinHI(_cs); //digitalWrite(_cs, HIGH);
^
Adafruit_ILI9341.cpp: In member function 'virtual void Adafruit_ILI9341::drawFastHLine(int16_t, int16_t, int16_t, uint16_t)':
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:310:2: note: in expansion of macro 'pinHI'
pinHI(_dc); //digitalWrite(_dc, HIGH);
^
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:311:2: note: in expansion of macro 'pinLO'
pinLO(_cs); //digitalWrite(_cs, LOW);
^
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:318:2: note: in expansion of macro 'pinHI'
pinHI(_cs); //digitalWrite(_cs, HIGH);
^
Adafruit_ILI9341.cpp: In member function 'virtual void Adafruit_ILI9341::fillRect(int16_t, int16_t, int16_t, int16_t, uint16_t)':
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:346:2: note: in expansion of macro 'pinHI'
pinHI(_dc); //digitalWrite(_dc, HIGH);
^
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:347:2: note: in expansion of macro 'pinLO'
pinLO(_cs); //digitalWrite(_cs, LOW);
^
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:356:2: note: in expansion of macro 'pinHI'
pinHI(_cs); //digitalWrite(_cs, HIGH);
^
Adafruit_ILI9341.cpp: In member function 'uint8_t Adafruit_ILI9341::readdata()':
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:411:2: note: in expansion of macro 'pinHI'
pinHI(_dc); //digitalWrite(_dc, HIGH);
^
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:412:2: note: in expansion of macro 'pinLO'
pinLO(_cs); //digitalWrite(_cs, LOW);
^
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:414:2: note: in expansion of macro 'pinHI'
pinHI(_cs); //digitalWrite(_cs, HIGH);
^
Adafruit_ILI9341.cpp: In member function 'uint8_t Adafruit_ILI9341::readcommand8(uint8_t)':
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:420:2: note: in expansion of macro 'pinLO'
pinLO(_dc); //digitalWrite(_dc, LOW);
^
Adafruit_ILI9341.h:27:53: error: 'struct GPIO_TypeDef' has no member named 'BRR'
#define pinLO(_pin) (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:422:2: note: in expansion of macro 'pinLO'
pinLO(_cs); //digitalWrite(_cs, LOW);
^
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:424:2: note: in expansion of macro 'pinHI'
pinHI(_dc); //digitalWrite(_dc, HIGH);
^
Adafruit_ILI9341.h:28:53: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
#define pinHI(_pin) (PIN_MAP[_pin].gpio_peripheral->BSRR = PIN_MAP[_pin].gpio_pin)
^
Adafruit_ILI9341.cpp:426:2: note: in expansion of macro 'pinHI'
pinHI(_cs); //digitalWrite(_cs, HIGH);
^
make[1]: *** [../build/target/user/platform-6Adafruit_ILI9341.o] Error 1
make: *** [user] Error 2
Error: Could not compile. Please review your code.