From fe62047d0623b15111a73df664c6901b92e44044 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Mon, 27 May 2013 09:44:14 -0400 Subject: [PATCH] lib/gpio: intro of a basic GPIO abstraction library MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gpio.nit | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/gpio.nit diff --git a/lib/gpio.nit b/lib/gpio.nit new file mode 100644 index 0000000..820f608 --- /dev/null +++ b/lib/gpio.nit @@ -0,0 +1,22 @@ +# This file is part of NIT ( http://www.nitlanguage.org ). +# +# Copyright 2013 Alexis Laferrière +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# GPIO related functionnalities +module gpio + +interface Pin + fun write(high: Bool) is abstract +end -- 1.7.9.5