-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjswrap_pin.h
More file actions
22 lines (21 loc) · 871 Bytes
/
jswrap_pin.h
File metadata and controls
22 lines (21 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk>
*
* 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/.
*
* ----------------------------------------------------------------------------
* JavaScript Pin Object Functions
* ----------------------------------------------------------------------------
*/
#include "jsvar.h"
#include "jsinteractive.h"
JsVar *jswrap_pin_constructor(JsVar *val);
bool jswrap_pin_read(JsVar *parent);
void jswrap_pin_set(JsVar *parent);
void jswrap_pin_reset(JsVar *parent);
void jswrap_pin_write(JsVar *parent, bool value);
void jswrap_pin_writeAtTime(JsVar *parent, bool value, JsVarFloat time);