Skip to content

NotNite/lightning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightning

torturing myself with LED lights

HTTP API

GET https://soulja-boy-told.me/light, send query params r g b a. all required between 0-255

WebAssembly

POST https://soulja-boy-told.me/light send the WASM file as the body. API:

  • size() -> u32
  • get_pixel(idx: u32) -> u32
  • set_pixel(idx: u32, col: u32)
  • time() -> u64
    • returns unix time in ms

you export a tick(elapsed: f32), where elapsed is the seconds since program started (NOT delta time!). program runs for 30 seconds. colors in format 0xRRGGBB, idx from zero to the return value of size(). compile to wasm32

About

Torture me with the power of RGB LEDs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages