And now for some programming?

Perhaps you come to the stage when you need a special solution and have to write you own programme. If it’s something you’ve always been looking forward to and now finally have the chance, then we probably won’t be able to show you anything new in this chapter. If the subject is full of mysteries, then don’t go away. In this chapter, we will lift the veil still covering the topic.

You’ll find out how easy it is to write a little programme.

All you need is:

Your RevPi Core

Monitor

Keyboard

Mouse

Let’s go!

Start RevPi Core.

Log-in.

Change to the graphic user interface. Enter “startx” in the command line.

Click on the “Menu“ button.

Select “Programming“.

Click on “Phyton 3“.

The Python shell opens. You can write and perform commands in the shell.

Click on “File”

Click on “New Window”

Python Editor opens. You can write commands in Editor.

Write the following command: print (“Hello World!”).

Click on “File>Save”.

Save the file under the name “hello.py”.

That’s all there is to it. No sweat. You can already run the programme.

Now click on “Run>Run Module”

In Python Shell you will now see the “Hello World” output.

You can naturally do a whole lot more with Python than only emitting text. If we’ve been able to arouse your interest a little in the topic, you can find further information about Python at: https://www.python.org/doc/.

Sign up to our newsletter and be among the first to hear about the latest development.

We use double opt-in for our newsletter subscription so we are 100% sure we aren't spamming anyone. Please pay attention to the confirmation email, you get after your signup. If you don`t confirm your email address, your newsletter subscription won`t be activated. If you don`t get any confirmation email, it may be in your Junk or Spam mailbox. If not, please email us at admin@kunbus.de to confirm your email subscription.