Mit der bcm2835 lib schon mal probiert? http://elinux.org/Rpi_Low-level_peri...mple_.28C.29_2