Skip to content

Releases: davidhozic/LITL

LITL | V1.2.1

14 Jul 15:08
c78a85f
Compare
Choose a tag to compare

CHANGELOG:

  • Added add function

LITL | V1.2

11 Jul 16:40
Compare
Choose a tag to compare
Merge branch 'develop' of https://github.com/davidhozic/LITL into dev…

LITL | V1.1

07 Jul 13:39
Compare
Choose a tag to compare

CHANGELOG:

  • Sort no longer sorts by copying elements, instead it changes the pointers ( so the data on the same address doesn't change, it is also faster for larger data types as it doesn't need to copy elements).
  • Added example of sort usage

LITL | V1.0

05 Jul 07:17
Compare
Choose a tag to compare

Stable release of the little library

LITL | Release V0.4

06 Jun 10:25
Compare
Choose a tag to compare
  • CHANGELOG:
  • Fixed memory leak (of multi dimensional lists) on AVR platform

LITL - Linked list, input, timer, library

  • This library includes:

  • Timer (Can work in interrupt mode or system time mode, configure in settings.hh)
    FUNCTIONS: value() -> starts the timer and returns it's value; reset() -> resets the timer and turns it off; set_hook(function ptr, period, parameter ptr) -> attaches a function to the timer that gets called every period

  • Input - Controls inputs of the atmega mcu, includes optional timed filtering (requires the castimer). Functions: value() - returns value of input; risen_edge() - returns 1 if input has risen (edge gets cleared only after the call, or if input is unpressed); fallen_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: Functions: add_end() - adds element to the back of the list; add_front() - adds element to the front of the list; clear() - removes all the elements from the list;
    length() - returns the amount of elements in the list.
    The list does NOT use a constructor so items can be added to it thru constructors of other objects.
    It also uses a template so it can be made for any type which can also be another class_LIST (creates 2d list) -> Example: class_LIST <class_LIST> list_1 -> creates a 2d list. To add a sub_list to the 2d list do: list_1.add_end( class_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.

LITL | Release V0.3

05 Jun 15:31
Compare
Choose a tag to compare

CHANGELOG:

  • LINKED LIST:
    • fixed memory leak (still present on avr since it doesn't suport delete() )
  • CASTIMER:
    • Added attach_hook function

Also added instructions in the settings files

LITL | Release V0.2

02 Jun 11:02
Compare
Choose a tag to compare

CHANGELOG:

  • class_TIMER:
    -- Added hook function functionality, timer can now be used as a regular timer or as virtual interrupt (see castimer.hh)

LITL | Release V0.1

27 May 17:25
Compare
Choose a tag to compare

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.