@@ -0,0 +1,1291 @@
+package com.uxxu.konashi.lib.stores;%0A%0Aimport android.util.SparseArray;%0A%0Aimport com.uxxu.konashi.lib.Konashi;%0Aimport com.uxxu.konashi.lib.KonashiErrorReason;%0Aimport com.uxxu.konashi.lib.listeners.KonashiAnalogListener;%0A%0A/**%0A * Created by izumin on 8/18/15.%0A */%0Apublic class KonashiAnalogStore implements KonashiAnalogListener%7B%0A    private static final int%5B%5D PINS = %7BKonashi.AIO0, Konashi.AIO1, Konashi.AIO2%7D;%0A    private SparseArray%3CInteger%3E mAioValues;%0A%0A    public KonashiAnalogStore() %7B%0A        mAioValues = new SparseArray%3C%3E();%0A        for (int pin : PINS) %7B%0A            mAioValues.put(pin, 0);%0A        %7D%0A    %7D%0A%0A    public int getAnalogValue(int pin) %7B%0A        return mAioValues.get(pin);%0A    %7D%0A%0A    @Override%0A    public void onUpdateAnalogValue(int pin, int value) %7B%0A        mAioValues.put(pin, value);%0A    %7D%0A%0A    @Override%0A    public void onUpdateAnalogValueAio0(int value) %7B%0A        mAioValues.put(Konashi.AIO0, value);%0A    %7D%0A%0A    @Override%0A    public void onUpdateAnalogValueAio1(int value) %7B%0A        mAioValues.put(Konashi.AIO1, value);%0A    %7D%0A%0A    @Override%0A    public void onUpdateAnalogValueAio2(int value) %7B%0A        mAioValues.put(Konashi.AIO2, value);%0A    %7D%0A%0A    @Override%0A    public void onError(KonashiErrorReason errorReason, String message) %7B%0A        // do nothing...%0A    %7D%0A%7D%0A

Add KonashiAnalogStore