summaryrefslogtreecommitdiff
path: root/README
blob: 75695e8f136a134d3dc22ce71180e2a9839d9a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-*- org -*-

Guile-GPIO provides a convenient Guile interface to the Linux GPIO
Sysfs API.  It abstracts away all of the details regarding the GPIO
file system and allows the programmer to focus on writing userspace
GPIO drivers rather than fiddling with file descriptors.

#+BEGIN_SRC scheme
  (use-modules (gpio))

  (with-pins ((pin1 1 #:direction 'in #:edge 'falling)
              (pin3 3 #:direction 'out))
    (pin-set! pin3 #t))
#+END_SRC