Hi to all
I bought this display:
http://www.adafruit.com/products/358
I downloaded the C library written for arduino for this display, but in the tutorial is written that this library works for any microcontrollers.
I want to use a pic16f876a to drive this display, is possible? How I modify the library?
Thanks to all
TFT LCD display with pic16f876a
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: TFT LCD display with pic16f876a
What it says is:but in the tutorial is written that this library works for any microcontrollers.
You will need to go through Adafruit_ST7735.cpp and change the Atmega/Arduino pin mappings, and low-level reads and writes to work with your microcontroller's architecture.The code is written in C/C++ for Arduino but is easy to port to any microcontroller by rewritting the low level pin access functions.
-
- Posts: 3
- Joined: Thu Aug 02, 2012 3:56 am
Re: TFT LCD display with pic16f876a
Thanks for the answer, I have an another question, in Adafruit_ST7735.cpp there are many includes (for example avr/pgmspace.h, limits.h and so on), I need this library or not? and where I download this?
Sorry for my ignorance, but this is my first approach to programming.
Thanks
Sorry for my ignorance, but this is my first approach to programming.
Thanks
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: TFT LCD display with pic16f876a
The AVR includes contain definitions that are specific to the AVR/Atmega processors used in the Arduino. You will probably need some equivalent for the PIC. I don't work with PICs myself, but there are some PIC programmers on this forum from time to time and they might be able to tell you what those are.
You picked a challenging project to start with!this is my first approach to programming
-
- Posts: 3
- Joined: Thu Aug 02, 2012 3:56 am
Re: TFT LCD display with pic16f876a
Thank you so much, you are right, maybe these project is too difficult for me, but I hope that some PIC programmer help me
Please be positive and constructive with your questions and comments.