Search found 78 matches

by david.prentice
Thu Jun 22, 2017 12:57 pm
Forum: Problems with libraries
Topic: Arduino TFT libraries compatibility
Replies: 8
Views: 92

Re: Arduino TFT libraries compatibility

No problem! Yes, I agree that println() is just a name. It does not necessarily mean inheritance of Print.h But I maintain that most library authors would attempt to mimic the behaviour even if they implement without inheritance. e.g. MarekB and Bodmer implement their own Graphics methods that behav...
by david.prentice
Thu Jun 22, 2017 10:30 am
Forum: Problems with libraries
Topic: Arduino TFT libraries compatibility
Replies: 8
Views: 92

Re: Arduino TFT libraries compatibility

So I can expect tft.println("Hello World") to work just like Serial.println("Hello World"); Or tft.drawRect(0, 10, 5, 20, WHITE) to work like any other drawRect() I doubt even if you always used libraries by the same company e.g. Adafruit, whether tft.println() would work the same across all their ...
by david.prentice
Wed Jun 21, 2017 3:28 pm
Forum: Problems with libraries
Topic: Arduino TFT libraries compatibility
Replies: 8
Views: 92

Re: Arduino TFT libraries compatibility

The beauty of C++ is that you can inherit classes. e.g. many TFT, OLED, GLCD libraries inherit all the Adafruit_GFX methods which in turn inherit the Print methods. So I can expect tft.println("Hello World") to work just like Serial.println("Hello World"); Or tft.drawRect(0, 10, 5, 20, WHITE) to wor...
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: 6095

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: 6095

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 defined(AR...
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: 6095

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: 6095

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: 6095

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) Please install/update your...
by david.prentice
Wed May 03, 2017 8:48 pm
Forum: General discussion
Topic: Structure issue - SOLVED
Replies: 9
Views: 258

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: 258

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(plain.named.f9, HEX); ...