# Question to Hyperpixel 4.0

**URL:** <https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161>\
**Category:** Support\
**Created:** [July 18, 2018, 5:16pm UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161 "2018-07-18T17:16:20Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zoni](https://avatars.discourse-cdn.com/v4/letter/z/e9c0ed/32.png) [@Zoni](https://forums.pimoroni.com/u/Zoni)\
**Post date:** [July 18, 2018, 5:16pm UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/1 "2018-07-18T17:16:20Z")

</div>

Hi folks,  
maybe a silly question but what does this Display show? The desktop? The shell?  
What i want to do is to display infos from a python program.  
At the moment i use a 16x2 LCD-Display which gets his infos over the GPIOs.  
Is it possible to use this panel as a replacement for an old style 16x2 LCD?

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [July 18, 2018, 6:30pm UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/2 "2018-07-18T18:30:57Z")

</div>

It shows what you would normally see on an HDMI attached monitor. For full Raspbian it would be the desktop GUI, for the lite version it would be command line.  
Once you install the software for the Hyperpixel 4.0 it should be usable when connected to the GPIO. If it was me, I think I would start with a clean Raspbian image, just to be sure the installer for your current display doesn’t interfere with the Hyperpixel software. There may be some file edits etc done by its installer that get left over when you run the hyperpixel installer and bork things up…

---

<div class="post-metadata">

**Author:** ![Zoni](https://avatars.discourse-cdn.com/v4/letter/z/e9c0ed/32.png) [@Zoni](https://forums.pimoroni.com/u/Zoni)\
**Post date:** [July 18, 2018, 7:02pm UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/3 "2018-07-18T19:02:23Z")

</div>

Hmmm so it it seems i cant use Python to display some text on this diplay.  
At the moment i use Adafruit Char-LCD driver for the 16x2 LCD with built in python commands.  
So this Display didnt have this command level? Thats bad luck…  
Thanks for your help

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [July 18, 2018, 7:38pm UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/4 "2018-07-18T19:38:24Z")

</div>

It’s meant to be used as the main monitor / display. Instead of using an HDMI display. That’s its main use as near as I can tell from the product description. Its 800 x 480 pixels. You could likely do what you want by displaying a window / box with your text In it. How good are your coding skills? I don’t have those skills myself. Not even close.

---

<div class="post-metadata">

**Author:** ![Zoni](https://avatars.discourse-cdn.com/v4/letter/z/e9c0ed/32.png) [@Zoni](https://forums.pimoroni.com/u/Zoni)\
**Post date:** [July 18, 2018, 7:42pm UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/5 "2018-07-18T19:42:55Z")

</div>

The problem is, i dont know how to display infos from a Python programm on a normal HDMI/Destop/Terminal Display. As i said, the function of this 16x2 LCD is completly different.  
The Python-Driver sents this directly to the LCD over various GPIOs.  
I have no idea how to display such infos on a normal “Computer-Screen” with HDMI-connection…

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [July 18, 2018, 8:36pm UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/6 "2018-07-18T20:36:32Z")

</div>

Yeah, I don’t have those skills either. This screen isn’t a replacement for what your using, that’s for sure.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [July 18, 2018, 9:13pm UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/7 "2018-07-18T21:13:18Z")

</div>

Would e ink work for you, [https://shop.pimoroni.com/?q=e%20ink](https://shop.pimoroni.com/?q=e%20ink)  
Or a scroll phat maybe? [https://shop.pimoroni.com/products/scroll-phat-hd?variant=38472781450](https://shop.pimoroni.com/products/scroll-phat-hd?variant=38472781450)

---

<div class="post-metadata">

**Author:** ![Zoni](https://avatars.discourse-cdn.com/v4/letter/z/e9c0ed/32.png) [@Zoni](https://forums.pimoroni.com/u/Zoni)\
**Post date:** [July 19, 2018, 5:01am UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/8 "2018-07-19T05:01:41Z")

</div>

No, these are not an option - to slow and/or not enough resolution…  
The display must be able to show various/changing infos at the same time.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [July 19, 2018, 8:11am UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/9 "2018-07-19T08:11:50Z")

</div>

Ok, how about this, [https://shop.pimoroni.com/products/rgb-led-matrix-panel?variant=42312764298](https://shop.pimoroni.com/products/rgb-led-matrix-panel?variant=42312764298)

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [July 19, 2018, 10:09am UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/10 "2018-07-19T10:09:54Z")

</div>

Python has dozens of GUI libraries which you can use to program convincing facsimilies of desktop applications. The Python editor itself (both IDLE and Thonny I believe) is written _in_ Python.

The sky is really the limit, but with no hardware to constrain how your UI looks you might be stuck with the paradox of choice.

[https://www.pygame.org/wiki/gui](https://www.pygame.org/wiki/gui)

> **[Welcome to wxPython!](https://www.wxpython.org/)**
>
> all about wxPython, the cross-platform GUI toolkit for the Python language

> **[Kivy: Cross-platform Python Framework for NUI](https://kivy.org/#home)**
>
> Open source Python framework for rapid development of applications
> that make use of innovative user interfaces, such as multi-touch apps.

[https://wiki.python.org/moin/TkInter](https://wiki.python.org/moin/TkInter)

Or a complete list: [https://wiki.python.org/moin/GuiProgramming](https://wiki.python.org/moin/GuiProgramming)

---

<div class="post-metadata">

**Author:** ![Zoni](https://avatars.discourse-cdn.com/v4/letter/z/e9c0ed/32.png) [@Zoni](https://forums.pimoroni.com/u/Zoni)\
**Post date:** [July 19, 2018, 4:21pm UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/11 "2018-07-19T16:21:23Z")

</div>

So that means, i need a GUI-somethig-else… wow, that exeeds my current knowledge - but good to know it “is” possible. I will read all your Links and see what happens next ;-)

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [July 19, 2018, 6:40pm UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/12 "2018-07-19T18:40:52Z")

</div>

I think there’s a whole bunch of GUI tutorials out there that may get you started- it’s easier than it looks, but it’s a case of finding the right one and I - admittedly - haven’t done much Python GUI stuff so I don’t know any good ones off the top of my head.

---

<div class="post-metadata">

**Author:** ![LittleFrog](https://avatars.discourse-cdn.com/v4/letter/l/3be4f8/32.png) [@LittleFrog](https://forums.pimoroni.com/u/LittleFrog)\
**Post date:** [July 26, 2018, 9:00am UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/13 "2018-07-26T09:00:19Z")

</div>

Hi,  
I have just bought a HyperPixel 4.0 and I’m doing a similar thing to you (by which I mean writing an application in python which is text based). I did this;  
Install latest OS  
Install HyperPixel 4.0 driver  
At this point the HDMI output stops working and the HyperPixel is your only way of seeing what’s going on.  
I had a bit of a shock because it’s only now that I realised that the new display uses up all your GPIO pins. Information here; [https://pinout.xyz/pinout/dpi](https://pinout.xyz/pinout/dpi)  
Anyway assuming that this does not put you off then I think there are two ways of proceeding…

1. make your Pi boot with a command line interface (CLI). When running a CLI, I got a display of 30 \* 100 characters
2. make your Pi boot with Windows running. Start a terminal session and minimise the clutter to get the most out of the display. When running a terminal session in a window I got… 38 \* 114 characters  
I use the following to change from one to the other  
“sudo raspi-config” from the command line then select “boot options”…

That second option needs some explaining…  
When you open a normal terminal session I get 24 \* 80 but you can maximise the screen (pressing the max button top right of the terminal session) and you’ll get 35 \* 114. Then you can use a thing called “devilspie” to remove all the window dressing around the terminal. This gives you 37 \* 114. Finally you can make the task bar along the top of the screen smaller by right clicking on it and selecting “Geometry” and reducing the number of pixels it uses. This gives me 38 \* 114.  
Devilspie is very simple to set up; I’ll send you my config if you need it.  
As regards the actual application, I don’t use the touchscreen for operator input; I still use the keyboard. I use a module called “curses” to drive the display. You can use “tput cols” and “tput lines” to see what the terminal session dimensions are set to.

---

<div class="post-metadata">

**Author:** ![Zoni](https://avatars.discourse-cdn.com/v4/letter/z/e9c0ed/32.png) [@Zoni](https://forums.pimoroni.com/u/Zoni)\
**Post date:** [July 26, 2018, 9:16am UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/14 "2018-07-26T09:16:57Z")

</div>

Hi LittleFrog and thanks for all this nice infos. Because the display uses “all” GPIOs, i cant use it for my project. I need at least 3 GPIOs for two buttons and a Temp-Sensor.  
Thanks again for your Help.

---

<div class="post-metadata">

**Author:** ![LittleFrog](https://avatars.discourse-cdn.com/v4/letter/l/3be4f8/32.png) [@LittleFrog](https://forums.pimoroni.com/u/LittleFrog)\
**Post date:** [July 26, 2018, 9:36am UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/15 "2018-07-26T09:36:06Z")

</div>

OK, no worries.

Could I ask what temp sensor you use? I use the DS18B20… It’s not perfect but I quite like it. Just being nosey.

Thanks

Dave

---

<div class="post-metadata">

**Author:** ![Zoni](https://avatars.discourse-cdn.com/v4/letter/z/e9c0ed/32.png) [@Zoni](https://forums.pimoroni.com/u/Zoni)\
**Post date:** [July 26, 2018, 10:09am UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/16 "2018-07-26T10:09:39Z")

</div>

I use the DHT22 for Temp and Humidity. The accuracy is also weak but i use a meter to calibrate the offset in the software and that works quit good.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [July 26, 2018, 11:08am UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/17 "2018-07-26T11:08:28Z")

</div>

I’m using a BME680 to get temp, humidity and pressure. I display the data on a Sense Hat 8x8 LED matrix. Its a continuously scrolling repeating message that updates in real time. I started out using the sensors on the Sense Hat but had issues with heat from the Pi throwing off my temp readings. And another issue with the humidity sensor reading high in high humidity conditions. My BME680 is mounted externaly on the bottom of my case. At some point I’m going to replace the Sense Hat with a Unicorn Hat HD.

---

<div class="post-metadata">

**Author:** ![LittleFrog](https://avatars.discourse-cdn.com/v4/letter/l/3be4f8/32.png) [@LittleFrog](https://forums.pimoroni.com/u/LittleFrog)\
**Post date:** [July 26, 2018, 1:36pm UTC](https://forums.pimoroni.com/t/question-to-hyperpixel-4-0/8161/18 "2018-07-26T13:36:44Z")

</div>

Thanks for the tips on the DHT22 and BME680.

Re-reading this thread, you mentioned about being new to GUI programming. My son has just finished his University project and he used QT4 and a graph presentation library called “pyqtgraph” running on a pair of Pi’s. I just could not believe how FEW lines of code were required to make real time graphs and button & menu type GUI’s. Might be worth a look. His project was for race car telemetry where he monitored about 20 car parameters and presented them on track-side GUI.

I use text only user interfaces in my work and just so you know, I did a comparison between different displays. I just used a simple python program that printed to the screen using curses. In the following configurations, it made no difference at all to the rate at which the application ran…  
Pi running in CLI mode (i.e. No X Windows) to an HDMI monitor (61 \* 228)  
Pi running in CLI mode (i.e. No X Windows) to a HyperPixel 4.0 (30 \* 100)  
Pi running X Windows and running a terminal session to an HDMI monitor (38 \* 114)  
Pi running X Windows and running a terminal session to a HyperPixel 4.0 (38 \* 114)  
Pi running to a puTTY session over my LAN (38 \* 114)

Dave
