本帖最后由 47857872 于 2018-6-3 09:43 编辑
这个是LoBo在20180516这个版本的changelist, 有很多有实用价值的功能开始work了
Updates from April 04 - May 16:
MicroPython core updated to the latest commit (1b7487e, 2018-05-16) from MicroPython master branch.
esp-idf updated to "v3.1-dev-961-ga2556229", comit a2556229aa6f55b16b171e3325ee9ab1943e8552, from 2018-05-08
Temporary solution for esp-idf bug (cannot set the QIO mode on some Flash chips)
Added support for runtime detection of SPIRAM
firmwares built with SPIRAM support can now run on boards without SPIRAM
Added GPS module, Wiki
Collecting gps data from separate FreeRTOS task (in background) is supported
Added built-in function float_precision(), precision of floats can be now set at run time
Added new method of initializing the array objects, size of the array object can be specified, uses much less heap space
Updated mqtt module, Wiki
uses new espmqtt library, new features and some bug fixes
mqtt over websockets is now also supported
Updated sys module
added function espidf_info(), returns information about used esp-idf
Added sys.tz() function o get or set the time zone
The time zone is saved in NVS string and time zone is set on boot
The time zone can be now preserved on reset, power off or deepsleep wake up
Updated machine module
Added SetStackSize() function to set the MicroPython stack size
Added SetHeapSize() function to set the MicroPython heap size
Both heap an stack sizes are set as NVS variables and are read at boot time to set the sizes, so the sizes may now be different than the compiled ones
Updated machine.timer module, changed function name reshot() to reshoot()
Updated machine.ADC module
Fixed bug: adc.read() always returns 0
Added support for ADC2
other minor bug fixes and improvements
Updated gc module
added function collectif(), conditional collect if heap usage greater than specified
optional argument can now be used with gc.collect() and gc.collectif() which enables printing some gc information
gc.threshold() value must be > 20K
gc.threshold() accepts additional argument which can set the gc debug level during automatic garbage collection
Updated utimeq module, fixed bugs in getting/setting time values
Updated display module, added text_x() and text_y() functions
Fixed bug when mp_hal_ticks_base was not updated afer soft resets
Updated network module, Wiki
Operating in STA & AP mode at the same time (APSTA) is now supported
ap_if.status('clients') now returns client's mac address and IP address
Updated uart module, Wiki
changes needed for gps module
more reliable
fixed critical bug which could cause crash after gc collect
fixed bug when wrong parameter was returned to callback functions
fixed issue where linefeed and pattern arguments were not able to accept character values > \x7f
added option to set inverted mode for Rx, Tx, CTS, RTS
enabled using hw flow controll if CTS and/or RTC pisn are defined
write_break() function added which emits the break signal after data write
Updated sockets module from latest official MicroPython
Updated rtc module, fixed bug in setting time zone in ntp_sync() function
microWebServer frozen module updated
Some frozen modules updated: upip (frozen module, pypy URL updated, some issues with ssl fixed), urequests, logging
SD card improvements
Improved initialization, it is now possible to connect SD cards without external pull-ups
high speed mode is now enabled for SD modes
Updated _thread module, some improvements, better handling by garbage collect
Updated BUILD.sh, added options to select the comm port and/or baud rate from command line
Some new options added to menuconfig:
Using or not UNICODE can now be configured
Using or not Finalizer
Whether gc.collect() returns value
MicroPython scheduler depth
MicroPython thread GIL 复制代码