1. 31 Jul, 2024 1 commit
  2. 21 May, 2024 1 commit
  3. 09 May, 2024 1 commit
  4. 27 Apr, 2024 1 commit
    • Philip Gladstone's avatar
      Port of the rotary module to ESP32 (#3625) · 92f37dea
      Philip Gladstone authored
      * Ported rotary driver. Compiles but not tested.
      
      * Added the rotary switch driver to the esp32 version
      
      * Review comments. Also ensure that we have GPIO if we have ROTARY.
      
      * Allow use of GPIO 0
      
      * Another bad piece of documentation
      
      * Fix docs and also free the timer
      
      * Now adds a self reference to prevent GC until after close has been called and
      any queued messages have been flushed.
      
      * Simplified the code a bit
      92f37dea
  5. 27 Mar, 2024 3 commits
  6. 18 Feb, 2024 2 commits
  7. 07 Feb, 2024 1 commit
    • Christoph Thelen's avatar
      Update rmt translator (#3629) · 14cdff10
      Christoph Thelen authored
      * Choose the number of RMT buffers in the ws2812 module.
      
      The number of buffers required for optimal operation should be selected
      by the ws2812 module, not the caller.
      
      * Add parameters for RGB LED bit times.
      
      This patch adds compatibility for different RGB LEDS besides the WS2812.
      ESP evaluation boards like the ESP32-C3-DevKitM-1 use an SK68XXMINI-HS
      RGB LED which does not respond to the timings of this module.
      The patch adds optional parameters for the bit timings to the write
      function. If the new parameters are not supplied, the old values are used.
      An example for the SK68XXMINI-HS is provided in the documentation.
      
      * Remove restrictions from RTM translator.
      
      The old RMT translator was not able to split the bits of the source
      data into the size requested by the RMT transmitter. Either all 8 bits
      of an input byte were translated or none.
      The new routine removes the restriction by delivering exactly the
      requested amount of data to the transmitter, which results in a more
      balanced buffering of translated data under load.
      
      * Add a parameter for the RGB LED reset time.
      
      This patch introduces a new optional parameter for the reset time
      in the RGB LED communication. The default is 51.2 microseconds. A
      value of 0 sends no reset signal, which allows a small optimisation
      for consecutive write commands.
      
      Please note that the reset time of the old code should be 50
      microseconds, as the define WS2812_DURATION_RESET suggested. Due to the
      restrictions of the old RMT translator routine, it was slightly
      increased to 51.2 microseconds. This patch keeps the value of 51.2
      microseconds to be as compatible as possible.
      
      * Minimize the time drift between RMT channels.
      
      Place all RMT channels in a group to minimize the time drift between
      the signals. Please note that this feature is not available on all
      platforms.
      
      * Fix the description of the SK6812 LED in the example code.
      
      The SK6812 expects the data for the green LED first, then red and
      finally blue. It should be described as a GRB LED.
      14cdff10
  8. 02 Feb, 2024 1 commit
  9. 30 Jan, 2024 4 commits
    • Mike_Went's avatar
      Fix example pins in docs/modules/uart.md · 3cc1d48b
      Mike_Went authored
      3cc1d48b
    • serg3295's avatar
      fix(mqtt): select next parameter in connect() · 9a9548b0
      serg3295 authored
      9a9548b0
    • Johny Mattsson's avatar
      Upgrade to IDF v5.0.2 · 12035a76
      Johny Mattsson authored
      With minor update required to our spi module.
      12035a76
    • Johny Mattsson's avatar
      Initial migration to IDFv5.0 · f126b6fe
      Johny Mattsson authored
      Plenty of dependency adjustments, printf format specificier updates,
      FreeRTOS type and macro name modernisation, not to mention API changes.
      
      Still plenty of legacy/deprecated drivers in use which will need updating.
      
      The following features have been removed due to no longer being available
      from the IDF:
        - ADC hall effect sensor reading
        - Configuration of SD SPI host via sdmmc module (now must be done first
          via the spimaster module)
        - FAT partition selection on external SD cards; only the first FAT
          partition is supported by the IDF now
      
      On the other hand, the eth module now supports the following new chipsets:
        - KSZ8001
        - KSZ8021
        - KSZ8031
        - KSZ8051
        - KSZ8061
        - KSZ8091
        - Possibly additional models in the LAN87xx series (the IDF docs aren't
          clear on precisely which models are handled)
      
      Further, the sdmmc module is now available on the ESP32-S3 as well.
      f126b6fe
  10. 09 Feb, 2023 2 commits
  11. 17 Jan, 2023 4 commits
  12. 19 Dec, 2022 1 commit
    • Tom Sutcliffe's avatar
      Make sodium.random API behave consistently on all build types · a40d69db
      Tom Sutcliffe authored
      By returning result as a signed 32-bit int between INT32_MIN to IN32_MAX
      which is represented the same regardless of 64-bit support or
      integral-only builds.
      
      Also updated docs, fixed links and clarified behavior of random APIs
      when WiFi isn't started.
      a40d69db
  13. 11 Nov, 2022 1 commit
  14. 30 Sep, 2022 2 commits
  15. 20 May, 2022 2 commits
  16. 05 Mar, 2022 2 commits
    • Philip Gladstone's avatar
      First attempt at adding support for the RMT device. (#3493) · ceb62993
      Philip Gladstone authored
      * Adding the first version of the rmt documentation.
      
      * Stub RMT module compiles.
      
      * This version seems to work in (at least) simple cases.
      
      * CLean up the docs
      
      * Minor fixes
      
      * Give the SPI module a chance of working...
      
      * Update to the released version of idf4.4
      
      * Try to get the CI Build to work in all cases
      
      * Try to get the CI Build to work in all cases
      
      * FIx a ringbuffer return issue
      
      * Remove bogus comment
      
      * Review comments
      
      * Better example of transmission
      
      * Review comments
      
      * Add table send example
      
      * Improved documentation
      
      * Documentation comments
      
      * Install the driver correctly.
      
      * A couple of doc updates
      
      * Fix typo
      ceb62993
    • Johny Mattsson's avatar
      IDF web server module (#3502) · cb434811
      Johny Mattsson authored
      * Added httpd module.
      
      Lua-interface to the standard esp_http_server component.
      
      * Added eromfs module.
      cb434811
  17. 27 Jan, 2022 1 commit
  18. 02 Jan, 2022 1 commit
  19. 04 Nov, 2021 1 commit
    • Johny Mattsson's avatar
      Make node.output() RTOS thread safe. · a0c9085c
      Johny Mattsson authored
      Also removed old, very unsafe node.osoutput(). We're now integrating cleanly
      with the IDF/newlib way of redirecting stdout.
      
      Added necessary depends in Kconfig to ensure VFS support is enabled, as
      otherwise you'd only get a mysterious crash when attempting to enable
      output redirection.
      a0c9085c
  20. 22 Oct, 2021 1 commit
  21. 20 Oct, 2021 1 commit
    • Johny Mattsson's avatar
      Switch to IDF-provided VFS and standard `io` module. · a2ba49e3
      Johny Mattsson authored
      The IDF-provided VFS resolves several issues:
      
       - The IDF components having a different view of the (virtual) file system
         compared to the Lua environment.
      
       - RTOS task/thread safety. Our legacy VFS was only ever safe to use
         from the LVM thread, which limited its usability. Upgrading it
         would have effectively required a reimplementation of the IDF VFS,
         which would have been a bigger task with larger on-going maintenance
         issues.
      
       - We're no longer needing to maintain our own SPIFFS component.
      
       - We're no longer needing to maintain our own FATFS component.
      
       - The legacy of the 8266's lack of standard C interface to the file system
         is no longer holding us back, meaning that we can use the standard
         Lua `io` module rather than the cobbled-together swiss army knife
         also known as the file module.
      
      Of course, the downside is that we'll either have to declare a backwards
      breakage in regard to the file module, or provide a Lua shim for the old
      functions, where applicable.
      
      Also included is some necessary integer type fixups in unrelated code,
      which apparently had depended on some non-standard types in either the
      SPIFFS or FATFS headers.
      
      A memory leak issue in the sdmmc module was also found and fixed while
      said module got switched over to the Espressif VFS.
      
      Module documentation has been updated to match the new reality (and I
      discovered in some places it wasn't even matching the old reality).
      a2ba49e3
  22. 05 Oct, 2021 1 commit
  23. 16 Sep, 2021 1 commit
  24. 09 Sep, 2021 2 commits
  25. 26 Aug, 2021 1 commit
  26. 25 Aug, 2021 1 commit