bskari / pi-rc

Turn your Raspberry Pi into a radio controller for RC toys.
GNU General Public License v2.0
139 stars 38 forks source link

Added PI 4 support #35

Closed 1anakin20 closed 2 years ago

1anakin20 commented 3 years ago

I have added support for the PI 4 by updating the values. I don't understand much about how the DMA works. As I needed to change the pin 4 to 21, I can't guarantee it will be backwards compatible. The make file will need to be updated to automatically set the raspi version to 4.

The RC car I tested it with for some reason only went forwards, whatever other value didn't make it move in any other way. It could be this specific model is odd. However, on this PiFmRds issue some said the transmission was worse. I can't be sure what the issue is.

bskari commented 2 years ago

Oh shoot, I was going to test this out when I got a Pi 4, but with the supply issues, I don't know if that will ever happen now. Then I just forgot about this. I think I'm just going to merge it since it's been here for so long, and it will probably help others out. Thanks for the contribution!