This project gathers basic examples on how to use some of the foundation libraries. Those examples are developed as standalone applications and as such can be run by following the associated instructions (see README.md file of each example).
Note that to run them on board:
If you are using MicroEJ SDK:
- You need a supported board (see https://github.com/search?q=org%3AMicroEJ+VEEPort&type=repositories for a list of supported boards using MicroEJ SDK evaluation version)
- And the associated VEE Port sources (retrieve it from the previous link and import it into MicroEJ SDK)
EDC contains the minimal standard runtime environment for embedded devices.
Available Examples:
- edc.helloworld: Prints Hello World on the standard output stream.
BON focuses on devices with non-volatile and volatile memories. This library allows to fully control memory usage and start-up sequences on devices with limited memory resources.
Available Examples:
- bon.immortals: Shows how to manipulate the immortals.
- bon.immutables: Shows how to manipulate the immutables.
ECOM libraries provide a standard communication over UART.
Available Examples:
- ecom.hotplug: Shows how to listen on plug/unplug of dynamic ComConnections and shows their properties.
- ecom.writer: Shows how to write some bytes to a CommConnection.
- ecom.reader: Shows how to read some bytes from a CommConnection.
HAL libraries present an abstraction of the communication with the hardware.
Available Examples:
- hal.gpio: Shows how to use GPIOs.
MicroUI provides the minimal cornerstone for quick construction of advanced, portable and user-friendly applications for a wide and heterogeneous range of devices with just-what-is-needed resources.
Available Examples:
- microui.font: Shows how to create and use a font.
- microui.gradient: Shows how to draw a gradient on a display.
- microui.helloworld: Shows how to print a string on a display.
- microui.image: Shows how to create and use images.
- microui.input: Shows how to listen to the MicroUI input events.
- microui.led: Shows how to use the LEDs.
- microui.movableimage: Shows how to create and use movable images.
- microui.mvc: Shows how to create and use a MVC design pattern.
- microui.out: Shows how to redirect the standard SystemOut to the display.
The Drawing Foundation Library extends MicroUI drawing APIs with more complex ones.
Available Examples:
- drawing.transform: Shows how to use anti-aliased shapes.
- drawing.antialiased: Shows how to apply transformations on an image.
NET is a lightweight Java library dedicated to networking applications. It supports stream (TCP/IP) and datagram (UDP) socket connection APIs.
Available Examples:
- net.echo: Shows a simple echo server.
- net.helloworld: Shows a simple helloworld using NET.
FS is a library to access multiple storage devices (in and out data streams) through a simple file system API.
Available Examples:
- fs.helloworld: Creates a list of folders, adds some files and deletes them all.