this allows for calling the update() function in a conditional statement.
e.g. if nrf.update() and nrf.pipe is not None: (which is a bit faster than using if nrf.any(): as the examples used prior to this change)
write() return a boolean describing if the payload was written to the TX FIFO
new master_fifo() function in the stream example to compare (& play) with original master() function.
master_fifo() uses the write() function to utilize all 3 levels of the TX FIFO. This function can provide some additional incite as to how many failed transmissions get retried when using send(buf, force_retry=2) in the original master() function.
master() still uses the send() function, but only manages 1 level of the TX FIFO (as it always has).
update()
now always returns Trueupdate()
function in a conditional statement. e.g.if nrf.update() and nrf.pipe is not None:
(which is a bit faster than usingif nrf.any():
as the examples used prior to this change)write()
return a boolean describing if the payload was written to the TX FIFOmaster_fifo()
function in the stream example to compare (& play) with originalmaster()
function.master_fifo()
uses thewrite()
function to utilize all 3 levels of the TX FIFO. This function can provide some additional incite as to how many failed transmissions get retried when usingsend(buf, force_retry=2)
in the originalmaster()
function.master()
still uses thesend()
function, but only manages 1 level of the TX FIFO (as it always has).