Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (30 sloc) 1.09 KB
%%% An Erlang NIF which wraps the WiringPi library (by Gordon Henderson).
%%% Copyright (C) 2012 Klas Johansson
%%%
%%% This file is part of wpi.
%%%
%%% wpi is free software: you can redistribute it and/or modify
%%% it under the terms of the GNU Lesser General Public License as
%%% published by the Free Software Foundation, either version 3 of the
%%% License, or (at your option) any later version.
%%%
%%% wpi is distributed in the hope that it will be useful,
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%%% GNU Lesser General Public License for more details.
%%%
%%% You should have received a copy of the GNU Lesser General Public License
%%% along with wpi. If not, see <http://www.gnu.org/licenses/>.
-ifndef(WPI_HRL).
-define(WPI_HRL, true).
-define(WPI_INPUT, 0).
-define(WPI_OUTPUT, 1).
-define(WPI_PWM_OUTPUT, 2).
-define(WPI_LOW, 0).
-define(WPI_HIGH, 1).
-define(WPI_PUD_OFF, 0).
-define(WPI_PUD_DOWN, 1).
-define(WPI_PUD_UP, 2).
-define(WPI_LSB_FIRST, 0).
-define(WPI_MSB_FIRST, 1).
-endif. % WPI_HRL