Skip to content
Jim Lee edited this page Dec 21, 2020 · 5 revisions

LC_baseTools

What do we have in here today? (test)

blinker - Originally a quickie for auto-blinking an LED without delay. This has been subsequently used in a bunch of different non-LED applications that wanted a timed boolean.

colorObj - Insanely handy and used EVERYWHERE in the library for passing around and manipulating colors.

debug - Basically just an easy way to add Serial.print() trace lines to code. Also can stop the code.

idlers - Foundation for all background processing and used heavily.

lists - Dynamic linked lists. Most everything in the library uses these.

mapper - Liner mapping functions. Set A goes from a-Start..a-End maps to set B b-Start..b-End. This is all done in floats.

mechButton - Button code with debounce. Developed for the doorbell. (not ready for prime time)

multiMap - Non-liner mapping functions. Set A goes from a-0..a-n maps to set B B-Start..B-End. This is also all done in floats.

PulseOut - Somewhat sloppy pulse out on any pin not using interrupts. Can be set to block while pulse is on (For servos).

resizeBuff - Easy way to manage dynamic memory. Not fully incorporated in the library, but getting there in a hurry.

runningAvg - Data smoother. Drop in a data value and it outputs the average of the last n data values entered.

timeObj - A kitchen timer. Set it for a timespan and start it. Then you can poll it to find when the time runs out. It takes care of rollover and is used everywhere in the library.

Clone this wiki locally