Driving a HD44780 display using SPI Interface

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 2

  • @CollinWillson
    @CollinWillson ปีที่แล้ว

    Very cool! I got some 4x40 displays and im hoping to get this trick to help

    • @circuitguru9395
      @circuitguru9395  ปีที่แล้ว

      If the original works, this one will too - But only on AVR based arduino boards. I just came back for it!
      You can find schematics and library here: forum.arduino.cc/t/hd44780-boards-using-spi-interface/370420
      It is called LC4bitSPI.zip and it is just imported as any other library.
      Inside the library, there is an example, basically tou just add these two lines to the very top of the code:
      #include
      LiquidCrystal lcd(5);
      The number 5 is the pin used for the SPI CS pin. Other pins can be used, with exception for the SPI pins themselves and the analogue pins (Ax). If you were using the original library, delete any other numbers there, that were used for the paralel pins.
      The remaining pins are just SPI, same ones on the 6 pin programming connector, with exception of Reset.
      Good Luck!