Skip to main content

Modules

JARU, as an advanced programming language, not only stands out for its versatility, but also for the rich collection of built-in modules it makes available to developers. These modules, designed with a focus on optimization and ease of use, cover an extensive range of essential functionalities for any project.

JARU Intro Modules

Whether you need to perform complex mathematical operations, manage files efficiently, manipulate dates and times, create stunning graphic visualizations, or even control the general-purpose input/output (GPIO) interface, JARU has a module that fits your needs.

How to Use Modules

For programmers writing in JARU, the process of integrating these modules is simple and straightforward. With the use statement followed by the specific module name, you can easily incorporate it into your code:

use Math
use GPIO
use Display

This ensures that the functions and constants defined in the module are ready to be used, improving development efficiency and reducing the need for redundant coding.

Available Modules

ModuleDescription
BitmapBMP image loading and manipulation
SpriteSprite system with animation, collisions and physics
DisplayTFT screen and graphic display control
GridMap2D grid with pathfinding for games
MQTTCommunication via MQTT protocol for IoT
DrawGraphic primitive drawing functions
MathAdvanced mathematical functions
GCGarbage Collector control
InputAbstract input system for keyboard/GPIO
GPIOInput/output pin control
PowerPower management and low-power modes
I2CI2C communication with sensors and peripherals
TimeDate and time functions
TimerTimers with asynchronous callbacks
FileFile handling
BytesByte and binary data manipulation
JSONJSON parsing and generation
HTTPHTTP client for REST requests

By adopting JARU modules, developers can accelerate the programming process, ensuring their software is robust, efficient, and equipped with the most advanced tools available.