Search found 75 matches

by david.prentice
Tue May 23, 2017 12:37 pm
Forum: Libraries & Hardware
Topic: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi
Replies: 173
Views: 5020

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

@Steve,

There are several versions of Adafruit_TFTLCD library that have been hacked for an LGDP4535. There are probably some original ones too. As far as I know, they will only run on a Uno or Mega.

The OP wants a library that works on his STM32 BluePill with his custom wiring.

David.
by david.prentice
Tue May 23, 2017 11:35 am
Forum: Libraries & Hardware
Topic: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi
Replies: 173
Views: 5020

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Well, I wrote the SPECIAL for you a couple of days ago. By the content of your messages, I doubt if you have enough experience to use it. #define USE_MAGFLIP ... #elif defined(USE_MAGFLIP) && (defined(__STM32F1__) || defined(STM32F103xB)) // MAPLECORE or STM32CORE #warning USE_MAGFLIP #if de...
by david.prentice
Mon May 22, 2017 6:04 am
Forum: Libraries & Hardware
Topic: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi
Replies: 173
Views: 5020

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Until you get an identical report from LCD_ID_readreg as the Uno, your wiring is not correct. You do realise that you could simply plug the Shield into a NUCLEO-F103, NUCLEO-L476, IteadMaple or efftek's Adapter. All of these work out of the box. Since you have chosen to invent your own wiring, you h...
by david.prentice
Sun May 21, 2017 5:55 pm
Forum: Libraries & Hardware
Topic: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi
Replies: 173
Views: 5020

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Follow Steve's advice. Edit the defines to match your wiring. Then it will report exactly like your Uno. #define LCD_RST PB0 #define LCD_CS PA3 #define LCD_RS PA2 #define LCD_WR PA1 #define LCD_RD PA0 #define LCD_D0 PA8 #define LCD_D1 PA9 #define LCD_D2 PA10 #define LCD_D3 PA11 #define LCD_D4 PA12 #...
by david.prentice
Sun May 21, 2017 1:05 pm
Forum: Libraries & Hardware
Topic: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi
Replies: 173
Views: 5020

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Go on. The thread title is about an RPi 3.5 inch display. You show a photo of a 2.4" Arduino display shield. Your photo shows a paper sticker "4535". This implies an LGDP4535 controller but you can never trust Ebay. (I have one with "9488" label and it contains a HX8357-D) P...
by david.prentice
Wed May 03, 2017 8:48 pm
Forum: General discussion
Topic: Structure issue - SOLVED
Replies: 9
Views: 174

Re: Structure issue - SOLVED

If you have no contact with the outside world, you can use whatever data formats and structs that you like. If you want to read and write foreign data, you must do it very carefully. A good example is the data on the Boot sector of a FAT disk. Floppy, Winchester, SD card, Flash memory, ... The byte ...
by david.prentice
Wed May 03, 2017 2:08 pm
Forum: General discussion
Topic: Structure issue - SOLVED
Replies: 9
Views: 174

Re: Structure issue

Think about it. You have different fields with different alignment requirements. I added the following lines: (note that I have an abhorrence for anonymous union members) Serial.println("sizeof(plain) is " + String(sizeof(plain))); Serial.print("plain.f9 = 0x"); Serial.println(pl...
by david.prentice
Fri Apr 28, 2017 5:41 pm
Forum: Off topic
Topic: PWM ILI9341 backlight control?
Replies: 16
Views: 3132

Re: PWM ILI9341 backlight control?

White LEDs have a typical working forward voltage of 3.3V Let's just assume 3V to make the maths easy. 100mA would need a 3R series resistor. 25mA needs 12R. If you are running the LEDs at low current, you approach the knee voltage e.g. 2.7V So 47R would give 13mA. 220R might give 3mA or so. (as you...
by david.prentice
Thu Apr 27, 2017 4:40 pm
Forum: Hardware
Topic: ili9341 TJCTM24028-SPI
Replies: 4
Views: 126

Re: ili9341 TJCTM24028-SPI

Personally, I connect VCC to 3.3V and don't worry about J1. The controller does not take much current. (20mA) Yes, you lose a few millivolts across the LDO. I connect LED to 5V via a resistor. This takes about 100mA for 2.2" - 2.4" panels. If I am using 3.5" - 5" panels, the curr...
by david.prentice
Thu Apr 27, 2017 3:33 pm
Forum: Hardware
Topic: ili9341 TJCTM24028-SPI
Replies: 4
Views: 126

Re: ili3941 TJCTM24028-SPI

My display has the same model number and components. My XPT2046 is a few mm due South of your XPT2046. Otherwise, the pcb traces are similar. If you connect VCC to 3.3V, short J1. If you connect VCC to 5V, leave J1 open. Your STM32 has 3.3V logic. So you do not need any level shifting. If you do sho...

Go to advanced search