more PR fixes

This commit is contained in:
Troy Weber
2017-03-20 15:31:39 -07:00
parent c4f7931bbe
commit ad644bc4f3
4 changed files with 11 additions and 14 deletions
-4
View File
@@ -1,7 +1,3 @@
// Tests for firmata.d.ts
// Project: https://github.com/firmata/firmata.js
// Definitions by: Troy W. <https://github.com/troywweber7, https://bitbucket.org/troywweber/>
import * as Board from 'firmata'
function test_basic_board()
+9 -9
View File
@@ -11,7 +11,7 @@ declare module 'firmata'
export = Board;
/**
* Most of these are generated by observing https://github.com/firmata/firmata.js/blob/master/lib/firmata.js.
* Most of these are generated by observing https://github.com/firmata/firmata.js/blob/v0.15.0/lib/firmata.js.
*
* This is a starting point that appeared to work fine for months within a project of my company, but I give no
* guarantee that it cannot be improved.
@@ -209,7 +209,7 @@ declare module 'firmata'
}
// TODO these enums could actually be non-const in the future (provides some benefits) --- TWW
// https://github.com/firmata/firmata.js/blob/master/lib/firmata.js#L431
// https://github.com/firmata/firmata.js/blob/v0.15.0/lib/firmata.js#L449-L464
export const enum PIN_MODES {
INPUT = 0x00,
OUTPUT = 0x01,
@@ -242,14 +242,14 @@ declare module 'firmata'
DISABLED = 0,
}
// https://github.com/firmata/firmata.js/blob/master/lib/firmata.js#L456
// https://github.com/firmata/firmata.js/blob/v0.15.0/lib/firmata.js#L474-L478
export const enum STEPPER_TYPES {
DRIVER = 1,
TWO_WIRE = 2,
FOUR_WIRE = 4,
}
// https://github.com/firmata/firmata.js/blob/master/lib/firmata.js#L461
// https://github.com/firmata/firmata.js/blob/v0.15.0/lib/firmata.js#L479-L484
export const enum STEPPER_RUN_STATES {
STOP = 0,
ACCEL = 1,
@@ -257,13 +257,13 @@ declare module 'firmata'
RUN = 3,
}
// https://github.com/firmata/firmata.js/blob/master/lib/firmata.js#L467
// https://github.com/firmata/firmata.js/blob/v0.15.0/lib/firmata.js#L485-L488
export const enum STEPPER_DIRECTIONS {
CCW = 0,
CW = 1,
}
// https://github.com/firmata/firmata.js/blob/master/lib/firmata.js#L448
// https://github.com/firmata/firmata.js/blob/v0.15.0/lib/firmata.js#L466-L471
export const enum I2C_MODES {
WRITE = 0,
READ = 1,
@@ -271,13 +271,13 @@ declare module 'firmata'
STOP_READING = 3
}
// https://github.com/firmata/firmata.js/blob/master/lib/firmata.js#L473
// https://github.com/firmata/firmata.js/blob/v0.15.0/lib/firmata.js#L491-L494
export const enum SERIAL_MODES {
CONTINUOUS_READ = 0x00,
STOP_READING = 0x01,
}
// https://github.com/firmata/firmata.js/blob/master/lib/firmata.js#L479
// https://github.com/firmata/firmata.js/blob/v0.15.0/lib/firmata.js#L497-L512
export const enum SERIAL_PORT_IDs {
HW_SERIAL0 = 0x00,
HW_SERIAL1 = 0x01,
@@ -290,7 +290,7 @@ declare module 'firmata'
DEFAULT = 0x08,
}
// https://github.com/firmata/firmata.js/blob/master/lib/firmata.js#L497
// https://github.com/firmata/firmata.js/blob/v0.15.0/lib/firmata.js#L515-L524
export const enum SERIAL_PIN_TYPES {
RES_RX0 = 0x00,
RES_TX0 = 0x01,
+1 -1
View File
@@ -6,7 +6,7 @@
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
+1
View File
@@ -0,0 +1 @@
{ "extends": "../tslint.json" }