Closed JeromeBriot closed 5 months ago
Thanks for the suggestion.
As introduced in the comment at the begining of gpio-util.sh file, it defines a BASH function named "gpio", which can be used like a simplified version of "gpio" utility in WiringPi library. The gpio-util.sh file is the substitute of the absent "gpio" utility from WiringPi, so we let it emulate the output of the "gpio" utlity.
I do think your modified version is more friendly to Raspberry Pi users. However we will not include it in our distribution, because we want to keep the consistency with wiringPi, and we do believe one day we can switch back to the real WiringPi.
Hello,
The names of the GPIO are non consistent in the documentation (chapters 15.3 and 15.5).
The function doReadAll in gpio-util.sh produces the table below:
The GPIO names are based on the WiringPi ones.
I think that it would be easier for the reader to have the names based on the BCM numbers:
Here is the modified array in gpio-util.sh: