The Axiom Device Library lets you teach Axiom to recognise new I²C sensors and actuators, change how its built-in device profiles behave, and switch off device types you don't want detected. Everything happens in a web browser over USB, without rebuilding or reflashing firmware.
| You need | Details |
|---|---|
| An Axiom with Device Library firmware | At the time of writing this is v0.1.16-devlib, the default version in the Axiom web updater. See Getting started. |
| A desktop or laptop computer | Windows, Mac, Linux or Chromebook, running Google Chrome or Microsoft Edge. |
| A USB cable | The Device Library connects over USB only. Bluetooth is not supported. |
| The device you want to use | Its datasheet is useful if you need to write or check a profile. |
Open the Device Library at updates.robotical.io/axiom/web-updater/library.html, or choose Open Device Library on the web updater page.
Axiom's firmware contains a set of built-in profiles. A profile describes one type of device: its I²C address, how to identify it, how to set it up, how often to read it and what the data means. The built-in profiles are always there, and you cannot delete them.
Your changes live in a small library file on Axiom (/local/devlib.json). It holds three kinds of entry:
You build up changes in a draft, which is saved in your browser. Nothing reaches Axiom until you choose Write to Axiom, and Axiom keeps using its current profiles until you choose Restart Axiom. Removing the library file and restarting always takes Axiom back to its built-in profiles.
| Tab | Use it to | Needs Axiom connected? |
|---|---|---|
| Devices | See every profile Axiom can recognise, view a definition, customise or disable it | Yes |
| Catalogue | Search ready-made profiles and add one to your draft | No |
| Install | Review what will change, write the library to Axiom, restart, check the result, export or remove the library | Yes |
| Advanced JSON | Edit profiles as JSON, create new ones, import and export files | No |
| Test & tune | Scan the bus, find profiles for unknown addresses, view readings, change polling temporarily, send test commands | Yes |
Work through these in order the first time:
If you get stuck, see Troubleshooting or email support@robotical.io.