Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
5be9f9cc
Commit
5be9f9cc
authored
Nov 10, 2014
by
funshine
Browse files
update readme and the firmware
parent
5b60a38a
Changes
4
Show whitespace changes
Inline
Side-by-side
0.9.2/512k-flash/eagle.app.v6.flash.bin
View file @
5be9f9cc
No preview for this file type
0.9.2/512k-flash/eagle.app.v6.irom0text.bin
View file @
5be9f9cc
No preview for this file type
README.md
View file @
5be9f9cc
# **nodeMcu API Instruction** #
###version 0.
1
2014-1
0
-1
1
###version 0.
2
2014-1
1
-1
0
###change log:
2014-11-10
<br
/>
...
...
@@ -328,7 +328,7 @@ file content in string, line by line
<a
id=
"fl_writeline"
></a>
## file.writeline()
####Description
write
new l
in
e
to file
with
a '
\n
' at the end.
write
str
in
g
to file
and add
a '
\n
' at the end.
####Syntax
file.writeline(string)
...
...
@@ -337,7 +337,8 @@ file.writeline(string)
string: content to be write to file
####Returns
nil
true: write ok.
nil: there is error
####Example
...
...
@@ -364,6 +365,35 @@ file.write(string)
####Parameters
string: content to be write to file.
####Returns
true: write ok.
nil: there is error
####Example
```
//open 'init.lua' in 'a+' mode
file.open("init.lua", "a+")
//write 'foo bar' to the end of the file
file.write('foo bar')
file.close()
```
####See also
**-**
[
file.open()
](
#fl_open
)
<br
/>
**-**
[
file.writeline()
](
#fl_writeline
)
<a
id=
"fl_flush"
></a>
## file.flush()
####Description
flush to file.
####Syntax
file.flush()
####Parameters
nil
####Returns
nil
...
...
@@ -374,6 +404,7 @@ nil
file.open("init.lua", "a+")
//write 'foo bar' to the end of the file
file.write('foo bar')
file.flush()
file.close()
```
...
...
@@ -586,7 +617,7 @@ nil
```
####See also
**-**
[
wifi.sta.
.
config()
](
#ws_config
)
<br
/>
**-**
[
wifi.sta.config()
](
#ws_config
)
<br
/>
**-**
[
wifi.sta.connect()
](
#ws_connect
)
...
...
@@ -612,7 +643,7 @@ nil
```
####See also
**-**
[
wifi.sta.
.
config()
](
#ws_config
)
<br
/>
**-**
[
wifi.sta.config()
](
#ws_config
)
<br
/>
**-**
[
wifi.sta.connect()
](
#ws_connect
)
<br
/>
**-**
[
wifi.sta.disconnect()
](
#ws_disconnect
)
...
...
@@ -666,7 +697,7 @@ mac address in string, for example:"18-33-44-FE-55-BB"
```
####See also
**-**
[
wifi.sta.
.
getip()
](
#ws_getip
)
**-**
[
wifi.sta.getip()
](
#ws_getip
)
#wifi.ap module
...
...
@@ -724,7 +755,7 @@ ip address in string, for example:"192.168.0.111"
```
####See also
**-**
[
wifi.ap.
.
getmac()
](
#wa_getmac
)
**-**
[
wifi.ap.getmac()
](
#wa_getmac
)
<a
id=
"wa_getmac"
></a>
...
...
@@ -1005,7 +1036,7 @@ nil
####Example
```
//set pin index 0 as pwm output, frequency is 100Hz, duty cycle is 50-50.
.
//set pin index 0 as pwm output, frequency is 100Hz, duty cycle is 50-50.
pwm.setup(0, 100, 50)
```
...
...
README
1
.md
→
README
_cn
.md
View file @
5be9f9cc
File moved
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