/* * This file is part of Espruino, a JavaScript interpreter for Microcontrollers * * Copyright (C) 2016 Gordon Williams * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * ---------------------------------------------------------------------------- * Contains JavaScript interface for Puck.js * ---------------------------------------------------------------------------- */ #include "jspin.h" void jswrap_puck_magOn(); void jswrap_puck_magOff(); JsVar *jswrap_puck_mag(); void jswrap_puck_IR(JsVar *data); int jswrap_puck_capSense(Pin tx, Pin rx); JsVarFloat jswrap_puck_light(); int jswrap_puck_getBatteryPercentage(); bool jswrap_puck_selfTest(); void jswrap_puck_init(); void jswrap_puck_kill(); bool jswrap_puck_idle(); void jswrap_puck_neopixelWrite(Pin pin, JsVar *jsArrayOfData);