Skip to content

St7735s module - #165

Open
DomninDmitry-dev wants to merge 6 commits into
Kernel-GL-HRK:Dmitry.Domninfrom
DomninDmitry-dev:st7735s_module
Open

DomninDmitry-dev wants to merge 6 commits into
Kernel-GL-HRK:Dmitry.Domninfrom
DomninDmitry-dev:st7735s_module

Conversation

@DomninDmitry-dev

Copy link
Copy Markdown

LCD module ST7735S. When the driver starts, output test image is performed.
Board connection:
OrangePi One | LCD ST7735S
LED -> +3V3
SCK -> SPIO_CLK (pin 23)
SDA -> SPIO_MOSI (pin 19)
AO -> PA0 (pin 13)
RESET -> PA1 (pin 11)
CS -> SPIO_CS (pin 24)
VCC -> +5V

Module Interface:

  1. Attributes
  • "draw_rect" - draw a rectangle, frame format "x y w h color".
    Example: echo "0 130 30 30 0xEF83" > /sys/class/st7735s/draw_rect
  • fill_screen - fill the entire screen with color by value, frame format "color".
    Example: echo 07A5 > /sys/class/st7735s/fill_screen
  1. Character device - transfer the image line by line, one pixel 2 bytes. Supports any number of pixels up to 20480.
    Example: echo 1234567890 > /dev/st7735s

DomninDmitry-dev and others added 5 commits January 21, 2020 21:23
Signed-off-by: Dmitry Domnin <dmitry8728@gmail.com>
Datasheet st7735s - https://www.radiokot.ru/articles/78/01.pdf

Signed-off-by: Dmitry Domnin <dmitry8728@gmail.com>
Signed-off-by: Dmitriy Domnin <d.domnin@p-sec.eu>
Signed-off-by: Dmitriy Domnin <d.domnin@p-sec.eu>
Signed-off-by: Dmitry Domnin <dmitry8728@gmail.com>
@DomninDmitry-dev DomninDmitry-dev added the ready The PR is ready for review (set by author). label Jan 23, 2020
Signed-off-by: Dmitry Domnin <dmitry8728@gmail.com>
@DomninDmitry-dev

Copy link
Copy Markdown
Author

Next will be framebuffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready The PR is ready for review (set by author).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant