Python and C Saples codes.

Topics about the Software of Revolution Pi
Post Reply
kodyaz
Posts: 16
Joined: 13 Oct 2018, 06:57
Answers: 0

Python and C Saples codes.

Post by kodyaz »

Greetings to everyone. I need a simple code for the DIO product. Can you share a simple code that will read an inout and set an output.
Both c and python.

I want also the python and c library guides for a rev rev.

Thanks.
User avatar
dirk
KUNBUS
Posts: 1926
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: Python and C Saples codes.

Post by dirk »

Hello, good news we have video tutorials for C and Python access to digital IOs and the sample codes that are used in the download area. I recommend you to have a look at the video tutorials:
  • Tutorial 12 – Digital IO Modules application example
  • Tutorial 13 – PiTest source code
  • Tutorial 16 – Access to process image using Python
There is also a nice Python library available called RevPiModIO. Here is a short code impression how it works.
kodyaz
Posts: 16
Joined: 13 Oct 2018, 06:57
Answers: 0

Re: Python and C Saples codes.

Post by kodyaz »

After update for revpimod the following error was received.
http://kodyaz.net/hata.png
What is the problem?
User avatar
dirk
KUNBUS
Posts: 1926
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: Python and C Saples codes.

Post by dirk »

Can you tell us what commands did you type to install the library? Maybe you typed the commands that are shown on the background of your picture, right? That commands update the system. You have to run this commands by "log in to the console or via ssh". The picture shows a VNC Viewer window. So you are connected via VNC to your graphical desktop and not via a SSH connection or HDMI monitor. Use a direct HDMI connection and a keyboard to login to the console then start the graphical desktop with "startx" and see if the problem still exists.
Post Reply