Skip to content

reelyactive/puckyactive-firmware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puckyactive-firmware

Firmware examples for Puck.js which enable puckyActive demos.

Installation

Point your browser to www.espruino.com/ide. In the Espruino Web IDE, load the firmware file from this repository (ex: sensing.js). Connect with the Puck.js you'd like to program, then click the Send to Espruino button. Once the transfer is complete, disconnect from the Puck.js which will then begin advertising.

See our detailed tutorial Program a Puck.js with puckyActive.

Examples

There are four examples, each described below.

Sensing

The sensing.js example will advertise all of the sensor readings available on the Puck.js in a single advertising packet.

Eddystone-UID

The eddystone-uid.js example will advertise an Eddystone-UID packet which includes:

  • an 80-bit namespace identifier
  • a 48-bit instance identifier.

Eddystone-TLM

The eddystone-tlm.js example will advertise an Eddystone-TLM packet which includes telemetry data such as:

  • battery voltage
  • temperature
  • advertising count
  • uptime

Eddystone-TLM with Timeout

The eddystone-tlm-timeout.js example is the same as the above except that it has a programmable timeout duration. Specifically, after a given number of seconds, the Puck.js will blink red for another given number of seconds then go to sleep. Pushing the button will wake the device from sleep, reset the Telemetry values and resume activity until the next timeout.

License

MIT License

Copyright (c) 2017-2019 reelyActive

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Releases

No releases published

Packages

No packages published