Open iamdustan opened 8 years ago
pinMode(pin,mode)
digitalWrite(pin,value)
digitalRead(pin,callback)
analogWrite(pin,value)
analogRead(pin,callback)
See #18 and #17.
servoWrite(pin, degree)
servoConfig(pin, min, max)
i2cConfig(delay)
i2cConfig(options)
i2cWrite(address, [...bytes])
i2cWrite(address, register, [...bytes])
i2cWriteReg(address, register, byte)
i2cRead(address, numberOfBytesToRead, handler(data))
i2cRead(address, register, numberOfBytesToRead, handler(data))
i2cReadOnce(address, numberOfBytesToRead, handler(data))
i2cReadOnce(address, register, numberOfBytesToRead, handler(data))
sendI2CConfig(delay)
sendI2CWriteRequest(slaveAddress, [bytes])
sendI2CReadRequest(slaveAddress, numBytes, function(data))
sendString("a string")
sendOneWireConfig(pin, enableParasiticPower)
sendOneWireSearch(pin, callback)
sendOneWireAlarmsSearch(pin, callback)
sendOneWireRead(pin, device, numBytesToRead, callback)
sendOneWireReset()
sendOneWireWrite(pin, device, data)
sendOneWireDelay(pin, delay)
sendOneWireWriteAndRead(pin, device, data, numBytesToRead, callback)
board.SERIAL_PORT_IDs
board.serialConfig(options)
board.serialWrite(portId, inBytes)
board.serialRead(portId, callback)
board.serialRead(portId, maxBytesToRead, callback)
board.serialStop(portId)
board.serialClose(portId)
board.serialFlush(portId)
board.serialListen(portId)
board.sysexResponse(commandByte, handler)
board.sysexCommand(message)
Board.encode(data)
Board.decode(data)
Pin
pinMode(pin,mode)
digitalWrite(pin,value)
digitalRead(pin,callback)
analogWrite(pin,value)
analogRead(pin,callback)
Servo
See #18 and #17.
servoWrite(pin, degree)
servoConfig(pin, min, max)
I2C
i2cConfig(delay)
i2cConfig(options)
i2cWrite(address, [...bytes])
i2cWrite(address, register, [...bytes])
i2cWriteReg(address, register, byte)
i2cRead(address, numberOfBytesToRead, handler(data))
i2cRead(address, register, numberOfBytesToRead, handler(data))
i2cReadOnce(address, numberOfBytesToRead, handler(data))
i2cReadOnce(address, register, numberOfBytesToRead, handler(data))
sendI2CConfig(delay)
DeprecatedsendI2CWriteRequest(slaveAddress, [bytes])
DeprecatedsendI2CReadRequest(slaveAddress, numBytes, function(data))
DeprecatedDebug
sendString("a string")
One-Wire
sendOneWireConfig(pin, enableParasiticPower)
sendOneWireSearch(pin, callback)
sendOneWireAlarmsSearch(pin, callback)
sendOneWireRead(pin, device, numBytesToRead, callback)
sendOneWireReset()
sendOneWireWrite(pin, device, data)
sendOneWireDelay(pin, delay)
sendOneWireWriteAndRead(pin, device, data, numBytesToRead, callback)
Serial
board.SERIAL_PORT_IDs
board.serialConfig(options)
board.serialWrite(portId, inBytes)
board.serialRead(portId, callback)
board.serialRead(portId, maxBytesToRead, callback)
board.serialStop(portId)
board.serialClose(portId)
board.serialFlush(portId)
board.serialListen(portId)
Sysex
board.sysexResponse(commandByte, handler)
board.sysexCommand(message)
Encode/Decode
Board.encode(data)
Board.decode(data)