Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
4fbff3f3
Commit
4fbff3f3
authored
Jan 26, 2015
by
Vowstar
Browse files
Merge pull request #137 from alonewolfx2/patch-2
for reading internal vdd33 pin voltage.
parents
4b1b911c
4af08731
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/node.c
View file @
4fbff3f3
...
...
@@ -53,6 +53,13 @@ static int node_chipid( lua_State* L )
lua_pushinteger
(
L
,
id
);
return
1
;
}
// Lua: readvdd33()
static
int
node_readvdd33
(
lua_State
*
L
)
{
uint32_t
vdd33
=
readvdd33
();
lua_pushinteger
(
L
,
vdd33
);
return
1
;
}
// Lua: flashid()
static
int
node_flashid
(
lua_State
*
L
)
...
...
@@ -287,6 +294,7 @@ const LUA_REG_TYPE node_map[] =
{
LSTRKEY
(
"led"
),
LFUNCVAL
(
node_led
)
},
{
LSTRKEY
(
"input"
),
LFUNCVAL
(
node_input
)
},
{
LSTRKEY
(
"output"
),
LFUNCVAL
(
node_output
)
},
{
LSTRKEY
(
"readvdd33"
),
LFUNCVAL
(
node_readvdd33
)
},
#if LUA_OPTIMIZE_MEMORY > 0
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment