summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dave@xobs-novena>2016-03-09 21:03:08 -0500
committerDavid Thompson <dave@xobs-novena>2016-03-09 21:03:08 -0500
commit363a036dbfe26c02ce32864894af9224483bc84b (patch)
treefb5d3a012f5ab12af8825a501642ffff56db5457
parentaeab77ac22f5668fcee5601a938d2d044b9de5b5 (diff)
Add README.HEADmaster
-rw-r--r--README14
1 files changed, 14 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..75695e8
--- /dev/null
+++ b/README
@@ -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