API for JS
全局对象
- console.log
- sleep
- active_port
- flash_mcu
- setTimeout
- setInterval
- clearTimeout
- parseJSON
- SetGpioCallBack
- loadScript
fs
- mount
- mkfs
- open
- remove
- rename
- stat
- readdir
- rmdir
- loadFile
- loadScript
GPIO
- GPIO.Dir
- GPIO.Pull
- GPIO.Init
- GPIO.Toggle
- GPIO.On
- GPIO.Off
- GPIO.Get
- GPIO.Set
I2C
- reset
- scan
- read
- write
SPI
- init
- read
- write
- WR
- port
- cs
- baudrate
- mode