Nokia 5110/3310 LCD with PCD8544 controller driver.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
Zack Marvel 51c7630ccb Remove ChibiOS example code to another branch 2 anos atrás
font Ignore png, gif in font dir 2 anos atrás
include LCD driver: change header macros to enums; polled SPI call for sendCommand; added drawRect 2 anos atrás
src PWM thread for backlight; lcdDrawString function 2 anos atrás
.gdbinit Initial commit 2 anos atrás
.gitignore Ignore gcc outputs 2 anos atrás
README.md Initial commit 2 anos atrás
lcd5110.mk Remove ChibiOS example code to another branch 2 anos atrás
openocd.mk Remove ChibiOS example code to another branch 2 anos atrás

README.md

LCD5110

Prototyping a driver for Nokia 5110/3310 LCD with PCD8544 LCD controller.

Hardware: STM32L432KC Nucleo-32 development board.

Pins:

  • SPI1:
    • CS: D10/PA11
    • MOSI: D11/PB5, AF 5
    • MISO: D12/PB4, AF 5
    • SCK: A1/PA1, AF 5
  • DC: D2/PA12
  • RST: D4/PB7

Building

I used ChibiOS 18.2.0. You can download it from SourceForge, or you can clone it from their Github and checkout the stable_18.2.x branch. I symlinked the downloaded folder to ChibiOS in the project root, but you can modify the CHIBIOS variable in the Makefile if you want.

Make sure you have arm-none-eabi-gcc to compile.

Flashing

To load code onto the board and use GDB, I used openocd (there are Debian packages available). You could use the stlink tools from texane too.

Using OpenOCD, you can just use make download to flash the code and make openocd to start a GDB server. I have included a .gdbinit script to set up GDB appropriately.