Skip to content

pins_arduino.h not found #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Mehuli-Ruh11 opened this issue Sep 25, 2019 · 5 comments · Fixed by #66
Closed

pins_arduino.h not found #65

Mehuli-Ruh11 opened this issue Sep 25, 2019 · 5 comments · Fixed by #66

Comments

@Mehuli-Ruh11
Copy link

Mehuli-Ruh11 commented Sep 25, 2019

No pins_arduino.h in the variants

I am using red board Artemis nano with 2.8" adafruit TFT LCD shield. For simple graphic test, I am getting error
pins_arduino.h: No such file or directory

workbench

Expected behaviour

The LCD screen should show graphical outputs

Actual behaviour

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "SparkFun RedBoard Artemis Nano, 115200, Ambiq Secure Bootloader (Advanced)"

C:\Users\Documents\Arduino\libraries\Adafruit_ILI9341\Adafruit_ILI9341.cpp:52:12: fatal error: pins_arduino.h: No such file or directory
#include "pins_arduino.h"
^~~~~~~~~~~~~~~~
compilation terminated.

@oclyke
Copy link
Contributor

oclyke commented Sep 26, 2019

Wow GitHub is getting smart... I just said "Fixes #65" in the PR and this issue got automatically closed...

As pointed out by @nseidle the pins_arduino.h file seems to be a predecessor to variant files. I took a glance at the Adafruit libraries and they seem to use the standard interfaces (digitalWrite, SPIClass etc...) so all we needed to do was include an empty pins_arduino.h

I also had to add wiring_private.h and a weak definition for the yield() function.

Your example should now compile. Please let us know if it works for you.

@oclyke
Copy link
Contributor

oclyke commented Sep 26, 2019

Oh.... to test this out you'll need to get v1.0.12 through the Arduino boards manager. I'll have it posted in under an hour

@oclyke
Copy link
Contributor

oclyke commented Sep 26, 2019

Ok, v1.0.12 is released w/ the fixes

@Mehuli-Ruh11
Copy link
Author

Now I am able to upload the sketch without any error but I am unable to see the desired graphical output.

@oclyke
Copy link
Contributor

oclyke commented Oct 3, 2019

I would recommend double checking your pin / SPI port assignments. Otherwise it would be best to check in with the creators of the TFT product that you are using because they will have better insight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants