natevw / node-nrf

Pure-JavaScript nRF24L01 driver library
117 stars 31 forks source link

Data is reversed for Tx&Rx #28

Closed atomicus closed 9 years ago

atomicus commented 9 years ago

I'm using node-rf on raspbery pi with nrf24l01 connected to arduino running on https://github.com/TMRh20/RF24/ library

In both cases - rx & tx data gests inverted. When I receive, I need to reverse it so it can be displayed correctly as a string When I transmit it, I need to reverse it before transmission so Arduino will receive it correctly.

natevw commented 9 years ago

This is a dupe of https://github.com/natevw/node-nrf/issues/3 —I think the Arduino libraries are backwards according to the datasheet, but I'd like to at least add an option to deal with their backwards writes (perhaps even migrate to doing so by default at some point).