The new Raspberry Pi B Model B+ is here - Pick one up in the store and check our detailed guide!

TFT LCD display with pic16f876a

by simonen on Thu Aug 02, 2012 3:18 am

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
simonen
 
Posts: 3
Joined: Thu Aug 02, 2012 2:56 am

Re: TFT LCD display with pic16f876a

by adafruit_support_bill on Thu Aug 02, 2012 5:25 am

but in the tutorial is written that this library works for any microcontrollers.

What it says is:
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.


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.
User avatar
adafruit_support_bill
 
Posts: 27992
Joined: Sat Feb 07, 2009 9:11 am

Re: TFT LCD display with pic16f876a

by simonen on Thu Aug 02, 2012 6:30 am

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
simonen
 
Posts: 3
Joined: Thu Aug 02, 2012 2:56 am

Re: TFT LCD display with pic16f876a

by adafruit_support_bill on Thu Aug 02, 2012 6:49 am

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.

this is my first approach to programming

You picked a challenging project to start with! :)
User avatar
adafruit_support_bill
 
Posts: 27992
Joined: Sat Feb 07, 2009 9:11 am

Re: TFT LCD display with pic16f876a

by simonen on Thu Aug 02, 2012 7:03 am

Thank you so much, you are right, maybe these project is too difficult for me, but I hope that some PIC programmer help me
simonen
 
Posts: 3
Joined: Thu Aug 02, 2012 2:56 am