• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java I2cDeviceSynch类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.qualcomm.robotcore.hardware.I2cDeviceSynch的典型用法代码示例。如果您正苦于以下问题:Java I2cDeviceSynch类的具体用法?Java I2cDeviceSynch怎么用?Java I2cDeviceSynch使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

I2cDeviceSynch类属于com.qualcomm.robotcore.hardware包,在下文中一共展示了I2cDeviceSynch类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: FtcI2cDeviceState

点赞 2

import com.qualcomm.robotcore.hardware.I2cDeviceSynch; //导入依赖的package包/类
/**
 * Constructor: Creates an instance of the object.
 *
 * @param instanceName specifies the instance name.
 * @param syncDevice specifies the new kind of I2c device to be enabled/disabled.
 */
public FtcI2cDeviceState(String instanceName, I2cDeviceSynch syncDevice)
{
    if (debugEnabled)
    {
        dbgTrace = new TrcDbgTrace(moduleName + "." + instanceName, tracingEnabled, traceLevel, msgLevel);
    }

    this.syncDevice = syncDevice;
}
 

开发者ID:trc492,
项目名称:Ftc2018RelicRecovery,
代码行数:16,
代码来源:FtcI2cDeviceState.java

示例2: init

点赞 2

import com.qualcomm.robotcore.hardware.I2cDeviceSynch; //导入依赖的package包/类
@Override
public void init() {
    pixy = hardwareMap.i2cDeviceSynch.get("pixy");
    pixy.setI2cAddress(I2cAddr.create7bit(0x54));
    I2cDeviceSynch.ReadWindow readWindow = new I2cDeviceSynch.ReadWindow(1, 26, I2cDeviceSynch.ReadMode.ONLY_ONCE);
    pixy.setReadWindow(readWindow);
    pixy.setLogging(true);
}
 

开发者ID:SCHS-Robotics,
项目名称:Team9261-2017-2018,
代码行数:9,
代码来源:PixyCam.java

示例3: doInitialize

点赞 2

import com.qualcomm.robotcore.hardware.I2cDeviceSynch; //导入依赖的package包/类
@Override
protected boolean doInitialize() {
    deviceClient.setI2cAddress(new I2cAddr(0xD6));
    if (deviceClient.read8(Register.WHO_AM_I.bVal) !=  L3GD20H_ID)
        return false;
    deviceClient.write8(Register.CTRL_REG1.bVal, 0x0F);
    deviceClient.write8(Register.CTRL_REG4.bVal, sensorRange.range);

    deviceClient.setReadWindow(new I2cDeviceSynch.ReadWindow(Register.OUT_X_L.bVal, Register.OUT_Z_H.bVal, I2cDeviceSynch.ReadMode.REPEAT));

    return true;
}
 

开发者ID:MHS-FIRSTrobotics,
项目名称:RadicalRobotics2017,
代码行数:13,
代码来源:AdafruitL3GD20H.java

示例4: wrappedI2cDevice

点赞 2

import com.qualcomm.robotcore.hardware.I2cDeviceSynch; //导入依赖的package包/类
public I2cDeviceSynch wrappedI2cDevice(String name, I2cAddr address) {
    return new I2cDeviceSynchImpl(i2cDevices().get(name), address, false);
}
 

开发者ID:MHS-FIRSTrobotics,
项目名称:RadicalRobotics2017,
代码行数:4,
代码来源:ExtensibleHardwareMap.java

示例5: mapI2cDeviceSynch

点赞 2

import com.qualcomm.robotcore.hardware.I2cDeviceSynch; //导入依赖的package包/类
private void mapI2cDeviceSynch(HardwareMap map, DeviceManager deviceMgr, I2cController i2cController, DeviceConfiguration devConf) {
    if (!devConf.isEnabled()) return;
    I2cDevice i2cDevice = deviceMgr.createI2cDevice(i2cController, devConf.getPort());
    I2cDeviceSynch i2cDeviceSynch = new I2cDeviceSynchImpl(i2cDevice, true);
    map.i2cDeviceSynch.put(devConf.getName(), i2cDeviceSynch);
}
 

开发者ID:MHS-FIRSTrobotics,
项目名称:RadicalRobotics2017,
代码行数:7,
代码来源:XtensibleEventLoop.java

示例6: AdafruitL3GD20H

点赞 1

import com.qualcomm.robotcore.hardware.I2cDeviceSynch; //导入依赖的package包/类
protected AdafruitL3GD20H(I2cDeviceSynch deviceClient, boolean isOwned) {
    super(deviceClient, isOwned);

}
 

开发者ID:MHS-FIRSTrobotics,
项目名称:RadicalRobotics2017,
代码行数:5,
代码来源:AdafruitL3GD20H.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)