LITL | Release V0.1
LITL - Linked list, input, timer, library
This library includes:
-
Timer (Can work in interrupt mode or system time mode, configure in castimer.h). Functions: vrednost() - returns value and starts timer ;
ponastavi() - resets the timer -
Input - Controls inputs of the atmega mcu, includes optional timed filtering (requires the castimer). Functions: vrednost() - returns value of input; risingEdge() - returns 1 if input has risen (edge gets cleared only after the call, or if input is unpressed); Falling edge- returns 1 if input has fallen. NOTE! Input class constructor accepts pin, port and unpressed state of the input. If the third (unpressed state) parameter is set to 1, the input object will return inverted value of what the PIN register is actually reading.
-
Linked list - Linked list library that doesn't use a constructor so it can be used by timer class (and it is). Functions: dodaj_konec() - adds element to the back of the list; dodaj_zacetek() - adds element to the front of the list; cisti_seznam() - removes all the elements from the list;
length() - returns the amount of elements in the list.
NOTE! To access the elements in linked list, use "object_name [index]". Do not reverse index and object_name as this is not a pointer but an operator overload funtion.