hbldh / Particle-Pozyx

Particle Library for the Pozyx indoor tracking shield.

Home Page:https://github.com/pozyxLabs/Pozyx-Arduino-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Particle-Pozyx

A wrapper library for building Pozyx apps for the Particle Photon.

This library is a wrapper around the PozyxLabs' Pozyx-Arduino-library, albeit slightly modified to handle the specifics of the Particle platforms. This example enabling the building of apps for the Particle Photons that communicate with the Pozyx indoor tracking shield.

See the Pozyx official documentation for implementation details regarding the examples included.

The code and solutions herein are tested with a Particle Photon with firmware 0.5.3, a Shield Shield and a Pozyx shield v1.4.

Usage

Use from Particle Build Web IDE

Create a new app, include the Pozyx library from list of Community Libraries and start writing you app.

Use from terminal and local IDE

First, create folder, e.g. myapp, for your app in the apps folder of this project. In it, create a file called particle.include with the following content:

myapp.ino
../../firmware/Pozyx.h
../../firmware/Pozyx_definitions.h
../../firmware/Pozyx_core.cpp
../../firmware/Pozyx_lib.cpp

Create the myapp.ino file and write your application using the editor of your choice.

Install the particle-cli, login and register your Photon.

To compile your app for the Photon system, run

./particle-pozyx.sh compile photon myapp 

and to flash your system (remotely)

./particle-pozyx.sh flash DEVICE_ID myapp 

About

Particle Library for the Pozyx indoor tracking shield.

https://github.com/pozyxLabs/Pozyx-Arduino-library

License:MIT License


Languages

Language:C++ 85.9%Language:C 8.4%Language:Arduino 5.4%Language:Shell 0.2%