ST7920 128x64 LCD library demo

Поділитися
Вставка
  • Опубліковано 27 вер 2024
  • Connections in SPI mode (only 6 wires between LCD and MCU):
    #01 GND - GND
    #02 VCC - VCC (5V)
    #04 RS - D10/CS or any pin
    #05 R/W - D11/MOSI
    #06 E - D13/SCK
    #15 PSB - GND (for SPI mode)
    #19 BLA - VCC or any pin via 300ohm
    #20 BLK - GND
    Library code available here:
    github.com/cbm...
    If you find it useful and you want to buy me a coffee or a beer:
    www.paypal.me/...
    Music:
    Hybris Title Music by Paul van der Valk
    Performed by Tony Fluke Wiren
  • Наука та технологія

КОМЕНТАРІ • 87

  • @KaradevNetLtd
    @KaradevNetLtd 3 роки тому

    i made it yesterday with little change in your code for software spi and set on any pin in pico rpi2040. Working in text mode now, but later will make and graphical. Now i need to show hardware fonts to can use it for text mod, when i make a graphical mode will make all fonts that i found in internet for this lcd. best regarss for your work, the best lib for this lcd ever :)

  • @HSelimSerdar
    @HSelimSerdar 4 роки тому +2

    Thank you man. There is no library better than this!!!

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

      ​@Kaysen Griffin for example, I don't care, you scammer

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

    Hello can you help me to control the screen without microcontroller
    or with arduino but without library

  • @leituraespirita6502
    @leituraespirita6502 4 роки тому +3

    Seems pretty fast ideed! Thanks for sharing.

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

    As long as the CLS command works I will be one happy camper Thanks

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

    Thank you for this work and sharing !

  • @Celcius1
    @Celcius1 3 роки тому

    This is a great driver, but I'm going to have to fork your driver and re-code it for use specifically the ATMega2560, as I am running timing critical routines and the current setup is too slow! Need to squeeze, every bit of speed out of my current project, as I am using 2 screens displaying information, but the draw routines are run on a timer, so has be within strict timing intervals

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

    esa librería se puede aplicar en pic c Compiler. si es así , pondrías solo un ejemplo. por favor

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

    Hello, great job here. In the same project I need to use your example here but also an nrf24l01 transceiver module. Both are using D10/CS, D11/MOSI and D13/SCK. Any idea how can work together?

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

    Hi! great job! congrants, have you got a invert screen function?

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

    4:00, what I was looking for
    wanted to check the capabilities and mainly refresh rate
    thank you

  • @KaradevNetLtd
    @KaradevNetLtd 3 роки тому

    hi, i try to use this lib but need to set different pins for SCK, MOSI, CS, WITH RASPBERRY PICO BOARD RPI2040. but nowhere in software i can not find to set my pins for proper communication. i am using rpi pico with arduino ide, found a text font file and example HELLO world compile fine, but can not set my pin connection to software. what i need to do ???

    • @cbm80amiga
      @cbm80amiga  3 роки тому

      I don't have PICO so tested it with AVR only where hardware SPI is used for good speed.

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

    sick library dude! really impressive!a question on speed: would these displays be useful for displaying rapidly changing numbers? because from what I've seen in this video the pixel response time (clear to black) seems to be about 300ms, which, compared to say OLED, is quite long.

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

      Definitely not. This one is very slow, even worse than Nokia LCD.

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

      thanks!

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

    Thank you so much, this is really cool library for lcd st7920.
    Exist some way to rotate screen by software?

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

      You mean 180deg? You would need to copy screen buffer to LCD in reverse order.

  • @westiand
    @westiand 3 роки тому

    Hello thank you for this work, how can I print int float or another variable on display, which method?

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

    Wow the performance of this library looks great! Gonna have to get a display and try it out. Do you have a link to the display that you used?

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

      I don't have a link. But look for ST7920 LCD at Aliexpress

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

      cbm80amiga ok, thank you!

  • @gyorgyolasz9656
    @gyorgyolasz9656 3 роки тому

    Great lib!
    Can You share the detailed function list with all parameters?

    • @cbm80amiga
      @cbm80amiga  3 роки тому

      All methods are in header file: github.com/cbm80amiga/ST7920_SPI/blob/master/ST7920_SPI.h

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

    Hello congratulations for the video, really well done. I have an information to ask but where can I get the font library from?

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

      You can find everything on my GitHub

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

      @@cbm80amiga sure ? I don't find it

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

      @@valerioguagenti9955 There are PropFonts and RRE libraries with a lot of fonts and examples

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

    best regards for your work, the best lib for this lcd ever :)

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

    można prosić o link do wyświetlaczy, na ali pełno ich, ale nie chcę kupić z trybem równoległym, tylko właśnie na SPI albo I2C?

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

      Kazdy, ktory ma wyprowadzone PSB bedzie ok. Chinczycy czesto pisza, ze jest tylko polaczenie rownolegle co jest nieprawda.

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

      @@cbm80amiga Dziękuję za info, bo bardzo ciekawe są te lcd w porównaniu z oklepanymi KS0108 czy T6963.

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

    Hi, thanks for sharing, does it works with esp32?

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

      I think so

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

      @@cbm80amiga Hi I have a same problem. If I compile your code for esp32 it says that you doesnt have a alternative for avr/pgmspace.h library for esp32. Because avr/pgmspace.h library is aparently only for avr platforms only.

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

    Great

  • @abb9236
    @abb9236 3 роки тому

    Where can I download the library?("c64enh_font.h")

    • @cbm80amiga
      @cbm80amiga  3 роки тому

      Look at my github

    • @abb9236
      @abb9236 3 роки тому

      @@cbm80amiga Could you give me the GitHub link?

    • @cbm80amiga
      @cbm80amiga  3 роки тому

      @@abb9236 Look for PropFont library as described in the code

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

    Can you guide me how to connect LCD 128x64 17pin?

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

      17th pin is not connected

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

      Can you help me determine the connection pins? I really want to make. can i contact you via email?

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

    Awwwwwwwesome man,

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

    excellent. waooo

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

    Funciona essa biblioteca com o pic18f?

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

      This is Arduino library mainly for AVR but should work with other Arduino compatible MCUs

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

      @@cbm80amiga explícame un poco mejor eso. por favor.

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

      @@montanacarvalo Ale co tu wyjasniac wiecej, biblioteka jest pod Arduino. Jak chcesz to przerob ja sobie pod dowolna platforme, masz przeciez zrodla.

  • @westiand
    @westiand 3 роки тому

    Hello thank you for this work, how can I print int float or another variable on display, which method?

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

      Look at the examples. Convert float or anything to string and print it.

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

    Really really fantastic Library, in my case using arduino nano I have to use RS to D10, R/W to D11 and E to D13 and works great, my congrats , excelent job to use arduino with this LCD driver ST7920

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

      Carlos, pins were switched in the description, indeed. Thank you for noticing that :)

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

    Hello. First of all, thanks for the video. I have an 18-pin "AV Display" LCD, I want to drive it with an arduino, but I couldn't find a datasheet about its pins. It says "HY-12864Z-801R" on the label. Do you know this model? Can you help me how to drive or what are the pins?

  • @ВиталийМасесов
    @ВиталийМасесов 2 роки тому

    The library is cool! When connected to Arduino Uno D10 / D11 / D13, everything works. But when connected to Arduino MEGA D10 / D11 / D13, the display does not work. Maybe use other pins for mega?

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

    Hello world example just gives compile error on this include: c64enh_font.h

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

    I need a graphic lcd asap this is awesome

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

    Excellent. I'm going to get a couple of these to play around with!!

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

    Hi, I have an inudustriat equipment with VP12864G-01 LCD, can I replace it with directly with this type LCD ?

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

      I think so if it is exactly the same model

  • @winbox4.071
    @winbox4.071 3 роки тому

    Great work. Thanks for sharing !

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

    Genius 🔥

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

    Can this somehow be ported to ks0108 and ili9341 lcds too?

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

    is it possible to use a font other than "c64enh" ?

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

      On my GitHub you have a lot of fonts (regular proportional or RRE)

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

      @@cbm80amiga I combine rre font and digi font, how can I combine 2 types of fonts without declaration conflict in arduino IDE?
      DigiFont font(customLineH,customLineV,customRect);
      RREFont font;
      ERROR report :
      "conflicting declaration 'RREFont font"

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

      @@ayaaca8500 You have to change names of conflicting callbacks. Look at ua-cam.com/video/MBehHqti35w/v-deo.html for more details

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

      @@cbm80amiga thank u sir, its work

  • @a.a.patrick
    @a.a.patrick Рік тому

    Great job,
    I bought this display months back but have not got time to drive it.
    your library is just handy.
    please let me ask question on the 2 functions where you are sending data and command.
    The section appears you are doing 4-bits mode transfer, is there reason for this?
    See the 2 lines commend I added.
    If the display can take 8bits which is supported by most SPI, then see my suggestion.
    void ST7920_SPI::sendData(byte b)
    {
    SPI.beginTransaction(SPISettings(SPI_SPEED, MSBFIRST, SPI_MODE3));
    digitalWrite(csPin, HIGH);
    SPI.transfer(0xFA);
    SPI.transfer(b & 0xF0); //sending High 4bits
    SPI.transfer(b

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

      I don't remember now, but probably LCD driver required two 4-bit transfers. Does your modification work with your LCD?

    • @a.a.patrick
      @a.a.patrick Рік тому

      @@cbm80amiga I have moved out of town and do not have my hardware handy.
      But soon I will get one in my new location. When try I will report back.