waveshare 1.44 inch lcd display hat for raspberry pi install factory

The ST7735S is a 132*162 pixel LCD controller, but the pixel of the 1.44inch LCD HAT is 128*128. So we have made some processing on the display: the horizontal direction starts from the second pixel to guarantee the location of RAM in the LCD is consistent with the actual location at the same time.

Note: Different from the traditional SPI protocol, the data line from the slave to the master is hidden since the device only has a display requirement.

The final display effect is scaled and displayed on the 1.3inch LCD in proportion. The setting of the resolution here should be slightly larger than the LCD resolution, the too high resolution will cause the font display to be blurred.

【Note】The mouse.py needs to run under the graphical interface, which will not run under the SSH login. You can skip this step directly, the Pi will run the demo automatically by booting up.

Be careful not to add it to /etc/rc.local, because rc.local will be executed before the system enters the desktop, and if the PyMouse module runs on the command line interface, it will report an error that there is no mouse event, so we need to execute the following:

If fbtft is turned on, spidev0.0 will be occupied after restarting. If you need to run the demo at this time, you need to comment out the lines corresponding to fb in /etc/modules.

waveshare 1.44 inch lcd display hat for raspberry pi install factory

The final display effect is scaled and displayed on the 1.3inch LCD in proportion. The setting of the resolution here should be slightly larger than the LCD resolution, the too high resolution will cause the font display to be blurred.

【Note】The mouse.py needs to run under the graphical interface, which will not run under the SSH login. You can skip this step directly, the Pi will run the demo automatically by booting up.

Be careful not to add it to /etc/rc.local, because rc.local will be executed before the system enters the desktop, and if the PyMouse module runs on the command line interface, it will report an error that there is no mouse event, so we need to execute the following:

waveshare 1.44 inch lcd display hat for raspberry pi install factory

This is a LCD display HAT for Raspberry Pi, 1.44inch diagonal, 128x128 pixels, with embedded controller, communicating via SPI interface. It also comes with three push button and a joystick, a good option as user interface panel for your Raspberry Pi Zero :)

waveshare 1.44 inch lcd display hat for raspberry pi install factory

I’ve played around with Retro-Pi in the past, using a fairly standard setup (screen, keyboard and USB game-controllers). This created quite a nice setup using the re-purposed portable DVD screen, but it is only really semi-portable (not really pocket-able).

I have several Raspberry Pi setups with built-in screens. I even have some Li-ion battery packs and USB chargers. Of course, I also have little the DIY game-pad kit I produce*.

* although I don’t actively sell them at the moment (as I felt I couldn’t guarantee swift shipping and service). However, I do have a few left in stock so email me from the address on the contact page and I’ll do my best to get back to you.

Although these form the components of a potential mini Retro-Pi setup, without a custom built case it wouldn’t be particularly practical one. Therefore, I really needed something to try out before creating a more embedded version so I can work out what features I’d want and ensure it works together nicely.

Then I saw this little board, which provides a little screen (120×120 1.4″) and some buttons, in a nice little form-factor which would stack directly onto a Pi Zero. I figured this would allow a neat setup which would allow testing of various setups and also something I could use as a user interface for many other Raspberry Pi based projects.

Within the thread and elsewhere others had reported success using a pre-built Retro-Pi image with a few adjustments. Although not my favourite way to do things (I like to understand it and be able to reproduce it from scratch), at least I could confirm the screen worked and have a working configuration to work from.

Ensure you at least use the following command to at least obscure your password (if copied this hash will still work on other devices so it isn’t much of a security measure, but it at least makes it less memorable).

I highly recommend putting an extra SSID entry in your wpa_supplicant file which you can remember easily. That way you can always start a WiFi Hotspot on your phone, with those settings, and access the device using a SSH terminal app, like JuiceSSH.

If you use SSH and intend on connecting the RetroPie to your network, then make sure you change the default password and enable SSH (you can do this via the raspi-config options).

Under Configuration / tools select samba – Configure Samba ROM Shares. This will make adding/removing ROMs and changing settings that much easier when connected to your network.

Note:Retropie does not come with game ROMs (for legal reasons). You will need to obtain your own ROMs to use an the systems you install. Sources of ROMs will not be discussed here.

By default, without ROMs installed only the RetroPie Configuration page will be visible, however once you add suitable files into ~/RetroPie/roms/, pages for each game system will appear.

It is important to remember that this add-on only provides 3 buttons (plus joystick central press), so it isn’t going to be suitable for all types of game systems. For now I’ve stuck to a small selection of Gameboy and MegaDrive/Genesis ROMs I used to play.

As always, it is important that the Raspberry Pi is shutdown correctly before it is powered off. That can often be difficult if you haven’t got a keyboard connected or you can’t easily navigate to the RetroPie menus.

Fortunately the software supports the ability to allocate a GPIO pin as a “soft” shutdown button. While this doesn’t fully power off the device it will trigger a software shutdown (allowing safe removal of the power). By default this is set to gpio_pin 3 (that is BCM GPIO 3 and the physical pin BOARD GPIO 5). Pin 5 is rather useful since it has a hardware pull up it can be shorted directly to Ground safely (as it has a resistor already on the board, limiting any current and not causing a short circuit). Pin 5 is also hardwired to trigger a reset from sleep.

In another words, you can connect a simple push button between Pin 5 (BCM GPIO 3) and Ground (i.e. Pin 6). This will not only trigger a shutdown when powered on, but will also cause the Raspberry Pi to power up again if previously in sleep mode. Giving us a combined Sleep and Power up button.

Therefore we can use the following script to toggle the screen on and off. At the moment this isn’t too useful, but if we add more hardware buttons we can use this to switch the screen off when we aren’t using it (helpful if we are using the Raspberry Pi remotely via a network connection).

Unless you are happy being tethered to the wall by a USB cable, portable power is a must. Thankfully most portable phone chargers can be used (at least with the lower end Raspberry Pi Zero etc.). Alternatively there are some Li-ion power boards available too, which are more likely to supply enough current for newer Raspberry Pi versions.

The waveshare 1.44″ hat provides an excellent little gaming device, but it does require a little fiddling around with to get setup. As a little Gameboy emulator it is ideal, with the added bonus you can remotely connect and do some programming on the side. The little screen and buttons mean only the most basic games will make sense on it, but it is versatile enough that it can be used in many other projects too.

waveshare 1.44 inch lcd display hat for raspberry pi install factory

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

waveshare 1.44 inch lcd display hat for raspberry pi install factory

1.44 Inch Lcd Hat Printed Circuit Board is an resistive screen LCD display HAT for Raspberry Pi with resolution 128 x 128 pixels, with embedded controller, communicating via SPI interface. It has already basic functions:setting the point size, the line thickness, drawing circle, rectangle, and displaying English characters.

The ST7735S is a driver for 262K-color, graphic type TFT-LCD. It consists of 396 source line and 162 gate line driving circuits. This chip is capable of connecting directly to an external microprocessor, and accepts Serial Peripheral Interface (SPI), 8-bit/9-bit/16-bit/18-bit parallel interface.