Mike Causer
13d06a83e1
esp8266/scripts/: Add fill() to NeoPixel
9 years ago
Paul Sokolovsky
8db61e5b5a
esp8266/scripts/inisetup: Don't start WebREPL on boot in master branch.
It interferes with running testsuite. master branch should be optimized for
development, so any features which interfere with that, would need to be
disabled by default.
9 years ago
Paul Sokolovsky
df2b1a4758
esp8266/scripts/: Remove use of pin.PULL_NONE.
This constant is no longer part of hardware API (replaced with just None),
and is a default, so not needed in calls.
9 years ago
Paul Sokolovsky
fb5017f9dc
esp8266/main: Set sys.path to ["", "/", "/lib"].
9 years ago
Damien George
496a601c3b
esp8266: Shrink help text by a few lines, to fit in smaller windows.
9 years ago
Paul Sokolovsky
f873a5005a
esp8266/scripts/ntptime: Add simple NTP client.
.time() returns seconds since MicroPython epoch (2000-01-01 00:00UTC),
.settime() sends current system time, assuming UTC timezone.
9 years ago
Damien George
8e130fcf2b
esp8266/modpybpin: Make pin.irq() methods take keyword args.
9 years ago
Damien George
8a3e9036eb
esp8266/modpybpin: Use None instead of PULL_NONE for no-pull config.
9 years ago
Damien George
9df6b3a2c2
esp8266/modpybpin: Use enum+array instead of struct for parsing args.
9 years ago
Damien George
b539a61490
esp8266/scripts/neopixel.py: Swap red and green in pixel accessor.
9 years ago
Paul Sokolovsky
5e94f0b43a
esp8266/scripts/inisetup: Update for nic.mac() method being gone.
9 years ago
Paul Sokolovsky
35e63f0007
esp8266/modnetwork: Remove .mac() method, move to .config("mac").
Querying/setting MAC address is pretty adhoc operation to belong to
.config() instead of taking a whole method on its own.
9 years ago
Paul Sokolovsky
3944d3511f
esp8266/scripts/inisetup: Enable WebREPL auto-start on boot.
9 years ago
Paul Sokolovsky
76c81cd5a6
esp8266/modesp: Add malloc() and free() functions.
Useful for testing fragmentation issues in OS heap. E.g. freemem() may
report large amount, but is it possible to actually allocate block of
a given size? Issue malloc() (followed by free()) to find out.
9 years ago
Paul Sokolovsky
2123ced3f4
esp8266/modesp: Add esf_free_bufs() debugging function.
Return number of free inernal WiFi buffers.
9 years ago
Paul Sokolovsky
3d830415bc
esp8266/esp_mphal: Add ets_esf_free_bufs(), etc. functions.
Returning free number of various WiFi driver packet buffers.
9 years ago
Paul Sokolovsky
7b7c99fec1
esp8266/modnetwork: Remove deprecated wifi_mode().
Network interfaces are now controlled individually using .active() method.
9 years ago
Damien George
9215cdc7fd
esp8266: Change platform name from ESP8266 to esp8266.
The port name is lowercase, and this change is made for consistency with
the docs and other ports.
9 years ago
Paul Sokolovsky
13d9d50fea
esp8266/scripts/webrepl_setup: Reject too short passwords.
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
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
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
f8170db390
esp8266: Enable WebREPL file transfer rate limiting.
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
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
bsdfox
193c62226c
esp8266/README: Add recently required step of 'make axtls'.
9 years ago
Paul Sokolovsky
978a429aaa
esp8266: Set suitable values for axtls's RT_MAX_PLAIN_LENGTH & RT_EXTRA.
9 years ago
Damien George
8c3b5526ae
esp8266/scripts/neopixel.py: Remove test function from neopixel driver.
It takes up lots of room and isn't needed.
9 years ago
Damien George
1f7cec944e
esp8266/scripts/onewire.py: Simplify and improve 1-wire driver.
Changes are:
- added OneWireError exception and used where errors can occur
- renamed read/write functions to use same names as C _onewire funcs
- read_bytes is now read, write_bytes is now write
- add ability to read/write DS18B20 scratch pad
- rename start_measure to convert_temp (since that's what it does)
- rename get_temp to read_temp (consistency with other read names)
- removed test function
9 years ago
Damien George
38358a096d
esp8266: Move onewire.py, neopixel.py drivers from tests/ to scripts/.
9 years ago
Damien George
a6aa35af09
esp8266: Move pyb.info() function to esp module and remove pyb module.
All functionality of the pyb module is available in other modules, like
time, machine and os. The only outstanding function, info(), is
(temporarily) moved to the esp module and the pyb module is removed.
9 years ago
Paul Sokolovsky
0785040593
esp8266/Makefile: Enable "ussl" module.
axTLS should be built first using "make axtls".
9 years ago
Paul Sokolovsky
941ddfe559
esp8266/Makefile: Support linking with axTLS built from source.
9 years ago
Damien George
8ed3a9eb9c
esp8266/tests/onewire.py: Don't run test on import.
9 years ago
Paul Sokolovsky
dc2c8f0b1a
esp8266/axtls_helpers: Helper/wrapper functions for axTLS.
9 years ago
Paul Sokolovsky
648333d2d5
esp8266/Makefile: Override abort() when building axtls.
abort() is a special function known to compiler as no-return.
9 years ago
Paul Sokolovsky
6afd651f1e
esp8266/esp8266.ld: Put axTLS to FlashROM.
9 years ago
Paul Sokolovsky
6149ce01f8
esp8266/Makefile: Add target to build axTLS.
9 years ago
Paul Sokolovsky
90b2cfe644
esp8266/scripts/webrepl: Add "ws://" to "daemon started at" message.
To remind people it's not HTTP.
9 years ago
Paul Sokolovsky
237c519ac4
esp8266/scripts/flashbdev: Use all available Flash for filesystem.
All Flash sans firmware at the beginning and 16K SDK param block at the
end is used for filesystem (and that's calculated depending on the Flash
size).
9 years ago
Paul Sokolovsky
ef2ffc0e4e
esp8266/scripts/webrepl: Print client address for incoming connections.
9 years ago
Paul Sokolovsky
c888831410
esp8266/scripts/webrepl: Print connection address.
Based on active network interfaces.
9 years ago
Paul Sokolovsky
6d103b6548
py: Move call_function_*_protected() functions to py/ for reuse.
They almost certainly needed by any C code which calls Python callbacks.
9 years ago