led-matrix.lua 279 B

1234567891011
  1. return function (connection, req, args)
  2. dofile('httpserver-header.lc')(connection, 200, 'html')
  3. if req.method == 'POST' then
  4. local rd = req.getRequestData()
  5. if (rd['data'] ~= nil) then
  6. ws2812.write(rd['data'])
  7. end
  8. end
  9. collectgarbage()
  10. end