From 363a036dbfe26c02ce32864894af9224483bc84b Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 9 Mar 2016 21:03:08 -0500 Subject: Add README. --- README | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 README 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 -- cgit v1.2.3