Це відео не доступне.
Перепрошуємо.

Tech Note 045 - ESP32 ILI9341 TFT and how to use Hardware SPI for ultra fast graphics

Поділитися
Вставка
  • Опубліковано 15 сер 2024
  • Compilers for the ESP32 can be directed to use either Hardware or Software implementations of the SPI bus. Currently the Arduino IDE has implemented the Espressif VSPI bus and this video demonstrates the speed advantage of implementing the hardware solution. The video contains examples and a more detailed look at the implementation.
    Example code here: github.com/G6E...

КОМЕНТАРІ • 111

  • @sjookyh7666
    @sjookyh7666 2 роки тому +2

    Thanks for your video. I just received my ILI9341 SPI display and implemented your suggestions. The ratings are now 10 to 30 times faster. I use a Wemos Lolin32 lite board and that works. Thanks.

  • @JakobWierzbowski
    @JakobWierzbowski 5 років тому +1

    Dear G6EJD, you cannot imagine how much you've helped me. I'm kinda new to rapid prototying so... thank you so much! Lookin' forward to your videos.

    • @G6EJD
      @G6EJD  5 років тому

      Jakob, I’m am very pleased that I have been able to help you, that is what I’m trying to do with the videos.

  • @dafydds
    @dafydds 2 роки тому +1

    Thanks for posting the video! I've been working on a project that just needs a boost in performance to make a better UI and this has really helped me. 😃

  • @leonmoto1931
    @leonmoto1931 3 роки тому +2

    Thanks a lot for this video. What a nice performance improvement ! Greetings from Germany

  • @ra3apw
    @ra3apw 2 роки тому

    Thank you. This video helped me to solve the issue of display fast graphics for the ground station controller for HAM satellite QO-100. 73!

  • @fastslash25
    @fastslash25 5 років тому

    very cool, I didn't even know about this and all I did was change my constructor to the hardware spi one and now my screen is so much faster!

    • @G6EJD
      @G6EJD  5 років тому

      fastslash25 m, yes the IDE implements a so-called ‘bit-banged’ SPI bus when no hardware SPI pins are used.

  • @navjotsinghDhanoa
    @navjotsinghDhanoa 4 роки тому

    I've been breaking my head trying to get the TFT LCD ST7735 to work on the HSPI.
    After watching this video imma just stow away the ST7735 LCD and switch to an ILI9341.
    You give hope to get a LCD screen to work on the HSPI.
    Much Thanks. ₍˄·͈༝·͈˄₎ฅ

  • @jasonclough7140
    @jasonclough7140 4 роки тому

    Thank you very much. You have done a great service :-). I did two things wrong. 1, I added some extra parameters to the Adafruit_ILI9341 tft = Adafruit_ILI9341(_cs, _dc, _rst);. I added Mosi and Clock and the screen ran white and slow. After I just left your code alone it ran the same fast speed as yours but still white. 2, Somewhere I read to tie the reset pin on the LCD to 5v ?, so changed it to 3v and now all good. :--) :--) . LuaNode Doit esp32 with BangGood 2.4 ili9341 240X320.

    • @G6EJD
      @G6EJD  4 роки тому

      Good to hear. The ili9341 is a 3.3v device, so putting 5v on the reset would have likely caused errant behaviours.

  • @MrBobWareham
    @MrBobWareham 3 роки тому +1

    You are a wonder of knowledge thanks for the video

  • @OrgathmTech
    @OrgathmTech 6 років тому

    It works. Thank you. Its so much faster. Its the speed i had on the stm32f103 with hSPI. Now its time to switch over to ESP :-)

  • @nanomaX88
    @nanomaX88 Рік тому

    danke danke danke you helped a lot ! rudi from österreich

  • @aspimaker
    @aspimaker 2 роки тому

    Thanks.... great video !!

  • @LucasGuillemette
    @LucasGuillemette 5 років тому

    Best explanations, thorough work. Thank you

  • @wi_zeus6798
    @wi_zeus6798 6 років тому +2

    Thank you for your video!

  • @moormoor4281
    @moormoor4281 3 роки тому +1

    Thank you for your help

  • @astrogerard
    @astrogerard 4 роки тому

    Good explanation, this helped me a lot. Thanks!

  • @julioarredondo542
    @julioarredondo542 4 роки тому +1

    hi ypu have a video showing how to use the touchscreen with this feature?, thanks

  • @CraigHollabaugh
    @CraigHollabaugh 6 років тому

    Thanks. This showed exactly what I was looking for.

    • @G6EJD
      @G6EJD  6 років тому

      I've found that the pins for hardware SPI are fixed for most boards, but you (e.g. ESP32 is 5-CLK and 23-MOSI), but if you look at the boards.txt file in the Arduino IDE, then you can change the pins around a little. I find it's easier to have all SPI pins grouped together on a dev-board, so the cabling is easier/neater.

    • @CraigHollabaugh
      @CraigHollabaugh 6 років тому

      G6EJD thanks, I'll get that straightened out when the time comes.

  • @akasickform
    @akasickform 6 років тому

    Excellent video!
    I was wondering if there was a chance that the SSD1289 could be covered in the same fashion?
    I've been struggling with it for a while. I also watched your hardware SPI and other videos, all of which are great!
    Keep making videos.
    This is an amazing resource.

    • @G6EJD
      @G6EJD  6 років тому

      Well there’s no doubt the majority of SSD1289 displays have an SPI interface and there are drivers around for the Arduino IDE and so it should not be that difficult to get one working, I don’t have a display to try so can’t help at the moment. I self fund all of my videos and devices so I have to work within what I need and have at my disposal. If you need help I’ll gladly provide that. Have you tried connecting the display up as per an SPI bus including DC connections, etc.

  • @billybbob18
    @billybbob18 Рік тому

    I'm running my TFT at 80mhz. Confirmed with a 200mhz scope.

  • @G6EJD
    @G6EJD  6 років тому

    Yes if you buy the correct display, some don't have the touch device fitted, but if they do they usually share the SPI bus connections and require one extra connection for Touch-CS (chip select). There is much discussion on the Squix forum (he uses the touch sensor) about the device XPT2046 as some don't work, the question is, are the displays sold cheap because they are faulty or is the chip a fake or is the chip different, no-one is really sure. The one I have works OK. You can get a touch event (someone touched the screen) and then get coordinates of the touch which is then easily matched to some virtual grid to determine what the touch request is - a button press for example. Hope this helps.

    • @Wuety06
      @Wuety06 6 років тому

      I cant get the xpt2046 to work worth a damn. gonna try it full seperate connection before i make any conclusions. when I recived the screen i swapped out the dupont header for jst xh and jummpered the Din Dout over to MOSI and MISO..same with clk. i used like a 4pin but only populated 2 to bring down the alert and cs for the touch. I've been able to see screen pressure readings and last night I was getting reports of possition untill i touched it then it read 0,0 but obviously this is total shit and im geting sick of wasting time.

    • @G6EJD
      @G6EJD  6 років тому

      Fake chip suspected on your board, or at best out of specifications. It’s prevalent, maybe the manufacturer sells boards that don’t pass QC and these are then sold to us by unscrupulous suppliers.

    • @Wuety06
      @Wuety06 6 років тому

      ive got another display where i slipped while soldering on the floor (had 3 work benches 12 months ago... long story) I also have some chipquick low melt (not required but nice) I think ill swap and see if that one does any better before exploring other routes.

    • @Wuety06
      @Wuety06 6 років тому

      I just swapped dead display 1s touch chip on to display 2 and now between some random(will look it up in a bit)library for touch and ada's display library i have both working! good call on bad chip!

    • @G6EJD
      @G6EJD  6 років тому

      Good to hear everything is operating as expected.

  • @BuiltNotBoughtUK
    @BuiltNotBoughtUK 6 років тому

    Great guide! Any chance you can do a new video on how to get the touch to work? thanks!

    • @G6EJD
      @G6EJD  6 років тому +1

      There are many so-called fake touch sensors on these screens, some work some don't, it depends on the supplier. There are many forum discussions about this topic see here: blog.squix.org/2017/07/esp8266-weatherstation-update-using-touch-interface.html they may have solved the problem for you.

  • @browaruspierogus2182
    @browaruspierogus2182 6 років тому

    I don't know what means hardware SPI and software SPI. ESP32 has 3x hardware SPI available the only thing that matters is the pins you connect to.
    With native(dedicated) pins it runs blasting fast whether on other pins it is a bit slower but not that much - slower because it needs some delay for proper timings however there is already a work around that fixes that in latest idf.

    • @G6EJD
      @G6EJD  6 років тому

      Agreed, but the compiler will emulate the SPI bus if you choose other GPIO ports that don’t have an SPI device internally connectable via the pins multiplexer do you can do both, hardware internal SPI bus controllers and software via an emulation using nearly any gpio pins.

    • @browaruspierogus2182
      @browaruspierogus2182 6 років тому +1

      This is not what the technical reference says and it is not true. If you choose other GPIO pins you still have hardware SPI but with slightly reduced speed - maybe 10%
      I tested it myself. Maybe Arduino is running some procedure based on manual bit/io manipulation with CPU instructions which is just very bad and slow.
      That's why you should't use Arduino when it comes to projects that need performance

  • @maartenvermeij5446
    @maartenvermeij5446 5 років тому +1

    I just ran your example files and got very comparable results, except for the "Lines" test (Lines 221590 in stead of ~20000). Do you have any idea why this could be?
    ILI9341 Test!
    Display Power Mode: 0x0
    MADCTL Mode: 0x0
    Pixel Format: 0x0
    Image Format: 0x0
    Self Diagnostic: 0x0
    Benchmark Time (microseconds)
    Screen fill 195239
    Text 23588
    Lines 221590
    Horiz/Vert Lines 17353
    Rectangles (outline) 11309
    Rectangles (filled) 405569
    Circles (filled) 69598
    Circles (outline) 97600
    Triangles (outline) 48862
    Triangles (filled) 148905
    Rounded rects (outline) 36590
    Rounded rects (filled) 410276
    Done!

    • @G6EJD
      @G6EJD  5 років тому +1

      If your using the Adafruit driver than they have changed the line drawing function, you could go back a few versions to see what’s different

    • @maartenvermeij5446
      @maartenvermeij5446 5 років тому +1

      Thanks for the quick reply. There are indeed changes to the lineDrawing function. I could not pinpoint a version that has the better results though. No Problem.

    • @G6EJD
      @G6EJD  5 років тому +1

      maarten vermeij, it’s been updated so many times it would take a while to go through the github changes, but it will show the changes. Ideally a change log would be maintained, but alas not.

  • @akj7
    @akj7 6 років тому

    Thanks man.

  • @utsavsuha
    @utsavsuha 6 місяців тому

    Is this kind of SPI port is available in the STM32 as well.?

    • @G6EJD
      @G6EJD  6 місяців тому

      Yes

  • @Jdecode
    @Jdecode 2 роки тому

    Estoy impactado casi me cago encima entonces puedo hacer 14 veces más fluido mi sistemas tengo que rediseñar todo mi ecosistema, siempre pence que la diferencia era minima

  • @KP-bv6rh
    @KP-bv6rh 4 роки тому

    This is genius! What a difference! How did you figure it out?
    Also, if I need to use software implementation on another connected device how to do it? SPI.begin only accepts three parameters, which seems to then conflict with the Adafruit_ILI9341 function.
    Thanks again for this, and your many other excellent videos.

    • @G6EJD
      @G6EJD  4 роки тому +1

      All SPI devices with the exception of an individual Chip Select line share the same bus, so wire them all in parallel. The CS separates and control individual devices. Using the software implementation allows any pins to be used but slows down the bus speed as the software has to manage the protocol rather than hardware. But in general you can always use the hardware assignment of pins leaving just the CS to be assigned by SPI.begin.

    • @KP-bv6rh
      @KP-bv6rh 4 роки тому

      @@G6EJD Thanks Dave. My current project involves both an ILI9341 and a RC522. The MFRC522 library I'm using only accepts the CS and RST pins as parameters for init while the Adafruit ILI9341 library (as I now know thanks to you) offers the flexibility for both hardware and software SPI configurations. Are you saying I can simply connect the MOSI, MISO, SCK for both devices to pins 23, 19, 18 on the typical ESP32 board? I'm using one with the ESP-WROOM-32. Thanks again for all that you do.

    • @G6EJD
      @G6EJD  4 роки тому

      KP Smart, if you put the ili9341 display to one side, the Arduino IDE allows the SPI bus to be simulated in software and use pins defined in the code, to use the hardware SPI you must use the pins defined for the board that are in turn connected to the ESP32 hardware SPI pins. So to use a hardware SPI bus yes you must connect all your SPI devices in parallel and then tell the compiler and libraries which pins will be the CS and Reset, etc, this is why all device libraries assume MOSI, MISO and CLK will be as defined for the chip. So you need a CS for the display and CS for the other device, it’s possible you could share the Reset pin with both devices if they don’t mind being reset multiple times, so the first device.begin will reset the display and other device then the next device.begin will reset them both again. If you have the spare pins then use them and have separation. DC can be shared but BUSY will need a separate pin per device.
      For the ili9341
      Vcc-Vcc
      Gnd-Gnd
      MOSI-MOSI
      MISO-no connection
      CLK-CLK
      GPIOpin-CS1
      GOIOpin-BUSY1
      GPIOpin-DC
      GPIOpin-RESET1
      Next device:
      MOSI-MOSI
      MISO-MISO if device supplies data
      CLK-CLK
      GPIOpin-CS2
      GPIOpin-BUSY2
      GPIOpin-DC
      GPIOpin-RESET2
      So you need 6 spare GPIO pins for 2 devices common MOSI, MISO, CLK and DC, then individual CS, BUSY and RESET pins.You can double up on RESET and BUSY if there is no library interaction and both devices will never be used at the same time or subject to reset commands other for example your display would be reset during a maybe routine reset of the other device. Hope this helps.

    • @KP-bv6rh
      @KP-bv6rh 4 роки тому

      @@G6EJD A thousand thanks David! I needed the display to respond quickly to the card read and it does. You deserve a Nobel Prize of some sort with all the education and assistance you provide for others. The extra attention you give to promoting understanding for your viewers sets you apart. Much thanks again!

  • @MrSasha3050
    @MrSasha3050 6 років тому

    thank you

  • @jakecorday8949
    @jakecorday8949 6 років тому

    Hi G6EJD,
    Thanks for the video! Very helpful as a beginner in electronics. I was wondering if there was any way you would be willing to provide some tips on a project I'm currently working on?
    Looking forward to hearing from you!
    Best,
    Jake

    • @G6EJD
      @G6EJD  6 років тому

      Hi Jake, yes of course I’d be glad to help, let me know what your project is and what things your aiming to achieve, regards Dave

    • @jakecorday8949
      @jakecorday8949 6 років тому

      Awesome! Thanks so much. Would you mind switching to a forum for us to discuss privately such as facebook or email?

    • @G6EJD
      @G6EJD  6 років тому

      Please go to my website and the contact me link and that will establish an email link.

    • @jakecorday8949
      @jakecorday8949 6 років тому

      Just submitted the form on your site. Looking forward to chatting more!

  • @YanisV605
    @YanisV605 Рік тому

    I'm using ESP32-WROVER. Do I have to use GPIO18 for SCLK and GPIO23 for MOSI?

    • @G6EJD
      @G6EJD  Рік тому

      No you can reassign them to any pin numbered less than 32 see SPI.begin( statement

    • @YanisV605
      @YanisV605 Рік тому

      @@G6EJD Is that for hardware SPI?

    • @G6EJD
      @G6EJD  Рік тому

      It depends on the Compiler and how it’s setup to configure SPI that’s not using the hardwired SPI pins. In the case of the Arduino IDE it may switch to a software SPI emulation. The device itself can accept any pins for the hardware SPI bus via its GPIO multiplexer.

  • @stefanstojanovic3994
    @stefanstojanovic3994 6 років тому

    Should TFT VCC be connected to 3.3V and not 5V ? Is it safe to run TFT with 5V signal together with ESP32 that is using 3.3V ?

    • @G6EJD
      @G6EJD  6 років тому

      Hi, nearly all of the TFT displays require a 5v supply (Vcc) but the LED source/Backlight needs to be driven by a 3v3 source and ideally through a 100-120R resistor to limit current. You can PWM an output pin and connect that to the LED pin and then the average current is well within the ESP8266 output sourcing capability. Some displays need level shifters some not, I look for the ones that say 5/3v3 as they have in-built level shifters otherwise they won't work.

  • @145.
    @145. 23 дні тому

    thanks man... i works now but the upper/lower part of the Screen from the smaller site does not refresh while the test is running
    lookks like its Glitching
    do you know why? or is my display rigged? Thanks in advance

    • @G6EJD
      @G6EJD  23 дні тому

      @@145. the ili9341 display driver is a widely used chip and I’ve never heard of such an issue, so I can only conclude your display is faulty. There are many that are or were sold that were clearly out of specification and so low cost and very many had no working touch chip or touch panel fitted. Only a reputable supply can ensure success.

    • @145.
      @145. 23 дні тому

      Okay Thanks a lot.. maybe i just have some bad lucky on these... i will try anything to get them running but i dont want waste ALL my time 🫤​@@G6EJD

    • @145.
      @145. 22 дні тому

      Damn bro.. I got it... 2 weeks later just to find out that i used a wrong pin on the esp... Oh men i cant tell how dumb it was👍🏼😂 But now everything works... Anyway thanks a lot and have a nice day/evening​@@G6EJD

  • @14sulli14
    @14sulli14 5 років тому

    Thanks for this.
    I'm developing a system using the ESP32-Wroom-32.
    The peripherals of my system are x1 ADC chip (which uses SPI) and x1 microSD card (SPI or SDIO).
    My understanding is that the board has x3 SPIs I can use (SPI, HSPI, VSPI).
    However, the HSPI pins (IO12-15) are used for the JTAG debugger, which I need.
    I will connect my ADC chip to VSPI, that should be fine.
    Finally, I need to connect the microSD card to either SPI or SDIO.
    Can I use the SPI port, or is that used internally for flash memory?
    The datasheet is not very intuitive and I can't figure out if I can use those pins (named: CLK, SDO, SDI, CMD), or if they are already used for on board flash or something?
    Thanks for your help.

    • @G6EJD
      @G6EJD  5 років тому

      Mark, you connect your SPI devices to the same buss and use different CS pins for each device. Another SPI bus is used for the flash memory. Not all IDE’s enable access to the 3 SPI buses, Arduino does not enable this for example.

    • @G6EJD
      @G6EJD  5 років тому

      BTW the SD card library doesn’t work yet AFAIK due to hardware issues. I last tried it about 2-weeks ago. Loading issues on the bus. Either that or make sure you use a buffered SD card reader-writer, not many around.

  • @karnasiwantarasuara9418
    @karnasiwantarasuara9418 4 роки тому

    thanks,

  • @MPElectronique
    @MPElectronique 6 років тому

    Is it touch compatible ?
    Thank you.
    Marc.

  • @hayalci_33
    @hayalci_33 5 років тому

    @t
    @t
    ESP32 and LCD module TFT 2.4 inch TFT LCD screen I want to make weather with two cards How do I do this?

  • @danielgago-sk
    @danielgago-sk 4 роки тому

    The software SPI on ESP32 is so speed as HW SPI on Arduino... :-)

    • @G6EJD
      @G6EJD  4 роки тому

      Daniel Gago, yes the advantage of a much faster CPU combined with dedicated SPI hardware

  • @TutocarloCV
    @TutocarloCV 6 років тому

    nice

  • @psyduckel
    @psyduckel 6 років тому

    Hey G6EJD,
    I tried your code on my stm32 board (NODE-L476RG), the software spi code seemed to run at a comprable speed to your ESP32 however, the hardware spi code ran much slower (slower than the software SPI). Do you know why this is?
    Any reply would be really appreciated.

    • @G6EJD
      @G6EJD  6 років тому

      This will all be a function of the compiler and how it implements the SPI bus. For example if you specify an SPI bus on general purpose GPIO pins none of which have an SPI secondary function then the compiler has to create a software based SPI bus, but if you just happened to have chosen pins that can also support hardware SPI; you need to examine the layout of your board to check what pins are made available, where and for that board the device supports 3 standard and 1 quad SPI buses. Without inspecting the compiler choices made to confirm, the effect your seeing is a function of the compiler and the pins you’ve chosen.

  • @saket3143
    @saket3143 6 років тому

    Hey G6EJD, at the end [3:43] you mentioned that LOLIN's esp32 board does not support HSPI. Can you please elaborate on this. I am interested in buying an esp32 and running it with ili9341 screen. It would be helpful to know more about this. Thanks

    • @G6EJD
      @G6EJD  6 років тому

      The ESP32 device has 4 SPI ports, 2 are used internally so-to-speak leaving the ports HSPI and VSPI. What I meant was the HSPI port has not been brought out to pins, so you only have VSPI which will drive the ILI9341 without any problems. The LOLIN32 board is about the best you can get IMO.

    • @saket3143
      @saket3143 6 років тому

      They also came up with a Lite version of their board [ wiki.wemos.cc/products:lolin32:lolin32_lite ] . Any opinions on that ? I assume its V1 and the better silicon one.

    • @G6EJD
      @G6EJD  6 років тому

      Yes I have some of those boards (Lite), the UART Is slower (CH340) and power consumption a little less when USB powered, programming speed is limited to 256000buad, non-Lite 962100. Power consumption in sleep is higher than the regular LOLIN32 board, so overall not as good as the standard LOLIN32 IMO. Yes silicon is Rev.1 but then most are now. It makes very little difference, yes the boot process uses less current, but that's all I've ever seen as a difference.

    • @Architect0711
      @Architect0711 6 років тому

      Great video man, everything i was looking for! So I bought 3 of these smaller ESP32 boards about which you said the HSPI pins are not brought out for use. Do you think i could just solder some tiny wires to the package and attach them to a second row of headers? might be a bit fiddly but I have good tools at work! and if i break my board i can still buy a new one :P just seems like a waste not to bring out more than half of the pins. I was thinking of attaching a header to both sides, bringing out GPIO 25, 26, 27, 32, 33, 34 and 35 on one side and GPIO 16, 17, 18, 19, 22 and 23 on the other side! But when looking at your SPI -> GPIO pin assignment overview, I see that HSPI uses GPIO2, 4, 12, 13, 14 and 15.... and the board I have has GPIO 0, 2, 4, 5, 12, 13, 14 and 15 brought out so it should work? Any thoughts on that? :)

    • @Architect0711
      @Architect0711 6 років тому

      This is the board that I have:
      ae01.alicdn.com/kf/HTB1BC5DQFXXXXaFXVXXq6xXFXXXj/ESP32-Rev1-ESP-32-WiFi-Modules-Bluetooth-Dual-ESP-32-ESP-32S-ESP8266.jpg_640x640.jpg
      And this is the Datasheet for the ESP32 on that board.
      www.espressif.com/sites/default/files/documentation/esp-wroom-32_datasheet_en.pdf

  • @legoscratch
    @legoscratch 6 років тому

    I must be doing something wrong here, software spi works fine but after changing the file definitions to hardware spi:
    static const uint8_t SS = 15;
    static const uint8_t MOSI = 13;
    static const uint8_t MISO = 12;
    static const uint8_t SCK = 14;
    and using this code:
    #define TFT_DC 16
    #define TFT_CS 17
    #define TFT_RST 5
    // Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
    Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
    It Doesn' t work at all! What am i missing?

    • @G6EJD
      @G6EJD  6 років тому

      It depends on which board/device your using and I’m assuming your using the Arduino IDE. When you choose to use hardware SPI the pins are defined for you take a look in the Arduino IDE folder there’s a hardware folder (from memory this) and then Espressif, then boards then choose the board your using then open that folder and you will find a pins file that the compiler uses to assign SPI pins, those are the pins you have to use, as your definitions are ignored in the code because the hardware is already assigned to the pins usually 18, 23 and 5 the rest can be assigned. In my video I show how to find the pins assigned by serial.println(MOSI) and the same for MISO and SS and SCK those are the only pins that are fixed.[Edited to remove iPad quaint spelling corrections]

    • @G6EJD
      @G6EJD  6 років тому

      Check out the file in the Arduino IDE folder e.g. : ArduinoIDE\hardware\espresssif\esp32\variants\lolin32
      You will see the boards listed if you go up one level from my example above. Serial.println(MOSI), etc is just as easy really to find out the pin numbers. Connect your display accordingly to these pins.

    • @G6EJD
      @G6EJD  6 років тому

      Tech Note 064 might help too.

    • @legoscratch
      @legoscratch 6 років тому

      OK thanks so much its working now

  • @MrSasha3050
    @MrSasha3050 6 років тому

    Have drawing pictures by spi on this display?

    • @G6EJD
      @G6EJD  6 років тому +1

      Yes there is a library function that will draw bmp images

  • @JL-sn1wn
    @JL-sn1wn 6 років тому

    it seems that nodemcu 32s also does not support hardware SPI I guess. It dosent work on my chip. Anyone who has the same issue?

    • @G6EJD
      @G6EJD  6 років тому

      Jie Lei Have you determined what P.O. S are used for the SPI bus you can try a short programme to find out like this:
      Serial.println(MOSI);
      Serial.println(SS);
      Serial.println(SCK);

    • @G6EJD
      @G6EJD  6 років тому

      docs.zerynth.com/latest/official/board.zerynth.nodemcu_esp32/docs/index.html

    • @G6EJD
      @G6EJD  6 років тому

      It definitely supports hardware SPI you just need to find the pins or look in the ide to find the hardware pins file I did a video on this.

  • @hayalci_33
    @hayalci_33 5 років тому

    esp32 & st7781 2.4 inc tft lcd What are pin equivalents?

    • @G6EJD
      @G6EJD  5 років тому

      Hobi Kanalı, that display type is a parallel input not SPI so not useable/applicable in this context. There is an Arduino 7781 library and that might give connection details, but you will need lots of spare GPIO pins to get it working.

    • @hayalci_33
      @hayalci_33 5 років тому

      @@G6EJD I would like to make weather if you tell me how to do

    • @G6EJD
      @G6EJD  5 років тому

      You can’t with that sort of display, it’s too complicated, you need an ili9341 type. Then most examples will work.

    • @hayalci_33
      @hayalci_33 5 років тому

      @@G6EJD prnt.sc/nx2357
      prnt.sc/nx232u

    • @hayalci_33
      @hayalci_33 5 років тому

      @@G6EJD thank you then got it in vain

  • @PakiNewsNetwork
    @PakiNewsNetwork 4 роки тому

    how do i know if its ILI9341?

    • @G6EJD
      @G6EJD  4 роки тому

      tradecycles, you have to rely solely on the sellers description as the boards are not usually marked with the display driver type.