libpruio  0.6.8
Fast and easy Digital/Analog Input/Output for Beaglebones
1.py File Reference

Example: minimal code for ADC input. More...

Go to the source code of this file.

Variables

 1.io = pruio_new(PRUIO_DEF_ACTIVE, 4, 0x98, 0)
 Create a ctypes pointer to the pruio structure.
 
 1.IO = io.contents
 The pointer dereferencing, using contents member.
 
 1.AdcV = IO.Adc.contents.Value
 Array pointer.
 
 1.end
 

Detailed Description

Example: minimal code for ADC input.

This file contains an short and simple example for text output of the analog input lines. It's designed for the description pages and shows the basic usage of libpruio with a minimum of source code. Find a functional description in section Simple (1).

Licence: GPLv3, Copyright 2017-2023 by Thomas{ doT ]Freiherr[ At ]gmx[ DoT }net

Run by: python 1.py

Since
0.0

Definition in file 1.py.