@@ -0,0 +1,898 @@
+package com.uxxu.konashi.lib.action;%0A%0Aimport android.bluetooth.BluetoothGattService;%0A%0Aimport com.uxxu.konashi.lib.KonashiUUID;%0Aimport com.uxxu.konashi.lib.util.I2cUtils;%0A%0Aimport java.util.UUID;%0A%0A/**%0A * Created by izumin on 9/21/15.%0A */%0Apublic class I2cSetReadParamAction extends KonashiWriteCharacteristicAction %7B%0A%0A    private static final UUID UUID = KonashiUUID.I2C_READ_PARAM_UUID;%0A%0A    private final int mLength;%0A    private final byte mAddress;%0A%0A    public I2cSetReadParamAction(BluetoothGattService service, int length, byte address) %7B%0A        super(service, UUID);%0A        mLength = length;%0A        mAddress = address;%0A    %7D%0A%0A    @Override%0A    protected void setValue() %7B%0A        getCharacteristic().setValue(new byte%5B%5D%7B(byte)mLength, (byte)((mAddress %3C%3C 1) %7C 0x01)%7D);%0A    %7D%0A%0A    @Override%0A    protected boolean hasValidParams() %7B%0A        return I2cUtils.isValidReadLength(mLength);%0A    %7D%0A%7D%0A

Implement I2cSetReadParamAction