public class LinkM_RH
extends thingm.linkm.LinkM
Constructor and Description |
---|
LinkM_RH() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAD7147Cap1Read(byte addr)
Read the capacitance at sensor channel 1 from AD7147, The register map lists the address at
It accesses register 'Z', i.e.
|
int |
getAD7151_Cap(byte devAddr)
Read the serial number of the 7151 chip.
|
byte[] |
getAD7151_SerNum(byte devAddr)
Read the serial number of the 7151 chip.
|
byte[] |
getBlinkMVersion(byte addr)
Read the version on a specific BlinkM.
|
static int |
getInt(byte[] arr)
returns the integer for the byte array
|
byte[] |
getRegisters(byte devAddr,
int length)
cycle and report from all the registers
|
byte[] |
getVersion(int addr)
Get the version of a BlinkM at a specific address
|
void |
listAD7147Registers(byte devAddr)
cycle and report from all the registers
|
void |
listAD7151Registers(byte devAddr)
cycle and report from all the registers
|
void |
listRegisters(byte devAddr,
int bytes)
cycle and report from all the registers
|
static void |
main(java.lang.String[] args)
Main method
|
byte[] |
readInputs(byte addr)
Read inputs on BlinkMs that have inputs
|
void |
testLEDColors(int addr)
test the control of LED color on a blinkm
|
bootload, bootloadReset, close, cmd, command, commandi2c, ctrlmPlayFreeMColorSpot, ctrlmSetFreeMColorSpot, ctrlmSetSendAddress, ctrlmWriteFreeMAddress, debug, doFactoryReset, eeParamLoad, eeParamSave, fadeToHSB, fadeToRandomHSB, fadeToRandomRGB, fadeToRGB, fadeToRGB, fadeToRGB, getLinkMVersion, getPlayset, getRGBColor, goBootload, hex, i2cEnable, i2cInit, i2cScan, i2cScan16, loadFile, loadFile, off, open, open, parseArgBuf, parseHexDecInt, parseScript, parseScript, parseScripts, pause, playScript, playScript, print, printHexString, println, readInputs, readScript, readScriptLine, readScriptToString, respSizeForCommand, saveFile, saveFile, setAddress, setFadeSpeed, setPlayset, setRGB, setRGB, setScriptLengthRepeats, setStartupParams, setStartupParamsDefault, setTimeAdj, statusLED, stopScript, usage, writeScript, writeScript, writeScriptLine
public void testLEDColors(int addr) throws java.lang.Exception
addr
- the i2c addressjava.lang.Exception
- ...public byte[] readInputs(byte addr) throws java.io.IOException
addr
- the i2c address of blinkmjava.io.IOException
- on transmit or receive errorpublic byte[] getBlinkMVersion(byte addr) throws java.io.IOException
addr
- the i2c address of blinkmjava.io.IOException
- on transmit or receive errorpublic byte[] getVersion(int addr) throws java.io.IOException
getVersion
in class thingm.linkm.LinkM
addr
- the i2c addressjava.io.IOException
- on transmit or receive errorpublic byte[] getAD7147Cap1Read(byte addr) throws java.io.IOException
addr
- the i2c address of blinkmjava.io.IOException
- on transmit or receive errorpublic byte[] getAD7151_SerNum(byte devAddr) throws java.io.IOException
devAddr
- the i2c address of the AD7151 chipjava.io.IOException
- on transmit or receive errorpublic static int getInt(byte[] arr)
arr
- the byte arraypublic int getAD7151_Cap(byte devAddr) throws java.io.IOException
devAddr
- the i2c address of the AD7151 chipjava.io.IOException
- on transmit or receive errorpublic byte[] getRegisters(byte devAddr, int length) throws java.io.IOException, java.lang.InterruptedException
devAddr
- the i2c addresslength
- the byte lengthjava.io.IOException
- on transmit or receive errorjava.lang.InterruptedException
- ...public void listAD7151Registers(byte devAddr) throws java.lang.Exception
devAddr
- the i2c address of AD7151java.lang.Exception
- ...public void listAD7147Registers(byte devAddr) throws java.lang.Exception
devAddr
- the i2c address of AD7147java.lang.Exception
- ...public void listRegisters(byte devAddr, int bytes) throws java.lang.Exception
devAddr
- the i2c address of AD7147bytes
- the number of bytesjava.lang.Exception
- ...public static void main(java.lang.String[] args)
args
- the argumentsRH, 2017