Skip to content
forked from qguv/ledpijp

efficiently drive an APA102 LED strip over SPI with pretty animations

Notifications You must be signed in to change notification settings

rubenbaden/ledpijp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ledpijp

71 APA-102 LEDs mounted in a hornbach fixture, driven by an esp-8266

my implementation of ledspace but with a faster-booting controller board

wifi

  • tries to connect to the ap credentials defined in code
  • if it can't connect within 10 seconds* since boot, it will flash blue and green, then create a network with the name ledpijp and the password defined in code from the original access point

* 10-second time limit is configurable in code as WIFI-GIVEUP

interaction

  • visit the IP of the ESP-8266 in a browser
  • select the animation you want
  • inspect the page source, reverse engineer the API routes

specs

  • tries to approximate 60 Hz refresh rate

todo

patches welcome

  • API route to get currently chosen animation
  • increase and decrease brightness at runtime
  • strobe light
  • API route to get brightness
  • API route to get speed
  • show the correct speed slider depending on animation
  • fix reset button
  • start animation immediately, don't wait for internet
  • rainbow density=0 should freeze rainbow, not fade to a solid color
  • save last animation in nvram
  • save brightness in nvram
  • save speed in nvram
  • API route to allow arbitrary solid-color switching (for now, this is possible by using cycle mode, slowing it down, then slowing it to zero when it's showing the color you want)
  • more animations
  • use the onboard (H)SPI functionality of the ESP-8266
  • use NTP syncing to switch animations depending on time of day
  • redshift-style animation that darkens in the evening and brightens in the morning
  • API route to allow fully custom animations using a simple intrepreted language or expression
  • use a more serious template for HTTP responses
  • minimal css styling for GET /

About

efficiently drive an APA102 LED strip over SPI with pretty animations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.4%
  • Makefile 0.6%