beautypg.com

Rainbow Electronics GM862-GPS User Manual

Page 56

background image





Easy Script

in Python

80000ST10020a Rev.8 - 01/10/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 56 of 100

Receives a string of len bytes from SPI bus device at Slave Select number SS_number. Input optional
parameter SS_number is a Python byte representing the Slave number to be activated; if not present
no slave line is activated.
Return value is a Python string that contains received data.
Example:

a = bus4.read(10,0)

receives a string of 10 bytes from SPI bus device on SS0 line, assigning it to a.