Damien George
70ff7350e7
stmhal, cc3200: Change i2c.scan() method to scan addresses 0x08-0x77.
A standard I2C address is 7 bits but addresses 0b0000xxx and 0b1111xxx
are reserved. The scan() method is changed to reflect this, along with
the docs.
9 years ago
Paul Sokolovsky
26fd0ac571
esp8266/Makefile: Be sure to pass cross-compiling AR when building axtls.
Fixes build under MacOSX.
9 years ago
Paul Sokolovsky
8ebdbcfb27
docs: Add _io module reference.
9 years ago
Paul Sokolovsky
348caaf940
docs: Add _collections module reference.
9 years ago
Paul Sokolovsky
1f0dfe37a1
lib/axtls: Update to the latest upstream, fix reported MacOSX build issue.
9 years ago
Paul Sokolovsky
fd283eba64
docs/sys: Describe sys.platform is port-neutral manner.
9 years ago
Paul Sokolovsky
e9b7610748
docs/sys: Describe sys.maxsize.
9 years ago
Paul Sokolovsky
59603a2e89
docs/sys: Describe sys.implementation.
9 years ago
Paul Sokolovsky
4fb9452bff
docs/sys: Clean up print_exception() description.
9 years ago
Paul Sokolovsky
ad2889c141
docs/sys: Clarify description of sys.exit().
9 years ago
Paul Sokolovsky
8ad1659f68
docs/sys: Make module variable descriptions proper sentences.
9 years ago
Paul Sokolovsky
7781caf8d3
docs/sys: Remove port-specific details from description of stdin/out/err.
9 years ago
Paul Sokolovsky
c468fe65c5
docs/ustruct: Fix argument formatting.
Per current CPython docs conventions, arguments are in italics. Follow
that.
9 years ago
Paul Sokolovsky
a9ed42b3b4
docs/sys: Document sys.modules.
9 years ago
Paul Sokolovsky
6b6acc5b5d
docs/ustruct: Document pack_into(), unpack_from().
9 years ago
Paul Sokolovsky
d46cd02d95
docs/esp8266/quickref: Add info about WebREPL.
9 years ago
Paul Sokolovsky
df06e34175
tests/run-bench-tests: Process tests in alphabetical order.
9 years ago
Paul Sokolovsky
83e99f88cb
docs/utime: Clarify module purpose.
9 years ago
Paul Sokolovsky
613fd0a1ca
docs/library/utime: Elaborate on epochs and calendar time maintenance.
9 years ago
Paul Sokolovsky
9dd2c92d01
esp8266/README: Mention WebREPL.
9 years ago
Paul Sokolovsky
c1d1c562f3
esp8266/scripts/webrepl: Add "first connection" mode to setup password.
If there's no port_config.py file, or it lacks WEBREPL_PASS variable,
"initial setup mode" will be entered on first WebREPLconnection. User
will be asked for password, which will be written to
port_config.WEBREPL_PASS, and system restarted to work in normal mode
with password active.
9 years ago
Paul Sokolovsky
962d5a987f
esp8266/scripts/webrepl: Switch to using _webrepl object wrapper.
Handling of binary protocol is untested on esp8266 so far.
9 years ago
Paul Sokolovsky
006ffe1561
esp8266/scripts/webrepl: Connection ack prompt is now printed by modwebrepl.
After password is checked.
9 years ago
Paul Sokolovsky
859e4e94f3
extmod/modwebrepl: Add support for password.
Request for password then becomes mandatory part of the protocol.
9 years ago
Paul Sokolovsky
6ddd9f3e2b
esp8266/scripts/inisetup: Create default boot.py in filesystem.
Currently it pre-imports webrepl, but doesn't start it.
9 years ago
Paul Sokolovsky
74f413bc60
esp8266/scripts/_boot: builtins is no longer used.
9 years ago
Paul Sokolovsky
d86d65f625
esp8266/scripts: Move all of initial setup to inisetup module.
9 years ago
Paul Sokolovsky
adae53d522
esp8266: Enable webrepl module.
9 years ago
Paul Sokolovsky
18775d3807
extmod/modwebrepl: Set debugging by default to off.
That's production setting. Also, extra UART output may affect behavior of
(subpar) network drivers.
9 years ago
Paul Sokolovsky
f8170db390
esp8266: Enable WebREPL file transfer rate limiting.
9 years ago
Paul Sokolovsky
b0f3ae58e7
extmod/modwebrepl: Add rate-limiting workaround for broken network drivers.
Like ESP8266 has.
9 years ago
Paul Sokolovsky
8811b0af9c
extmod/modwebrepl: Use bigger socket receive buffer.
The smaller chunks we send (and receive), the more packets there to
receive, and higher chance to git internal packet buffer overflow in
WiFi driver.
9 years ago
Damien George
12c61ddddd
stmhal/accel: Raise an exception if the accel couldn't be initialised.
On PYBLITEv1.0 there is no accelerometer and in this case the Accel()
constructor should not silently succeed.
9 years ago
Paul Sokolovsky
b3bc2ee1b9
extmod/modwebrepl: More detailed debug output.
So detailed that even commented by default.
9 years ago
Paul Sokolovsky
473b639845
extmod/modwebrepl: GET_FILE: Send length-prefix chunk with one write().
A bit of optimization.
9 years ago
Paul Sokolovsky
3f3ccef829
README: Mention support "async" keyword from Python 3.5.
9 years ago
Paul Sokolovsky
f41e1f1bb7
extmod/modwebrepl: Keep reading data when there's something to read.
EAGAIN should be returned only if underlying socket returned it. Wrap
existing read function into external loop to process all data available.
9 years ago
Paul Sokolovsky
6514ff6160
extmod/modwebrepl: Initial implementation of "get file" operation.
9 years ago
Paul Sokolovsky
25d0f7d59d
extmod/modwebrepl: Module to handle WebREPL protocol.
While just a websocket is enough for handling terminal part of WebREPL,
handling file transfer operations requires demultiplexing and acting
upon, which is encapsulated in _webrepl class provided by this module,
which wraps a websocket object.
9 years ago
Paul Sokolovsky
22050a3ed0
esp8266/help: Add cheatsheet for basic WiFi configuration.
9 years ago
Paul Sokolovsky
b639ce27c7
esp8266/help: Implement help() builtin.
9 years ago
Paul Sokolovsky
c10d303e1b
README: Promote "docs" and "tests" to "major components".
9 years ago
Aex Aey
af554b4ba2
esp8266/modnetwork: Make WLAN.ifconfig() read/write.
Allow setting ip, netmask, gw and dns server (also, allows getting dns).
For docs see: https://github.com/micropython/micropython/commit/06deec9
9 years ago
Martin Müller
31fc81d3b8
unix/Makefile: Make install more compatible (BSD, etc.).
The current install command uses the flag -D which is specific to the
install command from GNU coreutils, but isn't available for the BSD
version. This solution uses the -d flag which should be commonly
available to create the target directory. Afterwards the target files
are installed to this directory seperately.
9 years ago
bsdfox
193c62226c
esp8266/README: Add recently required step of 'make axtls'.
9 years ago
Paul Sokolovsky
8fcfaf6f22
examples/http_server_ssl.py: HTTPS server example.
9 years ago
Paul Sokolovsky
978a429aaa
esp8266: Set suitable values for axtls's RT_MAX_PLAIN_LENGTH & RT_EXTRA.
9 years ago
Paul Sokolovsky
ba61480df5
extmod/modussl: SSL_OK from ssl_read() means "no user data so far".
SSL_OK is numeric 0, and it's *not* an EOF. So, should keep reading.
9 years ago
Paul Sokolovsky
2534bfdb92
extmod/modussl: Support server-side SSL sockets.
wrap_socket(sock, server_side=True)
9 years ago
Damien George
348edad888
docs/esp8266: Update quickref to reflect changes to 1-wire and NeoPixel.
9 years ago