12 int ledMap [NUM_LEDS] = { 0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13 } ;
14 int values [NUM_LEDS] = { 0, 17, 32, 50, 67, 85, 100, 85, 67, 50, 32, 17 } ;
20 if (wiringPiSetup () == -1)
22 fprintf (stdout, "oops: %s\n", strerror (errno)) ;
26 for (i = 0 ; i < NUM_LEDS ; ++i)
28 softPwmCreate (ledMap [i], 0, RANGE) ;
29 printf ("%3d, %3d, %3d\n", i, ledMap [i], values [i]) ;
34 for (i = 0 ; i < NUM_LEDS ; ++i)
35 softPwmWrite (ledMap [i], values [i]) ;
40 for (j = 0 ; j < NUM_LEDS - 1 ; ++j)
41 values [j] = values [j + 1] ;
42 values [NUM_LEDS - 1] = i ;