Getting started with UTFT library

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How must the code be setup to use the UTFT library?

 

I did change the line below to -- ILI9341_S4P ,but what is the 4 values that follows ?

 

"UTFT myGLCD(ILI9341_S4P  ,38,39,40,41);"

 

Must the atmega chip used be defined?

 

I am only using MOSI,CLK,DC,RST where must this be defined ,MOSI,CLK is fixed per atmega .

 

Can this UTFT library be used with AVR STUDIO(WIN AVR)  and /or  ARDUINO ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, you can port UTFT to a bare AVR very easily. With nothing more than a delay() function.
Mr Karlsen does not even use the SPI hardware. Just bit bashes GPIO.
.
Do you really want to use S4P? i.e. 9-bit SPI
No problem with bit-bash. Nightmare with SPI hardware on an AVR.
.
The real mystery is WHY.
Arduino works well. There are many good libraries. All of them faster than UTFT.
.
The biggest problem with Arduino users is understanding that 3.3V modules require 3.3V logic.
From your constructor() example it looks like you have a 5V ATmega2560.
.
David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

User manual for UTFT says the constructor has two variants... 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks so far...i am using a small 3.3V regulator for the display and a resistor divider for the control pins.

Not so sure if i want to use the UTFT library anymore....no spi .

The arduino boards is just so portable ,no big stk500 programmer and no extra 12v psu...lots of sample code on the internet using Utft library....the only reason i am using the arduino boards is its small, doesnt need a programmer,all the main components is already fitted and the price.

I need a library that will work on avr studio and arduino.

The Utft library specify the SDA.CLK.CS.RESET.RS what pin is the DC(data/command) pin CS or RS?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Any Arduino "library" will likely "work in Atmel Studio". Arduino code is C++ which Studio also can handle. 

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]