User Tools

Site Tools


projects:crazyradio:python_lib

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:crazyradio:python_lib [2015-08-06 12:06]
arnaud [Crazyradio]
projects:crazyradio:python_lib [2020-05-12 14:15] (current)
kimberly
Line 1: Line 1:
 +
 +<WRAP center round important 60%>
 +This page has deprecated and moved to the new documentation framework of the main Bitcraze website. Please go to [[https://www.bitcraze.io/documentation/system/]]
 +</WRAP>
 ====== Python Crazyradio Library ====== ====== Python Crazyradio Library ======
  
Line 18: Line 22:
 </code> </code>
  
-Ths is an example on how to use the lib:+This is an example on how to use the lib:
  
 <code python> <code python>
Line 53: Line 57:
 ^ Returns     | None | ^ Returns     | None |
 ^ Description | Close the USB device. Should be called before closing the program. | ^ Description | Close the USB device. Should be called before closing the program. |
- 
-==  set_channel(self, channel) == 
-^ Name        | ''set_channel'' | 
-^ Parameters  | (int) channel | 
-^ Returns     | None | 
-^ Description | Set the Crazyradio channel. Channel must be between 0 and 125. Channels are spaced by 1MHz starting at 2400MHz and ending at 2525MHz. | 
  
 ==  set_channel(self, channel) == ==  set_channel(self, channel) ==
Line 117: Line 115:
 ^ Name        | ''send_packet'' | ^ Name        | ''send_packet'' |
 ^ Parameters  | (list or tuple) dataOut | ^ Parameters  | (list or tuple) dataOut |
-^ Returns     | (_radio_ack) Ack status | +^ Returns     | ([[#_radio_ack|_radio_ack]]) Ack status | 
-^ Description | Sends the packet //dataOut// on the configured channel and datarate. Waits for an ack and returns a __radio_ack object that contains the ack status and optional ack payload data. |+^ Description | Sends the packet //dataOut// on the configured channel and datarate. Waits for an ack and returns a _radio_ack object that contains the ack status and optional ack payload data. |
 ==== _radio_ack ==== ==== _radio_ack ====
  
 === Fields === === Fields ===
 +
 +^ (bool) ack | At ''True'' if an Ack packet has been receive (ie. if the packet was received by the device) |
 +^ (bool) powerDet | Indicate the nRF24LU1 power detector status. See nRF24LU1 documentation for more information. |
 +^ (int) retry | Number of retry before an ack was received |
 +^ (tuple) data | Data payload received in the Ack packet |
  
 === Methods === === Methods ===
  
 +None
  
  
  
projects/crazyradio/python_lib.1438855575.txt.gz · Last modified: 2015-08-06 12:06 (external edit)