Commits on May 24, 2017
  1. esp32: Add PWM support via machine.PWM class.

    Andy Valencia authored and dpgeorge committed May 19, 2017
    This patch adds the machine.PWM class.
    Code lineage:
    I started by copying the esp8266 machine_pwm.c. I used information from the
    ESP32 Technical Reference Manual, the esp-idf documentation, and the SDK's
    sample ledc example code (but I did not copy that code, just studied it to
    understand the SDK's API for PWM). So aside from the code copied from the
    esp8266 PWM support, everything else you see is just new code I wrote.
    I wasn't an employee of anybody when I wrote it, and I wrote it with the
    understanding and intention that it's simply a derivative work of the
    existing micropython code. I freely and willingly contribute it to the
    project and intend that it not change the legal status of the micropython
    code base in any way, even if it is included in that base in whole or part.
Commits on May 21, 2017
  1. esp8266, stmhal, zephyr: Rename machine.Pin high/low methods to on/off.

    pfalcon committed Apr 16, 2017
    For consistent Pin/Signal class hierarchy. With it, Signal is a proper
    (while still ducktyped) subclass of a Pin, and any (direct) usage of Pin
    can be replace with Signal.
    As stmhal's class is reused both as machine.Pin and legacy pyb.Pin,
    high/low methods actually retained there.

    pfalcon committed May 21, 2017
  3. library/machine.Pin: Remove .id() method and .board class attr.

    pfalcon committed May 21, 2017
    Both aren't part of generic Hardware API: It's impossible to implement
    .id() method in a generic case (e.g., when Pin is instantiated by the
    underlying OS/RTOS). .board attribute is an obvious space hog which
    instead can be implemented on Python level if needed.
  4. cc3200/mods/pybpin: Remove toggle() method.

    pfalcon committed May 21, 2017
    It's not part of MicroPython HW API and can be easily implemented on Python
    level in case of need.
    Saved 56 bytes of binary.
Commits on May 19, 2017
  1. esp8266/machine_uart: Add uart.any() method.

    dpgeorge committed May 17, 2017
    Returns 0 or 1, corresponding to no or at least 1 char waiting.
  2. esp32/modmachine: Add unique_id() function to machine module.

    MrSurly authored and dpgeorge committed May 17, 2017
    Returns bytes(6) which is MAC address.
Commits on May 18, 2017
Commits on May 17, 2017
  1. drivers/display/lcd160cr: Fix get_line method and enhance screen_dump.

    dpgeorge committed May 17, 2017
    The docs are updated and describe the new behaviour of these methods.
  2. esp32: Update to latest ESP IDF.

    MrSurly authored and dpgeorge committed May 15, 2017
    The -Wno-array-bounds for dport_access.o is needed to suppress warnings
    when CONFIG_FREERTOS_UNICORE is enabled.
Commits on May 16, 2017
  1. examples/hwapi/soft_pwm2_uasyncio: Update for call_later_ms().

    pfalcon committed May 16, 2017
    Following finalized naming in uasyncio.
  2. zephyr/main: Check default netif before applying operations to it.

    pfalcon committed May 16, 2017
    If no network driver is enabled (e.g., it doesn't exist for a particular
    board), it will be NULL.
  3. zephyr/modusocket: Get rid of cur_pkt object member.

    pfalcon committed May 16, 2017
    Instead, just peek a packet at the head of the queue and work with it.
  4. zephyr/modusocket: First step to switch to alternative FIFO processing.

    pfalcon committed May 16, 2017
    Here we wait for non-empty FIFO, and then directly access/drop its head
  5. tools/ Fix regression with freezing floats in obj repr C.

    dpgeorge committed May 16, 2017
    Regression was introduced by ec53460
  6. stmhal/modmachine: Add machine.UART class, linking to pyb.UART.

    dpgeorge committed May 16, 2017
    pyb.UART has a superset of machine.UART functionality so can be used to
    provide compatibility with other ports that also implement machine.UART.
Commits on May 15, 2017
  1. py/objstringio: Fix StringIO reads at or beyond EOF.

    tomlogic authored and pfalcon committed May 12, 2017
    Existing code failed if seek() went past EOF (which is acceptable when writing).
Commits on May 14, 2017
  1. docs/library/index: Add important summary of the intro section as war…

    pfalcon committed May 14, 2017
    To make them harder to miss.