Skip to content

Instantly share code, notes, and snippets.

@ericterpstra
Created September 23, 2016 21:58
Show Gist options
  • Save ericterpstra/2fb450eba5942871b195029f3f154ebb to your computer and use it in GitHub Desktop.
Save ericterpstra/2fb450eba5942871b195029f3f154ebb to your computer and use it in GitHub Desktop.
J5 CHIP servo.cw() output
Servo {
board:
Board {
io:
ChipIO {
domain: null,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
_pins: [Object],
pins: [Getter],
analogPins: [Getter],
isReady: [Getter],
HIGH: 1,
LOW: 0,
MODES: [Object],
I2C_MODES: [Object],
SERIAL_PIN_TYPES: [Object],
SERIAL_PORT_IDs: [Object],
STEPPER: [Object],
name: 'C.H.I.P.',
defaultLed: 'STATUS',
_pinsById: [Object],
_i2cReads: [],
_chips: [Object],
_tickInterval: [Object] },
timer:
Timeout {
'0': null,
_called: false,
_idleTimeout: -1,
_idlePrev: null,
_idleNext: null,
_idleStart: 6900,
_onTimeout: null,
_repeat: null },
isConnected: true,
isReady: true,
register: [ [Object], [Circular], [Object], [Object] ],
occupied: [ [Object] ],
Drivers: {},
id: 'A2D03C06-E410-4AA5-837C-D99173AE1147',
debug: true,
repl: Repl { context: [Object], ready: true, cmd: [Object] },
sigint: true,
pins:
Pins {
'0': [Object],
'1': [Object],
'2': [Object],
'3': [Object],
'4': [Object],
'5': [Object],
'6': [Object],
'7': [Object],
'8': [Object],
'9': [Object],
'10': [Object],
'11': [Object],
'12': [Object],
'13': [Object],
'14': [Object],
'15': [Object],
'16': [Object],
'17': [Object],
'18': [Object],
'19': [Object],
'20': [Object],
'21': [Object],
'22': [Object],
'23': [Object],
'24': [Object],
'25': [Object],
'26': [Object],
'27': [Object],
'28': [Object],
'29': [Object],
'30': [Object],
'31': [Object],
'32': [Object],
'33': [Object],
'34': [Object],
'35': [Object],
'36': [Object],
'37': [Object],
'38': [Object],
'39': [Object],
'40': [Object],
'41': [Object],
'42': [Object],
'43': [Object],
'44': [Object],
'45': [Object],
'46': [Object],
'47': [Object],
'48': [Object],
'49': [Object],
'50': [Object],
'51': [Object],
'52': [Object],
'53': [Object],
'54': [Object],
'55': [Object],
'56': [Object],
'57': [Object],
'58': [Object],
'59': [Object],
'60': [Object],
'61': [Object],
'62': [Object],
'63': [Object],
'64': [Object],
'65': [Object],
'66': [Object],
'67': [Object],
'68': [Object],
'69': [Object],
'70': [Object],
'71': [Object],
'72': [Object],
'73': [Object],
'74': [Object],
'75': [Object],
'76': [Object],
'77': [Object],
'78': [Object],
'79': [Object],
'80': [Object],
'81': [Object],
'82': [Object],
'83': [Object] },
transport: null,
port: 'C.H.I.P.',
type: 'OTHER',
_events: { ready: [Object] },
_eventsCount: 1,
MODES:
{ INPUT: 0,
OUTPUT: 1,
ANALOG: 2,
PWM: 3,
SERVO: 4,
SHIFT: 5,
I2C: 6,
ONEWIRE: 7,
STEPPER: 8,
IGNORE: 127,
UNKNOWN: 16 },
millis: [Function] },
io:
ChipIO {
domain: null,
_events:
{ close: [Function: bound ],
disconnect: [Function: bound ],
error: [Function: bound ],
string: [Function: bound ] },
_eventsCount: 4,
_maxListeners: undefined,
_pins:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ],
pins: [Getter],
analogPins: [Getter],
isReady: [Getter],
HIGH: 1,
LOW: 0,
MODES:
{ INPUT: 0,
OUTPUT: 1,
ANALOG: 2,
PWM: 3,
SERVO: 4,
SHIFT: 5,
I2C: 6,
ONEWIRE: 7,
STEPPER: 8,
IGNORE: 127,
UNKNOWN: 16 },
I2C_MODES: { WRITE: 0, READ: 1, CONTINUOUS_READ: 2, STOP_READING: 3 },
SERIAL_PIN_TYPES:
{ RES_RX0: 0,
RES_TX0: 1,
RES_RX1: 2,
RES_TX1: 3,
RES_RX2: 4,
RES_TX2: 5,
RES_RX3: 6,
RES_TX3: 7 },
SERIAL_PORT_IDs:
{ HW_SERIAL0: 0,
HW_SERIAL1: 1,
HW_SERIAL2: 2,
HW_SERIAL3: 3,
SW_SERIAL0: 8,
SW_SERIAL1: 9,
SW_SERIAL2: 16,
SW_SERIAL3: 17 },
STEPPER: { TYPE: [Object], RUNSTATE: [Object], DIRECTION: [Object] },
name: 'C.H.I.P.',
defaultLed: 'STATUS',
_pinsById:
{ 'LCD-D2': [Object],
PWM0: [Object],
'LCD-D4': [Object],
'LCD-D3': [Object],
'LCD-D6': [Object],
'LCD-D5': [Object],
'LCD-D10': [Object],
'LCD-D7': [Object],
'LCD-D12': [Object],
'LCD-D11': [Object],
'LCD-D14': [Object],
'LCD-D13': [Object],
'LCD-D18': [Object],
'LCD-D15': [Object],
'LCD-D20': [Object],
'LCD-D19': [Object],
'LCD-D22': [Object],
'LCD-D21': [Object],
'LCD-CLK': [Object],
'LCD-D23': [Object],
'LCD-VSYNC': [Object],
'LCD-HSYNC': [Object],
'LCD-DE': [Object],
LRADC: [Object],
'XIO-P0': [Object],
'XIO-P1': [Object],
'XIO-P2': [Object],
'XIO-P3': [Object],
'XIO-P4': [Object],
'XIO-P5': [Object],
'XIO-P6': [Object],
'XIO-P7': [Object],
CSIPCK: [Object],
CSICK: [Object],
CSIHSYNC: [Object],
CSIVSYNC: [Object],
CSID0: [Object],
CSID1: [Object],
CSID2: [Object],
CSID3: [Object],
CSID4: [Object],
CSID5: [Object],
CSID6: [Object],
CSID7: [Object],
STATUS: [Object],
BAT: [Object],
INTTEMP: [Object] },
_i2cReads: [],
_chips: { AXP209: [Object], PCF8574A: [Object], R8: [Object] },
_tickInterval:
Timeout {
_called: true,
_idleTimeout: 19,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 10395,
_onTimeout: [Function: wrapper],
_repeat: [Function: bound ] } },
id: '7B720ED6-8505-4F47-9706-C9C7104E3551',
custom: {},
pin: 8,
address: 56,
controller: 'PCA9685',
bus: 2,
range: [ 0, 180 ],
deadband: [ 90, 90 ],
fps: 100,
offset: 0,
mode: 4,
interval: null,
value: 180,
type: 'continuous',
invert: false,
specs: { speed: 0.23 },
startAt: 90,
pwmRange: [ 450, 1850 ],
frequency: 50 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment