This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
projects:crazyradio:python_lib [2015-08-06 12:06] arnaud [Crazyradio] |
projects:crazyradio:python_lib [2019-09-05 14:58] kimberly |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | This page is deprecated and is moved to the main Bitcraze website. Please go to: | ||
+ | |||
+ | [[ | ||
+ | https:// | ||
+ | ]] | ||
+ | |||
+ | </ | ||
====== Python Crazyradio Library ====== | ====== Python Crazyradio Library ====== | ||
Line 18: | Line 27: | ||
</ | </ | ||
- | 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 62: | ||
^ Returns | ^ Returns | ||
^ 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, | ||
- | ^ Name | '' | ||
- | ^ Parameters | ||
- | ^ Returns | ||
- | ^ 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, | == set_channel(self, | ||
Line 117: | Line 120: | ||
^ Name | '' | ^ Name | '' | ||
^ Parameters | ^ Parameters | ||
- | ^ Returns | + | ^ Returns |
- | ^ Description | Sends the packet //dataOut// on the configured channel and datarate. Waits for an ack and returns a __radio_ack | + | ^ Description | Sends the packet //dataOut// on the configured channel and datarate. Waits for an ack and returns a _radio_ack |
==== _radio_ack ==== | ==== _radio_ack ==== | ||
=== Fields === | === Fields === | ||
+ | |||
+ | ^ (bool) ack | At '' | ||
+ | ^ (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 | ||