diff options
author | David Thompson <dave@xobs-novena> | 2016-03-09 21:03:08 -0500 |
---|---|---|
committer | David Thompson <dave@xobs-novena> | 2016-03-09 21:03:08 -0500 |
commit | 363a036dbfe26c02ce32864894af9224483bc84b (patch) | |
tree | fb5d3a012f5ab12af8825a501642ffff56db5457 | |
parent | aeab77ac22f5668fcee5601a938d2d044b9de5b5 (diff) |
-rw-r--r-- | README | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,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 |