When using the library Adafruit_mfGFX and Adafruit_HX8357, we just want to display a simple sensor input on the TFT and we pass the verify stage. However, during the flash stage, we see the error message:
In file included from Adafruit_HX8357/Adafruit_HX8357.cpp:16:0:
Adafruit_HX8357/Adafruit_HX8357.cpp: In member function ‘void Adafruit_HX8357::writecommand(uint8_t)’:
This looks like an error in Adafruit_HX8357 library.
Would you like to create an issue on GitHub to let the author know?
Adafruit_HX8357/Adafruit_HX8357.h:28:25: error: 'PIN_MAP' was not declared in this scope
#define pinSetLow(pin) PIN_MAP[pin].gpio_peripheral->BRR = PIN_MAP[pin].gpio_pin
Look for some idea to solve this~
Which IDE are you using (Particle Build, Particle Dev, CLI, local build), for what platform are you building (Core, Photon) and which lib are you actually using (Particle Build lib, GitHub and which on there)?
The lib on Particle Build does not yet support the Photon, since it’ll be relying on firmware 0.4.2 (or higher) which is currently not supported by cloud build.
There is a Photon port available on GitHub, which could be found by use of the search feature in this forum - which is always good to use before opening a new topic
Hi, I am using the web IDE and the platform is photon. We are using the Github library. Since we are also new to photon and hope to use it to build a prototype, we look forward to a detailed tutorial on developing with photon.
What’s the link to the GitHub library?
The suggested forum search would have come up with this thread
Core LCD library not working with Photon (Adaffruit_HX8357)
and in there you’d have a link to a working GitHub library
I think it’s this one. Looks like your work
Yes it is and it was an early Core port.
As mentioned above, I’ve not uploaded the Photon port due to some delays with 0.4.2, so for now you might be better off using MachadoLab’s lib I linked above