bigtreetech / CB1

OS System image for CB1
337 stars 49 forks source link

Unnamed GPIO with gpiod on CB1 #174

Open stantonik opened 3 months ago

stantonik commented 3 months ago

I want to control GPIO on the CB1. I saw that it is possible with gpiod. In my case, pin names don't appear but there are more than 300 pin and without the alias I can't know what is who. Do you know how to solve it ? I saw that I need to make a .dts file in the root but where can I find which line of a "$sudo gpioinfo" corresponds to which GPIO ?

BadFlamingo666 commented 1 month ago

I am also having this problem. I have applied the "light" overlay in BoardEnv.txt but that seems not to work.

sergei-iliev commented 1 month ago

Here is my finding on 'gpiochip0' up until now Header pin 7 ,PC7, corresponds to line 71 Header pin 37 ,PC15 , corresponds to line 79 Header pin 40 , PC8 , corresponds to line 72 I can toggle those header pins using libgpiod C/C++ lib

Pneumanifest commented 1 month ago

The user manual has the information about the gpio numbering, but here's a screenshot to help. image