Naja,sehr simpel ist das nicht gerade......
Code:
 #include "parapin.h"

        #define VCC LP_PIN02
        #define CS  LP_PIN03
        #define CLK LP_PIN04
        #define D0  LP_PIN10 /* input pin */
        ...
        clear_pin(CS);  /* pull Chip Select low, tell it to acquire */
        ...
        set_pin(CLK);   /* clock it */
        clear_pin(CLK);
Code:
  /* runway lights: light up pins 1 through 9 in sequence */
        while (1) {
                for (i = 1; i <= 9; i++) {
                        set_pin(LP_PIN[i]);
                        usleep(200);
                        clear_pin(LP_PIN[i]);
                }
        }
Das habe ich gerade aus der Doku rauskopiert, wie simpler willst Du das noch haben ?

Gruß Sebastian