Skip to content

Example of how to use "bitRead" to create LED states

License

macca448/LED_EFX_using_bitRead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

LED Effects using "bitRead"

An example of how to use an array of up to 16 LEDs with single dimentioned effect arrays.

The sketch uses a single 25mS loop duty-cycle and any longer durations are created with counter variables. This makes the sketch architecture non-blocking.

The sketch is broken down into 4 files for easier editing:

File Comment
LED_EFX_using_bitRead.ino Contains all the setups and the main loop.
patterns.h Contains the pattern arrays.
effect_loops.h Contains the pattern voids called from the switching.
switching.h Contains timing variables for the different patterns

Getting the HEX value for a binary state

Remember that the binary value is read right to left in relation to your LED array

image

Wiring example

Any Arduino compatible device with 16 digital ports will work and it's 18 ports if you want the buttons

image

Video of Sequence

Watch the video

About

Example of how to use "bitRead" to create LED states

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published