summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
Commit message (Collapse)AuthorAge
* esp8266: Provide a dedicated variable to disable ets_loop_iter.Damien George2016-06-01
| | | | So ets_loop_iter is now only disabled when using machine.disable_irq.
* esp8266/rtc: Set RTC user memory length to 0 on first boot.Damien George2016-06-01
| | | | | | So that RTC.memory() returns b'' on power up if it was never set. Fixes issue #2138.
* esp8266/moduos.c: Add stat() to the module uos of esp8266.Robert HH2016-05-31
| | | | | | | This implementation makes use of vfs.stat() and therefore has the same properties. Known issues for all ports: uos.stat(".") on the top level returns the error code 22, EINVAL. The same happens with uos.stat("dirname/") where dirname IS the name of a directory.
* esp8266: Enable MICROPY_PY_IO_FILEIO to get compliant text/binary streams.Paul Sokolovsky2016-05-31
|
* extmod/machine: Add MICROPY_PY_MACHINE_PULSE config for time_pulse_us.Damien George2016-05-31
| | | | | Since not all ports that enable the machine module have the pin HAL functions.
* esp8266/modmachine: Add machine.time_pulse_us function.Damien George2016-05-31
|
* esp8266/scripts/ntptime: Allow to override NTP server.Paul Sokolovsky2016-05-30
| | | | | This is not part of public API, variable name may change, or it can be replaced with a function.
* esp8266/moduos: Add chdir() and getcwd() functions.Paul Sokolovsky2016-05-29
|
* esp8266/uart: Properly initialise UART0 RXD pin in uart_config.Damien George2016-05-29
| | | | Tested and seems to work. See #1995.
* esp8266/modnetwork: Allow to press ctrl-C while scan() is running.Damien George2016-05-29
| | | | | | | Ctrl-C will raise a KeyboardInterrupt and stop the scan (although it will continue to run in the background, it won't report anything). If interrupted, and another scan() is started before the old one completes in the background, then the second scan will fail with an OSError.
* esp8266/modnetwork: Protect scan() callback against memory errors.Damien George2016-05-29
| | | | scan() allocates memory so may cause an exception to be raised.
* esp8266/modnetwork: scan() is only supported by STA when it's enabled.Damien George2016-05-29
|
* esp8266/Makefile: Document "disable" value for UART_OS.Paul Sokolovsky2016-05-27
|
* esp8266: Add dht.py script for high-level control of DHT11/DHT22 sensor.Damien George2016-05-26
| | | | | TODO: should go in a more port-neutral place, like drivers/dht, but at the moment in relies on specific esp module.
* esp8266: Enable DHT C-level driver.Damien George2016-05-26
| | | | | Exposed as esp.dht_readinto. Probably should go somewhere less port-specific.
* extmod/machine_i2c: Redo mp_hal_pin macros to use open_drain and od_low.Damien George2016-05-26
| | | | | mp_hal_pin_config_od is renamed mp_hal_pin_open_drain, and mp_hal_pin_low is mp_hal_pin_od_low.
* esp8266/modmachine: Add disable_irq and enable_irq functions.Damien George2016-05-26
|
* esp8266/ets_alt_task: Don't run ets_loop_iter if irqs are disabled.Damien George2016-05-26
| | | | | | ets_loop_iter processes pending tasks, and tasks are considered lower priority than interrupts, so tasks shouldn't be processed if interrupts are disabled.
* esp8266/xtirq: Add xtirq.h for controlling xtensa irqs.Damien George2016-05-26
|
* esp8266/modpybspi: Configure pins when initialising an SPI object.Damien George2016-05-26
|
* esp8266: Add mp_hal_pin_input() and mp_hal_pin_output() functions.Damien George2016-05-26
|
* esp8266/esp_mphal: mp_uos_dupterm_deactivate() may raise exception.Paul Sokolovsky2016-05-24
| | | | So, keep call to it protected via NLR still.
* esp8266/esp_mphal: Handle Ctrl+C from dupterm (e.g. WebREPL).Paul Sokolovsky2016-05-24
|
* esp8266/esp_mphal: Fix NLR buffer leak in call_dupterm_read().Paul Sokolovsky2016-05-24
|
* esp8266/scripts/port_diag: Dump network interface IP settings.Paul Sokolovsky2016-05-24
|
* esp8266/main: Update _boot module loading for recent frozen modules refactors.Paul Sokolovsky2016-05-22
|
* esp8266: Enable collections.OrderedDict.Paul Sokolovsky2016-05-22
|
* extmod/moduos_dupterm: Dumpterm subsystem is responsible for closing stream.Paul Sokolovsky2016-05-20
| | | | | | | | Make dupterm subsystem close a term stream object when EOF or error occurs. There's no other party than dupterm itself in a better position to do this, and this is required to properly reclaim stream resources, especially if multiple dupterm sessions may be established (e.g. as networking connections).
* esp8266: Add APA102 serial individually controllable LEDs support.misterdanb2016-05-19
| | | | APA102 is a new "smart LED", similar to WS2812 aka "Neopixel".
* esp8266/README: Add a very first start section.Torwag2016-05-19
| | | | | | Adding a very first start section to get people going after flashing. I tried to condense it to a minimum to avoid as much as possible redundancy and bloating.
* esp8266/scripts/webrepl_setup: Add max password length check.Paul Sokolovsky2016-05-17
| | | | modwebrepl truncates password to 9 chars, and that led people to confusion.
* esp8266/scripts/webrepl_setup: Show password placeholder char.Paul Sokolovsky2016-05-17
| | | | | That was the intent for the initial user setup, but didn't work before due to lwIP issues. Enable now that they're fixed.
* esp8266/scripts/port_diag: Add network diagnostic output.Paul Sokolovsky2016-05-16
|
* esp8266/moduos.c: Addition of the rename method to module uos.Robert HH2016-05-16
| | | | | | | | | | | | | | That one was missing in the module, even if it was available in the vfs object. The change consist of adding the name and preparing the call to the underlying vfs module, similar to what was already implemented e.g. for remove. Rename is useful by itself, or for instance for a safe file replace, consisting of the sequence: write to a temp file delete the original file rename the temp file to the original file's name
* esp8266: Change to use internal errno's.Damien George2016-05-12
|
* esp8266: Enable uerrno module, weak linked also as errno.Damien George2016-05-10
|
* esp8266: Convert to use new MP_Exxx errno symbols.Damien George2016-05-10
| | | | | | | These symbols are still defined in terms of the system Exxx symbols, and can be switched to internal numeric definitions at a later stage. Note that extmod/modlwip still uses many system Exxx symbols.
* esp8266/help: Add "sta_if.active(True)" command.Paul Sokolovsky2016-05-10
| | | | As reported on the forum by Roberthh.
* esp8266/mpconfigport: Reduce various parser-related allocation params.Paul Sokolovsky2016-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This gives noticeable result for parsing simple input (modelled on 32-bit unix port): Before: >>> micropython.mem_total() 3360 >>> micropython.mem_total() 4472 After: >>> micropython.mem_total() 3072 >>> micropython.mem_total() 4052 However, effect on parsing large input is much less conclusive, e.g.: Before: >>> micropython.mem_total() 3376 >>> import pystone_lowmem >>> micropython.mem_total() 33006 delta=29630 After: >>> micropython.mem_total() 3091 >>> import pystone_lowmem >>> micropython.mem_total() 32509 delta=29418
* esp8266/main: Bump heap size to 28K.Paul Sokolovsky2016-05-09
| | | | | | This is kind of compensation for 4K FatFs buffer size which is eaten away from it on FS mount. This should still leave enough of networking ("OS") heap.
* esp8266/scripts/webrepl: Add start_foreground() method.Paul Sokolovsky2016-05-08
| | | | Starts WebREPL server in foreground and waits for (single) connection.
* esp8266/scripts/webrepl: Add optional password argument to webrepl.start()Noah Rosamilia2016-05-07
| | | | This commit fixes issue #2045
* esp8266/scripts/: Add fill() to NeoPixelMike Causer2016-05-07
|
* esp8266/scripts/inisetup: Don't start WebREPL on boot in master branch.Paul Sokolovsky2016-05-07
| | | | | | 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.
* esp8266/scripts/: Remove use of pin.PULL_NONE.Paul Sokolovsky2016-05-05
| | | | | This constant is no longer part of hardware API (replaced with just None), and is a default, so not needed in calls.
* esp8266/main: Set sys.path to ["", "/", "/lib"].Paul Sokolovsky2016-05-03
|
* esp8266: Shrink help text by a few lines, to fit in smaller windows.Damien George2016-05-03
|
* esp8266/scripts/ntptime: Add simple NTP client.Paul Sokolovsky2016-05-03
| | | | | .time() returns seconds since MicroPython epoch (2000-01-01 00:00UTC), .settime() sends current system time, assuming UTC timezone.
* esp8266/modpybpin: Make pin.irq() methods take keyword args.Damien George2016-05-03
|
* esp8266/modpybpin: Use None instead of PULL_NONE for no-pull config.Damien George2016-05-03
|