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

Example: blink user LED 3. More...

Go to the source code of this file.

Functions

def sos.MCode (dur)
 Morse code output, parameter is duration.
 
def sos.out_S ()
 Output character 'S'.
 
def sos.out_O ()
 Output character 'O'.
 

Variables

int sos.PIN = 24
 CPU ball number in use (LED3)
 
int sos.pinmode = 0
 gloabal variable More...
 
float sos.Kurz = 0.15
 Time for short Morse code.
 
float sos.Lang = 0.35
 Time for long Morse code.
 
 sos.io = pruio_new(PRUIO_DEF_ACTIVE, 4, 0x98, 0)
 Create a ctypes pointer to the pruio structure.
 
 sos.IO = io.contents
 The pointer dereferencing, using contents member.
 

Detailed Description

Example: blink user LED 3.

This file contains an example on how to use libpruio to control the user LED 3 (near ethernet connector) on the beaglebone board. It shows how to unlock a CPU ball that is used by the system. And it shows how to control the unlocked ball. Find a functional description in section sos.

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

Run by: python sos.py

Since
0.6.0

Definition in file sos.py.

Variable Documentation

◆ pinmode

sos.pinmode = 0

gloabal variable

The current pin mode.

Definition at line 23 of file sos.py.