Leapo / Rock64-R64.GPIO

Python GPIO library for the Rock64 SBC (RPi.GPIO clone)
GNU Lesser General Public License v3.0
60 stars 24 forks source link

Compatibility Question #4

Open cointrek opened 5 years ago

cointrek commented 5 years ago

The GPIO on the RockPro64 are similar. Would this library work on that board too?

The readme said no guarantees. I was just interested in thoughts.

simonboydfoley commented 5 years ago

coinrek This library does work on the RockPro64 you just need to make the following changes in _GPIO.py

ROCK_valid_channels = [52,53,152,54,50,33,48,39,41,43,155,156,125,122,121,148,147,120,36,149,153,42,45,44,124,126,123,127] BOARD_to_ROCK = [0,0,0,52,0,53,0,152,148,0,147,54,120,50,0,33,36,0,149,48,0,39,153,41,42,0,45,43,44,155,0,156,124,125,0,122,126,121,123,0,127] BCM_to_ROCK = [43,44,52,53,152,155,156,45,42,39,48,41,124,125,148,147,124,54,120,122,123,127,33,36,149,153,121,50]