Classes | Functions | Variables
vw Namespace Reference

Classes

class  rx
 
class  tx
 

Functions

def _crc_ccitt_update (crc, data)
 
def _sym2nibble (symbol)
 

Variables

int _CTL = 3
 
list _HEADER = [0x2a, 0x2a, 0x2a, 0x2a, 0x2a, 0x2a, 0x38, 0x2c]
 
list _SYMBOL
 
int BPS = 2000
 
int MAX_BPS = 10000
 
int MAX_MESSAGE_BYTES = 77
 
int MIN_BPS = 50
 
int msg = 0
 
 pi = pigpio.pi()
 
int RX = 11
 
 rx = vw.rx(pi, RX, BPS)
 
 start = time.time()
 
int TX = 25
 
 tx = vw.tx(pi, TX, BPS)
 

Detailed Description

This module provides a 313MHz/434MHz radio interface compatible
with the Virtual Wire library used on Arduinos.

It has been tested between a Pi, TI Launchpad, and Arduino Pro Mini.

Function Documentation

def vw._crc_ccitt_update (   crc,
  data 
)
private

Definition at line 35 of file vw.py.

def vw._sym2nibble (   symbol)
private

Definition at line 29 of file vw.py.

Variable Documentation

int vw._CTL = 3
private

Definition at line 22 of file vw.py.

list vw._HEADER = [0x2a, 0x2a, 0x2a, 0x2a, 0x2a, 0x2a, 0x38, 0x2c]
private

Definition at line 20 of file vw.py.

list vw._SYMBOL
private
Initial value:
1 = [
2  0x0d, 0x0e, 0x13, 0x15, 0x16, 0x19, 0x1a, 0x1c,
3  0x23, 0x25, 0x26, 0x29, 0x2a, 0x2c, 0x32, 0x34]

Definition at line 24 of file vw.py.

int vw.BPS = 2000

Definition at line 336 of file vw.py.

int vw.MAX_BPS = 10000

Definition at line 18 of file vw.py.

int vw.MAX_MESSAGE_BYTES = 77

Definition at line 15 of file vw.py.

int vw.MIN_BPS = 50

Definition at line 17 of file vw.py.

int vw.msg = 0

Definition at line 343 of file vw.py.

vw.pi = pigpio.pi()

Definition at line 338 of file vw.py.

int vw.RX = 11

Definition at line 333 of file vw.py.

Definition at line 340 of file vw.py.

vw.start = time.time()

Definition at line 345 of file vw.py.

int vw.TX = 25

Definition at line 334 of file vw.py.

Definition at line 341 of file vw.py.



cob_hand_bridge
Author(s): Mathias Lüdtke
autogenerated on Tue Oct 20 2020 03:35:58