Skip to content

Uses the X and Y axes of the Adafruit Circuit Playground Express to light up LEDs based on if the board is titled up or down.

License

Notifications You must be signed in to change notification settings

MikaylaFischler/circuit-playground-directional-leds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

circuit-playground-directional-leds

Uses the X and Y axes of the Adafruit Circuit Playground Express to light up LEDs based on if the board is titled up or down.

about

Static green component with a red added to the LEDs that are further from the gravitational source (Earth usually) and blue added to the LEDs that are closer to the gravitational source (also usually Earth).

The two gravitational vectors are converted to a value from -1 to 1 and then trigonometry is used to calculate values of each LED using a unit circle, and the assumption that each LED is at a multiple of 1/6 pi angles from eachother.

This is meant to be a cool example to play around with, so have fun :)

About

Uses the X and Y axes of the Adafruit Circuit Playground Express to light up LEDs based on if the board is titled up or down.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages