greenlantern23
Posts: 2
Joined: Sun Mar 11, 2018 2:48 pm
Contact: Website

waveshare 1.44" tft lcd HAT (st7735s) (Solved)

Sun Mar 11, 2018 9:59 pm

Hi. i bought 1.44inch LCD HAT from Waveshare. The screen has a driver st7735s. I have difficulties installing this screen on the raspberry PI.

For installation, I used this manual.

Then, in the file: /etc/modprobe.d/fbtft.conf, i use:

Code: Select all

options fbtft_device name=fb_st7735r gpios=reset:27,dc:25,led:18 speed=16000000 bgr=1 custom=1 width=128 height=128
And, unfortunately, it does not work quite correctly.
As a result, after starting, the screen shows two bars of pixels that are not defective screen or damage.

How to fix these pixel frames?

Image
Image
Last edited by greenlantern23 on Mon Mar 12, 2018 8:43 pm, edited 1 time in total.

greenlantern23
Posts: 2
Joined: Sun Mar 11, 2018 2:48 pm
Contact: Website

Re: waveshare 1.44" tft lcd HAT (st7735s)

Mon Mar 12, 2018 8:38 pm

with the help of user moosepr from this site. the solution to the problem was quickly found.
Please read to the end before you start.
1. You must follow the instruction in this page.
(It is better to perform all operations via SSH. I am using PuTTY)
2. When it comes to the step:

Code: Select all

sudo nano /etc/modprobe.d/fbtft.conf
Paste these settings into the file:

Code: Select all

options fbtft_device name=adafruit18_green gpios=reset:27,dc:25,cs:8,led:24 speed=40000000 bgr=1 fps=60 custom=1 height=128 width=128 rotate=180
3. After completing step 2. simply continue with the instructions in step 1.
4. Carefully read about the configuration of the buttons in the instructions in step 1, everything is quite simple.

Screen button pins can be found here.

I tried to describe everything as simple as possible. Good luck to everyone.

code_inc_
Posts: 1
Joined: Sat Mar 31, 2018 2:06 am

Re: waveshare 1.44" tft lcd HAT (st7735s) (Solved)

Sat Mar 31, 2018 2:11 am

hello i already made a retropie image of it and i have a download link on my video about it too. https://drive.google.com/file/d/13V5js_ ... sp=sharing
have fun with the mini boy image.

snakewa
Posts: 1
Joined: Fri Jun 15, 2018 3:51 pm

Re: waveshare 1.44" tft lcd HAT (st7735s) (Solved)

Fri Jun 15, 2018 3:53 pm

miniboy image from google drive seems to be invalid. Etcher cannot write this image to SD card.

JohnAo
Posts: 1
Joined: Wed Aug 22, 2018 1:22 pm

Re: waveshare 1.44" tft lcd HAT (st7735s) (Solved)

Wed Aug 22, 2018 1:45 pm

Hi! Thank you for your instructions on configuring files. Mine is working fine except the 'A' and 'B' buttons.

I set the "/boot/retrogame.sh" file as:

Code: Select all

LEFT       5  # Joypad left
RIGHT     26  # Joypad right
UP         6  # Joypad up
DOWN      19  # Joypad down
LEFTCTRL  21  # 'A' button
LEFTALT   20  # 'B' button
#Z         21  # 'X' button
#X         20  # 'Y' button
SPACE     13  # 'Select' button
ENTER     16  # 'Start' button
#A        12  # Left shoulder button
#S        13  # Right shoulder button
#ESC      17  # Exit ROM; PiTFT Button 1
#1        22  # PiTFT Button 2
#2        23  # PiTFT Button 3
#3        27  # PiTFT Button 4
and the LEFTCTRL and LEFTALT buttons won't work while others work well.
I tried to alter the pins for LEFTCTRL and LEFTALT but the problem remains, so it's not about the pins.
What should I do?

iwilliams89
Posts: 1
Joined: Thu Jan 17, 2019 6:33 pm

Re: waveshare 1.44" tft lcd HAT (st7735s) (Solved)

Thu Jan 17, 2019 6:48 pm

How can I go about mapping the keys for this in Raspbian.

I have attempted to build out an overlay and started it upon boot.

I have 2 of the directions on the Joystick functioning via this but it appears the others are having issues here is what my GPIO and overlay currently looks like.

GPIO Readall

Image

and

Overlay code
/dts-v1/; /plugin/; / { compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
[email protected] {
target-path = "/";
__overlay__ {
keypad: waveshare_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
#autorepeat;
[email protected] {
label = "JOYSTICK UP"; ----------Works Outputs in evtest
linux,code = <103>;
gpios = <&gpio 5 1>;
};
[email protected] {
label = "JOYSTICK RIGHT"; -------------- Works Outputs in evtest
linux,code = <106>;
gpios = <&gpio 6 1>;
};
------------------Everything Below Fails-------------------------- And doesnt output in evtest
[email protected] {
label = "JOYSITCK LEFT";
linux,code = <105>;
gpios = <&gpio 19 1>;
};
[email protected]
[email protected] {
label = "JOYSTICK PRESS";
linux,code = <28>;
gpios = <&gpio 13 1>;
};
[email protected] {
label = "KEY 1";
linux,code = <38>;
gpios = <&gpio 21 1>;
};
[email protected] {
label = "KEY 2";
linux,code = <56>;
gpios = <&gpio 20 1>;
};
[email protected] {
label = "KEY 3";
linux,code = <54>;
gpios = <&gpio 16 1>;
};
};
};
};
};

cuestix
Posts: 1
Joined: Thu Mar 28, 2019 12:59 am

Re: waveshare 1.44" tft lcd HAT (st7735s) (Solved)

Thu Mar 28, 2019 1:03 am

Hello,

It may be a little late but I believe your problem has to do with a typo,

label = "JOYSITCK LEFT";

Should be

label = "JOYSTICK LEFT";

Hope this helps!

tiz.io
Posts: 1
Joined: Mon Apr 15, 2019 12:18 am

Re: waveshare 1.44" tft lcd HAT (st7735s)

Mon Apr 15, 2019 12:22 am

greenlantern23 wrote:
Mon Mar 12, 2018 8:38 pm
with the help of user moosepr from this site. the solution to the problem was quickly found.
For the next person with this problem, here is the exact link to the fix
TL, DR:
This is a sort of rotation off-by-one issue that happens when the fb0 and fb1 settings aren't aligned.
Set rotate to 180 in /etc/modprobe.d/fbtft.conf
Set display_rotate to 1 in /boot/config.txt

Return to “Troubleshooting”