TFT touchscreens for the Raspberry Pi

Clicking Without Regret

This minimalist approach is good enough for simple commands. However, it is unlikely that you want to begin a restart by making a mistake. Additionally, some programs only display actual information in the console. If you start these in the graphical interface, the output would end up in an unknown bit bucket.

Therefore, the launcher uses a second PyGTK program called CommandGui.py. The program serves as a wrapper for command-line programs. Besides providing output of results, it also makes yes-or-no queries possible.

The configuration file appconfig.py is shown below. sudo reboot is started via a wrapper program. The "-i" parameter instructs the wrapper to interact with the user before executing the command (Figure 6):

Figure 6: To avoid the unintended execution of programs, interactive prompts come up as desired.
name = "Reboot"
icon = "./system-reboot.png"
cmd = ["CommandGui.py","-i","sudo","reboot"]

The wrapper program does even more; for example, Figure 7 shows the request for the current IP address of the computer. You will find the source codes for the wrapper together with documentation and installation guidelines on the Raspberry Pi Geek FTP site [10] and on SourceForge [11].

Figure 7: The wrapper also permits incorporation of console programs. You can see the output of ifconfig in this picture.

Conclusion

As with the Rasp Pi, the display screens presented here have only limited resources. The restrictions ensuing from 320x240 pixels can be disturbing for many uses. However, as with the Rasp Pi itself, the limited possibilities encourage the use of imagination and creativity. The Rasp Pi remains true to its origins with a small display screen that needs almost no additional electricity, and many new projects on the horizon require just a simple user interface.

Interview with Pi3g Founder Maximilian Batz

Raspberry Pi Geek: When did you get the idea of founding a company built around the Rasp Pi?

Max Batz: In mid 2012 my friend Florian and I held a Raspberry Pi in our hands for the first time. We immediately realized the potential of this small computer revolution that is still underway. For example, the company General Purpose Compute [12] is working on using the GPU as an extension to a CPU.

RPG: Pi3g has a number of very spiffy solutions like the Pi.card and the housing branding. What are you planning for the future?

MB: The next thing we want to do is to build our own housing that will make it possible to use the Rasp Pi as a small touch terminal. This would work for example with a web radio application. We would like to offer appliances based on pre-integrated Pi.cards. This could be a cam box for monitoring rooms and operating electrical switches if necessary. Then the user could remotely call up a video stream or snapshots from a smartphone.

The limited performance of the Rasp Pi is not sufficient for many applications. We are planning to alleviate these shortcomings, either with a special hardware version of the Pi based on compute modules and coprocessors, or via boosting virtualization. This approach would give the Raspberry Pi the necessary resources, and CPU-intensive applications could simply be shifted around.

RPG: The Rasp Pi is perfectly sufficient for many things but some solutions need more performance, in particular I/O. Are there plans in place to expand the offering?

MB: We have looked at other systems like Banana Pi, CubieBoard, and RiOTBoard, but these all have various disadvantages. Even when the technology is sound, a community and sample code is lacking. The Rasp Pi has an enormous advantage in this respect. Personally I consider the HummingBoard from SolidRun pretty interesting. I recommend the CuBox-I from the same company for OpenELEC. We are in the process of figuring out whether we should import this hardware into Germany from Israel, but the Raspberry Pi will remain our priority.

Figure 8: The Pi3g team with, from left, Florian Frankenberger, Max Batz, and Timo Andrews.

The Author

Bernhard Bablok works for Allianz Managed&Operations Services SE as an SAP-HR developer. In his free time, Bernhard listens to music, enjoys hiking and biking, and he occupies himself with all subjects that have to do with Linux and object orientation.

Buy this article as PDF

Express-Checkout as PDF

Pages: 6

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content