Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    ILI9163C display on WiPy 3.0 + EB v3.1

    Scheduled Pinned Locked Moved WiPy 2&3
    9 Posts 3 Posters 74 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      NickBoots
      last edited by

      Hello, trying to get a ILI9163C to work on my WiPy 3.0 via an Expansion Board v3.1, but having no luck yet.

      It's one of those Red PCB displays with '1.44' SPI 128 x 128 v1.1' written on the back.

      I connected it as followed:

      SPI Screen <-> WiPy 3.0
      LED/D/C    <-> Pin 5
      SCK        <-> Pin 10
      SDA        <-> Pin 9
      A0/Data    <-> Pin 11
      Reset      <-> Pin 6
      CS         <-> Pin 7
      Gnd        <-> Gnd
      VCC        <-> 3.3v
      

      Then proceeded to try it with the following library: https://github.com/PrestonHackspace/esp32-micropython/blob/master/sys/lib/ili9163.py

      And using this script to test it:

      from ili9163 import ILI9163_SPI
      from machine import Pin, SPI
      
      spi = SPI(0, mode=SPI.MASTER, baudrate=100000, polarity=0, phase=0)
      ili = ILI9163_SPI(128, 128, spi, Pin('P5'), Pin('P6'), Pin('P7'))
      ili.text('Hello World', 0, 0, 1)
      

      The display seems to stay off until the ili object is constructed, after which the backlighting turns on, I assume that's just because Pin 5 starts powering it, but after that, nothing seems to make it show anything, so I'm a bit at a loss here, anyone any idea what might work?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • N Offline
        NickBoots
        last edited by

        No one any idea? Still stuck here.

        J 1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @NickBoots
          last edited by

          @NickBoots You have to call

          ili.show()

          to make visible what you have set up in framebuf with ili.text()

          1 Reply Last reply Reply Quote 0
          • N Offline
            NickBoots
            last edited by

            Tried it out, but it sadly did not show anything still.

            robert-hhR 1 Reply Last reply Reply Quote 0
            • robert-hhR Offline
              robert-hh @NickBoots
              last edited by

              @NickBoots It looks like the Pin assignment for SPI is wrong. Since you use the default pins, you have to use P10 for CLK and P11 for MOSI, which is the data pin. The terms SDA and SCL are used for I2C interfaces.

              1 Reply Last reply Reply Quote 0
              • N Offline
                NickBoots
                last edited by

                Hmm, weird, the pinout on the board names these, at least, as it literally reads out on the bottom, the pins are labelled as follows:

                LED
                SCK
                SDA
                A0
                RESET
                CS
                GND
                VCC
                

                Yet the text above it claims its an SPI display...

                robert-hhR 1 Reply Last reply Reply Quote 0
                • robert-hhR Offline
                  robert-hh @NickBoots
                  last edited by robert-hh

                  @NickBoots Yes, you must check which mode the device is in. There should a data sheet. A0 is definitely not required for SPI, It looks like the I2C address select.
                  But still the default pin assignments for I2C and SPI are different. I2C uses P9 and P10, SPI uses P10, P11 and P14.

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jean Bikie @NickBoots
                    last edited by

                    @NickBoots can you look this link : https://lemariva.com/blog/2016/12/wipy-2-0-weather-report-box
                    may be it could help you.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      Jean Bikie
                      last edited by

                      did you find a solution ?

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • 1 / 1
                      • First post
                        Last post

                      Pycom on Twitter

                      Pycom