output

Navigation:  Programming language SQC > Built-in functions > GPIO >

output

Previous pageReturn to chapter overviewNext page

The output() function sets the output gpio-pin to the defined state with a defined timeout.

 

int output(int pin,int state,int timeout)

 

Example:

 

void main()

{

    output(1 ,1,  1000);    /* output 1 to ON for 1000 ms   */

    output(1 ,0, 1000);     /* output 1 to OFF for 1000 ms  */

    output(1 ,1, 0);        /* output 1 to ON permanently   */

}