1. 20 Jul, 2016 2 commits
  2. 10 Jun, 2016 1 commit
    • Konrad Hübner's avatar
      added fadeIn, faceOut and shift to ws2812 module (#1343) · 500bbced
      Konrad Hübner authored
      * added fadeIn, faceOut and shift to ws2812 module
      
      * improvements to rotate, unified fade method
      
      shift renamed to rotate and usage of more efficient memory operations.
      fadeIn and fadeOut unified into fade method with optional parameter for direction.
      
      * rename method to "shift" with optional mode parameter
      500bbced
  3. 09 May, 2016 1 commit
    • Thomas Soëte's avatar
      Finalize work on ws2812 module · 0577c8af
      Thomas Soëte authored
      * Fix bug on first write
      	Pin is 'HIGH' at reset, so we need to pull it down and generate a
      	reset.
      
      * Move init code to flash section, not needed to be in iram.
      
      * Remove pin choice in API
      
      * Remove lock in ws2812_buffer_write
      
      * Remove naked malloc
      
      * Drop ws2812_writergb
      
      * Drop support of ws2812.buffers to ws2812_writegrb should use ws2812.buffers:write
      
      * Add support for <>3 colors per leds strips (RGBW)
      
      * Remove ICACHE_FLASH_ATTR
      
      * Add static const on _uartData to avoid initialization penalty
      0577c8af
  4. 18 Jan, 2016 2 commits
    • Thomas Soëte's avatar
      ws2812 data buffer · 47b44229
      Thomas Soëte authored
      To create a size led long buffer:
      buffer = ws2812.newBuffer(size);
      
      To fill the buffer:
      buffer:fill(g, r, b)
      
      To get a particular led color:
      g, r, b = buffer:get(index)
      
      To set a particular led color:
      buffer:set(index, g, r, b);
      
      To send the buffer:
      buffer:write(pin);
      47b44229
    • Thomas Soëte's avatar
      Rewrite code to use UART1 instead of bit-banging. · 51bb8a50
      Thomas Soëte authored
      It allows keeping interrupts enabled but force to use GPIO2.
      51bb8a50
  5. 16 Dec, 2015 1 commit
    • Johny Mattsson's avatar
      Reworked module registration, removed modules.h · 4e8ef87d
      Johny Mattsson authored
      Module creation & registration now made a lot simpler. In essence,
      each module file is now self-contained and only needs a
      
        NODEMCU_MODULE(MYNAME, "myname", myname_map, luaopen_myname);
      
      line to both be automatically recognised by the Lua initialization
      as well as honor the LUA_USE_MODULES_MYNAME #define.
      4e8ef87d
  6. 12 Dec, 2015 1 commit
    • Johny Mattsson's avatar
      Major cleanup of module registration. · 6b6456be
      Johny Mattsson authored
      As per #810 & #796, only LUA_OPTIMIZE_MEMORY=2 & MIN_OPT_LEVEL=2 are
      supported when building. This commit effects that limitation.
      
      With this change modules/auxmods.h no longer needs to be updated for
      every new module, nor do module writers need to cater for a hypothetical
      LUA_OPTIMIZE_MEMORY < 2 scenario.
      6b6456be
  7. 10 Nov, 2015 1 commit
    • Thomas Soëte's avatar
      Better timings for 160MHz too. · 4fd552fc
      Thomas Soëte authored
      Values measured:
      @80MHz:
      	T0H: 337ns, Period: 1.274us
      	T1H: 687ns, Period: 1.25us
      
      @160MHz:
      	T0H: 349ns, Period: 1.262us
      	T1H: 700ns, Period: 1.276us
      4fd552fc
  8. 08 Nov, 2015 1 commit
  9. 12 Oct, 2015 1 commit
  10. 12 Jul, 2015 1 commit
    • Konrad Beckmann's avatar
      Improved ws2812 implementation · 6538d22d
      Konrad Beckmann authored
      - Fixes the "first led problem" (#534 #487).
      - Adds support for 160MHz mode.
      - Optimized timings. Time to write pixels is reduced by about 25%
        This is useful when having a large amount of chained LEDs (>500).
      6538d22d
  11. 19 Jun, 2015 2 commits
  12. 26 May, 2015 1 commit
    • makefu's avatar
      app/modules/ws2812.c: re-add ws2812.write() · c29edf7a
      makefu authored
      Add the original ws2812.write() function which does not scramble the
      buffer while preserving the 'new' ws2812.writergb.
      
      With this everybody should be happy again
      c29edf7a
  13. 05 Apr, 2015 1 commit
  14. 03 Mar, 2015 1 commit
  15. 07 Feb, 2015 1 commit
  16. 05 Feb, 2015 3 commits