arpunk / atomvm_lib

A library of Erlang modules for developing applications targeted for the AtomVM platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

atomvm_lib

This repository contains a collection of useful modules for developing programs for the AtomVM platform.

Many of these modules are "optional" and are therefore not a part of the AtomVM core libraries.

Getting Started

The best way to use this library is to include it in your rebar3 project's rebar.config as a dependency:

{deps, [
    {atomvm_lib, {git, "https://gitbub.com/atomvm/atomvm_lib.git", {branch, "master"}}}
]}.

Make sure to also include the atomvm_rebar3_plugin, so that you can generate AtomVM packbeam files and flash them to your ESP32 device.

{plugins, [
    atomvm_rebar3_plugin
]}.

You can then use the packbeam and esp32_flash targets to upload your application to a device.

Some of the modules in this library make use of AtomVM components, which are native-C extensions to the AtomVM virtual machine. For more information about these components and how to build them into the AtomVM virtual machines, see:

atomvm_lib modules

The atomvm_lib library includes the following features:

  • BME280 (Temperature, humidity, and pressure sensor)
  • SHT3X (Temperature and humidity sensor)
  • BH1750 (Luminosity sensor)
  • LEDC PWM
  • LoRa (SX127X transceiver)

About

A library of Erlang modules for developing applications targeted for the AtomVM platform.

License:Apache License 2.0


Languages

Language:Erlang 96.4%Language:C 3.0%Language:CMake 0.5%Language:Makefile 0.1%