<div dir="ltr">Hello,<br><br>I discover Gambas, which I haven't used for a few years.<br><br>I use the pigpio library.<br>Installation and use ok following example here :<br><a href="https://elinux.org/RPi_GPIO_Code_Samples#Gambas_with_pigpio">https://elinux.org/RPi_GPIO_Code_Samples#Gambas_with_pigpio</a><br><br>I have a problem because I don't know how to read a GPIO entry without using a button.<br><br><br>I have this function <br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><i>Public Sub Counter1()<br></i><i>Print "counter"<br></i><i>gpioSetMode(PinButton1, InputPin)</i><br><i>Do<br></i><i> <br></i><i>  If gpioRead(PinButton1) = 0 Then<br></i><i>    Button1CounterValue = Button1CounterValue + 1<br></i><i>     Print CounterValueButton1<br></i><i> ValueBox1.Value = ValueCounterButton1<br></i><i>    Wait 1<br></i><i>  Endif<br></i><i>   <br></i><i>Loop<br></i> <br> <i>End</i></blockquote><br>I'm running this function in :<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><i>Public Sub Form_Open()</i><i><br></i><i>End</i></blockquote><br>But gambas don't... <br>I'm thinking of an endless loop problem<br><div><br></div><div>Thank you in advance for your advice<br><br>Pierre<br></div></div>