bigtreetech / CB1

OS System image for CB1
369 stars 62 forks source link

Unnamed GPIO with gpiod on CB1 #174

Open stantonik opened 8 months ago

stantonik commented 8 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 6 months 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 6 months 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 6 months ago

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