diff --git a/drivers/nrf24l01/nrf24l01test.py b/drivers/nrf24l01/nrf24l01test.py index 876b2bbfa2..4db9571ca0 100644 --- a/drivers/nrf24l01/nrf24l01test.py +++ b/drivers/nrf24l01/nrf24l01test.py @@ -23,7 +23,9 @@ elif sys.platform == 'esp32': # Software SPI else: raise ValueError('Unsupported platform {}'.format(sys.platform)) -pipes = (b'\xf0\xf0\xf0\xf0\xe1', b'\xf0\xf0\xf0\xf0\xd2') +# Addresses are in little-endian format. They correspond to big-endian +# 0xf0f0f0f0e1, 0xf0f0f0f0d2 +pipes = (b'\xe1\xf0\xf0\xf0\xf0', b'\xd2\xf0\xf0\xf0\xf0') def master(): csn = Pin(cfg['csn'], mode=Pin.OUT, value=1)