8-bit|16-bit parallell ILI9341

External hardware connected to the STM32 board
stevestrong
Posts: 1950
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: 8-bit|16-bit parallell ILI9341

Post by stevestrong » Wed Aug 30, 2017 6:26 pm

I think your problem is the RST pin.
It may not be defined to PA0, because this translates to value 0:
https://github.com/rogerclarkmelbourne/ ... oard.h#L80
and then the RST pin will not be toggled:
https://github.com/stevstrong/Arduino_S ... TM.cpp#L78
I think I should correct the software to test for ">=0".

Till then try to use any other pin for RST.

And, as I told, PA4 should work as CS. To check that, write a simple test program to toggle it.

aster
Posts: 118
Joined: Thu Mar 30, 2017 2:41 pm
Location: bella italy
Contact:

Re: 8-bit|16-bit parallell ILI9341

Post by aster » Thu Aug 31, 2017 4:37 pm

wow, with more than 30 pins i choose the only one which wouldn't work :lol:

i am happy my bad luck helped you spotted a small error in the library
by the way the problem with PA4 i was referring was this: viewtopic.php?f=44&p=33802#p33802 but looks like it was solved time ago
Now i thinks it is better to stop spamming this thread and maybe an admin could move these last post in the correct one

MakcYan
Posts: 15
Joined: Tue Oct 24, 2017 6:27 pm

Re: В 8-бит|16-бит параллельно ILI9341

Post by MakcYan » Thu Oct 26, 2017 5:36 am

stevestrong
Hello.
I can not initialize the display ili9431 16-bit. Only the white screen appears.
Tell me please what I'm doing wrong?

Use the stm32f103c8t6 blue board + Arduino IDE 1.8.4 + Arduino_STM32 + library Adafruit_TFTLCD_16bit_STM32 (//#define USE_FSMC 1 in Adafruit_TFTLCD_16bit_STM32.h) + the sketch
Connection:
D0...D15 - PB0...15 (PB2 - removed the jumper and connected to pin)
WR, RS, CS - PA1,PA2,PA3
RST - PC15
RD - connected to 3.3v and GND


If I use the library Adafruit_ILI9341_8bit_STM (iwalpola) with recommended connection pins, the image appears, but only used the blue color and its shades.

P.S.
Wrote the text using google translate from Russian language

stevestrong
Posts: 1950
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: 8-bit|16-bit parallell ILI9341

Post by stevestrong » Thu Oct 26, 2017 8:38 am

Can you please give a try and change

1. the line https://github.com/stevstrong/Adafruit_ ... M32.h#L103
to

Code: Select all

#if 1
So basically activate the standard bit toggling using digitalWrite().

2. In line https://github.com/stevstrong/Adafruit_ ... M32.h#L149
replace Adafruit_GFX by "Adafruit_GFX_AS"

Do you get any warnings during build?

MakcYan
Posts: 15
Joined: Tue Oct 24, 2017 6:27 pm

Re: 8-bit|16-bit parallell ILI9341

Post by MakcYan » Thu Oct 26, 2017 2:40 pm

stevestrong wrote:
Thu Oct 26, 2017 8:38 am
2. In line https://github.com/stevstrong/Adafruit_ ... M32.h#L149
replace Adafruit_GFX by "Adafruit_GFX_AS"

Do you get any warnings during build?

Code: Select all

In file included from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino:7:0:

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\src/Adafruit_TFTLCD_16bit_STM32.h:149:60: error: expected class-name before '{' token

 class Adafruit_TFTLCD_16bit_STM32 : public Adafruit_GFX_AS {

                                                            ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'void setup()':

graphicstest:20: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   Serial.print("TFT size is "); Serial.print((uint16_t)tft.width()); Serial.print("x"); Serial.println((uint16_t)tft.height());

                                                            ^

graphicstest:20: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'height'

   Serial.print("TFT size is "); Serial.print((uint16_t)tft.width()); Serial.print("x"); Serial.println((uint16_t)tft.height());

                                                                                                                      ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'long unsigned int testText()':

graphicstest:179: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'setCursor'

   tft.setCursor(0, 0);

       ^

graphicstest:180: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'setTextColor'

   tft.setTextColor(WHITE);  tft.setTextSize(1);

       ^

graphicstest:180: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'setTextSize'

   tft.setTextColor(WHITE);  tft.setTextSize(1);

                                 ^

graphicstest:181: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println("Hello World!");

       ^

graphicstest:182: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'setTextColor'

   tft.setTextColor(YELLOW); tft.setTextSize(2);

       ^

graphicstest:182: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'setTextSize'

   tft.setTextColor(YELLOW); tft.setTextSize(2);

                                 ^

graphicstest:183: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println(1234.56);

       ^

graphicstest:184: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'setTextColor'

   tft.setTextColor(RED);    tft.setTextSize(3);

       ^

graphicstest:184: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'setTextSize'

   tft.setTextColor(RED);    tft.setTextSize(3);

                                 ^

graphicstest:185: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println(0xDEADBEEF, HEX);

       ^

graphicstest:186: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println();

       ^

graphicstest:187: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'setTextColor'

   tft.setTextColor(GREEN);

       ^

graphicstest:188: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'setTextSize'

   tft.setTextSize(5);

       ^

graphicstest:189: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println("Groop");

       ^

graphicstest:190: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'setTextSize'

   tft.setTextSize(2);

       ^

graphicstest:191: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println("I implore thee,");

       ^

graphicstest:192: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'setTextSize'

   tft.setTextSize(1);

       ^

graphicstest:193: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println("my foonting turlingdromes.");

       ^

graphicstest:194: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println("And hooptiously drangle me");

       ^

graphicstest:195: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println("with crinkly bindlewurdles,");

       ^

graphicstest:196: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println("Or I will rend thee");

       ^

graphicstest:197: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println("in the gobberwarts");

       ^

graphicstest:198: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println("with my blurglecruncheon,");

       ^

graphicstest:199: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'println'

   tft.println("see if I don't!");

       ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'long unsigned int testLines(uint16_t)':

graphicstest:206: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

                 w = tft.width(),

                         ^

graphicstest:212: error: 'h' was not declared in this scope

   y2    = h - 1;

           ^

graphicstest:214: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawLine'

   for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);

                              ^

graphicstest:216: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawLine'

   for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);

                              ^

graphicstest:225: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawLine'

   for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);

                              ^

graphicstest:227: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawLine'

   for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);

                              ^

graphicstest:236: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawLine'

   for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);

                              ^

graphicstest:238: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawLine'

   for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);

                              ^

graphicstest:247: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawLine'

   for(x2=0; x2<w; x2+=6) tft.drawLine(x1, y1, x2, y2, color);

                              ^

graphicstest:249: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawLine'

   for(y2=0; y2<h; y2+=6) tft.drawLine(x1, y1, x2, y2, color);

                              ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'long unsigned int testFastLines(uint16_t, uint16_t)':

graphicstest:256: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   int           x, y, w = tft.width(), h = tft.height();

                               ^

graphicstest:260: error: 'h' was not declared in this scope

   for(y=0; y<h; y+=5) tft.drawFastHLine(0, y, w, color1);

              ^

graphicstest:261: error: 'h' was not declared in this scope

   for(x=0; x<w; x+=5) tft.drawFastVLine(x, 0, h, color2);

                                               ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'long unsigned int testRects(uint16_t)':

graphicstest:269: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

                 cx = tft.width()  / 2,

                          ^

In file included from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish.h:60:0,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/Arduino.h:30,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino:1:

graphicstest:273: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   n     = min(tft.width(), tft.height());

                   ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:35: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                   ^

graphicstest:273: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'height'

   n     = min(tft.width(), tft.height());

                                ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:39: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                       ^

graphicstest:273: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   n     = min(tft.width(), tft.height());

                   ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:43: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                           ^

graphicstest:273: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'height'

   n     = min(tft.width(), tft.height());

                                ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:47: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                               ^

graphicstest:277: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawRect'

     tft.drawRect(cx-i2, cy-i2, i, i, color);

         ^

graphicstest:277: error: 'cy' was not declared in this scope

     tft.drawRect(cx-i2, cy-i2, i, i, color);

                         ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'long unsigned int testFilledRects(uint16_t, uint16_t)':

graphicstest:286: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

                 cx = tft.width()  / 2 - 1,

                          ^

In file included from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish.h:60:0,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/Arduino.h:30,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino:1:

graphicstest:290: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   n = min(tft.width(), tft.height());

               ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:35: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                   ^

graphicstest:290: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'height'

   n = min(tft.width(), tft.height());

                            ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:39: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                       ^

graphicstest:290: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   n = min(tft.width(), tft.height());

               ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:43: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                           ^

graphicstest:290: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'height'

   n = min(tft.width(), tft.height());

                            ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:47: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                               ^

graphicstest:294: error: 'cy' was not declared in this scope

     tft.fillRect(cx-i2, cy-i2, i, i, color1);

                         ^

graphicstest:297: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawRect'

     tft.drawRect(cx-i2, cy-i2, i, i, color2);

         ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'long unsigned int testFilledCircles(uint8_t, uint16_t)':

graphicstest:305: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   int x, y, w = tft.width(), h = tft.height(), r2 = radius * 2;

                     ^

graphicstest:309: error: 'r2' was not declared in this scope

   for(x=radius; x<w; x+=r2) {

                         ^

graphicstest:310: error: 'h' was not declared in this scope

     for(y=radius; y<h; y+=r2) {

                     ^

graphicstest:311: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'fillCircle'

       tft.fillCircle(x, y, radius, color);

           ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'long unsigned int testCircles(uint8_t, uint16_t)':

graphicstest:321: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

                 w = tft.width()  + radius,

                         ^

graphicstest:328: error: 'h' was not declared in this scope

     for(y=0; y<h; y+=r2) {

                ^

graphicstest:329: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawCircle'

       tft.drawCircle(x, y, radius, color);

           ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'long unsigned int testTriangles()':

graphicstest:338: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   int           n, i, cx = tft.width()  / 2 - 1,

                                ^

In file included from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish.h:60:0,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/Arduino.h:30,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino:1:

graphicstest:342: error: 'cy' was not declared in this scope

   n     = min(cx, cy);

                   ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:39: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                       ^

graphicstest:345: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawTriangle'

     tft.drawTriangle(

         ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'long unsigned int testFilledTriangles()':

graphicstest:357: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   int           i, cx = tft.width()  / 2 - 1,

                             ^

In file included from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish.h:60:0,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/Arduino.h:30,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino:1:

graphicstest:362: error: 'cy' was not declared in this scope

   for(i=min(cx,cy); i>10; i-=5) {

                ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:39: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                       ^

graphicstest:364: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'fillTriangle'

     tft.fillTriangle(cx, cy - i, cx - i, cy + i, cx + i, cy + i,

         ^

graphicstest:367: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawTriangle'

     tft.drawTriangle(cx, cy - i, cx - i, cy + i, cx + i, cy + i,

         ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'long unsigned int testRoundRects()':

graphicstest:377: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

                 cx = tft.width()  / 2 - 1,

                          ^

In file included from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish.h:60:0,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/Arduino.h:30,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino:1:

graphicstest:381: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   w     = min(tft.width(), tft.height());

                   ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:35: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                   ^

graphicstest:381: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'height'

   w     = min(tft.width(), tft.height());

                                ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:39: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                       ^

graphicstest:381: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   w     = min(tft.width(), tft.height());

                   ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:43: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                           ^

graphicstest:381: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'height'

   w     = min(tft.width(), tft.height());

                                ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:47: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                               ^

graphicstest:385: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'drawRoundRect'

     tft.drawRoundRect(cx-i2, cy-i2, i, i, i/8, tft.color565(i, 0, 0));

         ^

graphicstest:385: error: 'cy' was not declared in this scope

     tft.drawRoundRect(cx-i2, cy-i2, i, i, i/8, tft.color565(i, 0, 0));

                              ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino: In function 'long unsigned int testFilledRoundRects()':

graphicstest:394: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

                 cx = tft.width()  / 2 - 1,

                          ^

In file included from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish.h:60:0,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/Arduino.h:30,

                 from C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino:1:

graphicstest:399: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   for(i=min(tft.width(), tft.height()); i>20; i-=6) {

                 ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:35: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                   ^

graphicstest:399: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'height'

   for(i=min(tft.width(), tft.height()); i>20; i-=6) {

                              ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:39: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                       ^

graphicstest:399: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

   for(i=min(tft.width(), tft.height()); i>20; i-=6) {

                 ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:43: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                           ^

graphicstest:399: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'height'

   for(i=min(tft.width(), tft.height()); i>20; i-=6) {

                              ^

C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\cores\maple/wirish_math.h:108:47: note: in definition of macro 'min'

 #define min(a,b)                ((a)<(b)?(a):(b))

                                               ^

graphicstest:401: error: 'class Adafruit_TFTLCD_16bit_STM32' has no member named 'fillRoundRect'

     tft.fillRoundRect(cx-i2, cy-i2, i, i, i/8, tft.color565(0, i, 0));

         ^

graphicstest:401: error: 'cy' was not declared in this scope

     tft.fillRoundRect(cx-i2, cy-i2, i, i, i/8, tft.color565(0, i, 0));

                              ^

Используем библиотеку Adafruit_TFTLCD_16bit_STM32-master версии 1.0.0 из папки: C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_TFTLCD_16bit_STM32-master 
Используем библиотеку Adafruit_GFX_AS в папке: C:\Users\MAKC-admin\Desktop\arduino-1.8.4\hardware\Arduino_STM32-master\STM32F1\libraries\Adafruit_GFX_AS (legacy)
exit status 1
'class Adafruit_TFTLCD_16bit_STM32' has no member named 'width'

stevestrong
Posts: 1950
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: 8-bit|16-bit parallell ILI9341

Post by stevestrong » Thu Oct 26, 2017 5:33 pm

OK, so 2. that was a bad idea.
Change it back, please.

Have you tried 1.?

MakcYan
Posts: 15
Joined: Tue Oct 24, 2017 6:27 pm

Re: 8-bit|16-bit parallell ILI9341

Post by MakcYan » Thu Oct 26, 2017 5:59 pm

point 1 I tried, then I 2 a point used.
After a point 1 on a display nothing appeared(

vegfokic
Posts: 8
Joined: Sun Sep 03, 2017 9:00 am

Re: 8-bit|16-bit parallell ILI9341

Post by vegfokic » Thu Oct 26, 2017 6:58 pm

Hello MakcYan

I also have white screen with 16 bit library from Steve.
Did you checked the serial monitor?
My serial monitor prints out the test result just the lcd white.

stevestrong
Posts: 1950
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: 8-bit|16-bit parallell ILI9341

Post by stevestrong » Thu Oct 26, 2017 7:26 pm

I think there is a simple reason why it is not working: there is bug here: https://github.com/stevstrong/Adafruit_ ... M32.h#L138 :mrgreen:
Please replace 0x44444444 by 0x33333333, in both places.
Mode value 4 means input floating, value 3 means output 50MHz.

So the line should look like:

Code: Select all

 #define setWriteDir() { TFT_DATA_PORT->regs->CRL = 0x33333333; TFT_DATA_PORT->regs->CRH = 0x33333333; } // set the bits as output

MakcYan
Posts: 15
Joined: Tue Oct 24, 2017 6:27 pm

Re: 8-bit|16-bit parallell ILI9341

Post by MakcYan » Fri Oct 27, 2017 2:32 pm

stevestrong wrote:
Thu Oct 26, 2017 7:26 pm
I think there is a simple reason why it is not working: there is bug here: https://github.com/stevstrong/Adafruit_ ... M32.h#L138 :mrgreen:
Please replace 0x44444444 by 0x33333333, in both places.
Mode value 4 means input floating, value 3 means output 50MHz.

So the line should look like:

Code: Select all

 #define setWriteDir() { TFT_DATA_PORT->regs->CRL = 0x33333333; TFT_DATA_PORT->regs->CRH = 0x33333333; } // set the bits as output
After changing 0x44444444 - 0x33333333 on the image on the screen has not changed - white screen.
I have my doubts about the pin PB2, resistor 100K Ohm can affect the work?
I'll try to switch the configuration pins of the controller to work with 8 bits.

Post Reply