Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/effective-solutions/cordova-plugin-equil-smart-pen
https://github.com/effective-solutions/cordova-plugin-equil-smart-pen
cordova custom equil pen plugin smart
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/effective-solutions/cordova-plugin-equil-smart-pen
- Owner: effective-solutions
- Created: 2017-10-24T11:22:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-24T04:07:51.000Z (about 7 years ago)
- Last Synced: 2025-01-14T08:59:20.566Z (28 days ago)
- Topics: cordova, custom, equil, pen, plugin, smart
- Language: Objective-C
- Homepage: https://www.myequil.com/smartpen2/
- Size: 489 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Equil Smart Pen Cordova Plugin
> Extremely easy plug and play plugin for equil smart pen. SDKs for android and ios are already available and the intention of this project is to available functionalities of the equil smart pen for cross-platform app developers.
## Usage
#### Receiving Pen Cordinates
```javascript
window.plugins.EquilSmartPen.onData(function (data) {
let state = data[0];
let x = data[1];
let y = data[2];
})```
##### States of the pen
State | Description
------------ | -------------
1 | PEN_DOWN
2 | PEN_MOVE
3 | PEN_UP
4 | PEN_HOVER
5 | PEN_HOVER_DOWN
6 | PEN_HOVER_MOVE
#### Recieving Pen Events```javascript
window.plugins.EquilSmartPen.onEvent(function (event) {
let state = event;
})```
##### Events of the pen
State | Description
------------ | -------------
11 | PNF_MSG_INVALID_PROTOCOL
12 | PNF_MSG_FAIL_LISTENING
15 | PNF_MSG_CONNECTED
16 | PNF_MSG_PEN_RMD_ERROR
17 | PNF_MSG_FIRST_DATA_RECV
32 | PNF_MSG_SESSION_CLOSED
102 | GESTURE_CIRCLE_CLOCKWISE
103 | GESTURE_CIRCLE_COUNTERCLOCKWISE
105 | GESTURE_CLICK
106 | GESTURE_DOUBLECLICK