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.

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
| Module | Description |
|---|---|
| Bitmap | BMP image loading and manipulation |
| Sprite | Sprite system with animation, collisions and physics |
| Display | TFT screen and graphic display control |
| GridMap | 2D grid with pathfinding for games |
| MQTT | Communication via MQTT protocol for IoT |
| Draw | Graphic primitive drawing functions |
| Math | Advanced mathematical functions |
| GC | Garbage Collector control |
| Input | Abstract input system for keyboard/GPIO |
| GPIO | Input/output pin control |
| Power | Power management and low-power modes |
| I2C | I2C communication with sensors and peripherals |
| Time | Date and time functions |
| Timer | Timers with asynchronous callbacks |
| File | File handling |
| Bytes | Byte and binary data manipulation |
| JSON | JSON parsing and generation |
| HTTP | HTTP 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.