elhayra / Strober

Library for playing led light patterns in arduino
2 stars 0 forks source link

Question: Can library be used for more than one indicator PINs ? #3

Open bdutta opened 4 years ago

bdutta commented 4 years ago

This is not a bug report but a query to see if the library could be used "as-is" to run up LED indicator patterns on multiple PINs ? From the README description it looks like it works for only one LED indicator.

Also, I understand that this depends on SandTimer library. However, I need to use the SoftTimer library for other things s.a. key-debounce etc. Can SandTimer and SoftTimer coexist ?

elhayra commented 4 years ago

This is not a bug report but a query to see if the library could be used "as-is" to run up LED indicator patterns on multiple PINs ? From the README description it looks like it works for only one LED indicator.

It's designed for single pin. However, you can create multiple instances of Strober, where each one is responsible for a single pin.

Also, I understand that this depends on SandTimer library. However, I need to use the SoftTimer library for other things s.a. key-debounce etc. Can SandTimer and SoftTimer coexist ?

Yes. You can also edit the library in a couple of places to make it use SoftTimer (this should be relatively easy)