Forum > Embedded - AVR

UnoLib - library in Pascal for Arduino Uno and ATMega328p

(1/5) > >>

ackarwow:
I decided to open a new thread on the forum about UnoLib - mentioned already in the AVRPascal thread (https://forum.lazarus.freepascal.org/index.php/topic,68795.0.html). UnoLib is set of routines translated to Pascal from  Arduino sources dedicated for Arduino Uno (ATMega328p). Although the library is distributed with AVRPascal, it can be used independently by for example FPC IDE or Lazarus with FPC built for use with AVR microcontrollers. So please write any questions, comments and wishes to UnoLib here.

UnoLib releases are available on SourceForge: https://sourceforge.net/projects/unolib/
Current changes to UnoLib are on GitHub: https://github.com/ackarwow/unolib

AlexTP:
I made a wiki page for it:
https://wiki.freepascal.org/UnoLib

Feel free to fill the wiki with good info.

ackarwow:

--- Quote from: AlexTP on January 05, 2025, 12:43:55 pm ---I made a wiki page for it:
https://wiki.freepascal.org/UnoLib

Feel free to fill the wiki with good info.

--- End quote ---

@AlexTP

Many thanks for the wiki page. I will add more detailed description when I find some free time  :)

ackarwow:
As was mentioned already in AVRPAscal thread - me and @Dzandaa are working on software implementation of 32-bit floating point numbers (float32.pas). Numeric routines seem to work correctly on Arduino Uno, including:
 
- Float32Add
- Float32Sub
- Float32Mul
- Float32Div
- Float32Sqrt
- Float32Sinus
- Float32Cosinus
- Float32Deg2Rad
- Float32Rad2Deg
- Float32Abs
- Float32Neg
- Float32Tan

Test program is based on excellent serial communication test written by @Dzanda, and slightly modified for testing numeric routines (attached). All functions are still being tested, so I haven't included them in UnoLib yet. If you notice any errors, please let us know.   

AlexTP:
- Float32Sinus
- Float32Cosinus

in English it spells like Sine/Cosine, AFAIK.

Navigation

[0] Message Index

[#] Next page

Go to full version