olliw42 / mLRS

2.4 GHz & 915/868 MHz & 433 MHz/70 cm LoRa based telemetry and radio link for remote controlled vehicles
GNU General Public License v3.0
295 stars 67 forks source link

JR5 pin swap (mostly for E77 easysolder) #85

Closed jlpoltrack closed 1 year ago

jlpoltrack commented 1 year ago

New define is 'JRPIN5_RX_TX_INVERT_SWAP_INTERNAL'

Added to the Hal after '#define JRPIN5_RX_TX_INVERT_INTERNAL'

Tested and working on E77 using 'S' pin for JR pin 5.

olliw42 commented 1 year ago

@jlpoltrack many thx for this.

I'm however a bit puzzled and not yet fully convinced it's the right thing. The point is, when tx and rx are swapped, shouldn't then also the gipo_init's need to be swapped?

(please not that the code for the option JRPIN5_FULL_INTERNAL is NOT working, so may give ideas but must not be used as a guide for correct code :) )(I was working on it but copuldn't yet get it satisfactorily working but didn't wanted to erase it all, slopy practice, I agree)

olliw42 commented 1 year ago

THANK YOU SO MUCH!!!

merging