public class ArdEx extends I2C
Interface.InterfaceType| Modifier and Type | Field and Description |
|---|---|
private static byte |
ARDEX_CMD_ANALOG |
private static byte |
ARDEX_CMD_DIGITAL |
private static byte |
ARDEX_CMD_PWM |
private static byte |
ARDEX_CMD_RESET |
private static byte |
ARDEX_CMD_SET_PIN_MODE |
private static byte |
ARDEX_JOB_READ |
private static byte |
ARDEX_JOB_WRITE |
private static byte |
ARDEX_MODE_OUTPUT |
m_ifaceType, MAX_ANALOG_IN_CHANNELS, MAX_ANALOG_OUT_CHANNELS, MAX_DIGITAL_CHANNELS, MAX_PWM_CHANNELS, MAX_RELAY_CHANNELS| Modifier and Type | Method and Description |
|---|---|
short |
analogRead(int apin) |
short |
analogReadVcc() |
private short |
ardexRead(byte cmd,
int pin,
byte job,
byte val8,
byte bytes) |
private void |
ardexWrite(byte cmd,
int pin,
byte job,
byte var1,
byte var2) |
boolean |
digitalRead(int dpin) |
void |
digitalWrite(int dpin,
boolean lowHigh) |
void |
pwmWrite(int dpin,
byte value) |
void |
resetArduino() |
void |
setPinAsOutput(int dpin) |
void |
setPullup(int dpin,
boolean lowHigh) |
broadcast, checkAddress, free, read, readBit, readBit, readBits, readByte, readBytes, readOnly, readWord, readWords, transaction, verifySensor, write, writeBit, writeBit, writeBits, writeBulk, writeByte, writeBytes, writeWord, writeWordsallocateMXPPin, checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPWMChannel, checkRelayChannel, freeMXPPin, getInterfaceTypeprivate static final byte ARDEX_CMD_SET_PIN_MODE
private static final byte ARDEX_CMD_DIGITAL
private static final byte ARDEX_CMD_ANALOG
private static final byte ARDEX_CMD_PWM
private static final byte ARDEX_CMD_RESET
private static final byte ARDEX_MODE_OUTPUT
private static final byte ARDEX_JOB_WRITE
private static final byte ARDEX_JOB_READ
public ArdEx(I2C.Port port, byte address)
private short ardexRead(byte cmd,
int pin,
byte job,
byte val8,
byte bytes)
private void ardexWrite(byte cmd,
int pin,
byte job,
byte var1,
byte var2)
public void setPinAsOutput(int dpin)
public void resetArduino()
public void setPullup(int dpin,
boolean lowHigh)
public void digitalWrite(int dpin,
boolean lowHigh)
public void pwmWrite(int dpin,
byte value)
public boolean digitalRead(int dpin)
public short analogRead(int apin)
public short analogReadVcc()