-
Notifications
You must be signed in to change notification settings - Fork 1
/
gpio.app.src
39 lines (36 loc) · 1.37 KB
/
gpio.app.src
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et
{application, gpio,
[
{description, ""},
{vsn, "0.1"},
{registered, []},
{applications, [
kernel,
stdlib
]},
{mod, { gpio_app, []}},
{env, [
%% {PinNo, ReadWriteMode, [Options]}
%% PinNo :: 2 .. 27
%% ReadWriteMode :: in | out
%% Options
%% edge :: falling | rising | both | none
%% pull :: up | down | none
%% active_low :: true | false | undefined
{gpio, [
{ 4, in, [{edge, both}, {pull, up}, {active_low, true}] },
{17, in, [{edge, both}, {pull, up}, {active_low, true}] },
{18, in, [{edge, both}, {pull, up}, {active_low, true}] },
{22, in, [{edge, both}, {pull, up}, {active_low, true}] },
{23, in, [{edge, both}, {pull, up}, {active_low, true}] },
{24, in, [{edge, both}, {pull, up}, {active_low, true}] },
{25, out, [{edge, both}, {pull, down}] },
{27, out, [{edge, both}, {pull, down}] }
]},
%% Enable on Galileo
%%{analog_list, [0, 1, 2, 3, 4, 5]},
{analog_list, []},
{analog_interval, 3000}
]}
]}.