Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/examples/lua Clarify gpio example.



details:   https://anonhg.NetBSD.org/src/rev/6e5006cb2854
branches:  trunk
changeset: 823815:6e5006cb2854
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Wed May 10 07:51:07 2017 +0000

description:
Clarify gpio example.

diffstat:

 share/examples/lua/gpio.lua |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r cbf0630f1896 -r 6e5006cb2854 share/examples/lua/gpio.lua
--- a/share/examples/lua/gpio.lua       Wed May 10 07:37:33 2017 +0000
+++ b/share/examples/lua/gpio.lua       Wed May 10 07:51:07 2017 +0000
@@ -1,4 +1,8 @@
--- $NetBSD: gpio.lua,v 1.3 2014/07/19 18:38:34 lneto Exp $
+-- $NetBSD: gpio.lua,v 1.4 2017/05/10 07:51:07 mbalmer Exp $
+
+-- This example works only if all pins, starting from pin 0 up to the
+-- number returned by gpio.info() are, readable.  It does _not_ work if
+-- only part of the pins are configured.
 
 local gpio = require 'gpio'
 



Home | Main Index | Thread Index | Old Index