@@ -0,0 +1,1171 @@
+package com.uxxu.konashi.lib.dispatcher;%0A%0Aimport com.uxxu.konashi.lib.KonashiUUID;%0Aimport com.uxxu.konashi.lib.stores.PwmStore;%0Aimport com.uxxu.konashi.lib.util.PwmUtils;%0A%0Aimport java.util.UUID;%0A%0A/**%0A * Created by izumin on 9/18/15.%0A */%0Apublic enum PwmStoreUpdater implements CharacteristicDispatcher.Updater%3CPwmStore%3E %7B%0A    MODE(KonashiUUID.PWM_CONFIG_UUID) %7B%0A        @Override%0A        public void update(PwmStore store, byte%5B%5D value) %7B%0A            store.setPwmModes(value%5B0%5D);%0A        %7D%0A    %7D,%0A    PERIOD(KonashiUUID.PWM_PARAM_UUID) %7B%0A        @Override%0A        public void update(PwmStore store, byte%5B%5D value) %7B%0A            int pin = value%5B0%5D;%0A            int period = PwmUtils.getPwmPeriod(value);%0A            store.setPwmPeriod(pin, period);%0A        %7D%0A    %7D,%0A    DUTY(KonashiUUID.PWM_DUTY_UUID) %7B%0A        @Override%0A        public void update(PwmStore store, byte%5B%5D value) %7B%0A            int pin = value%5B0%5D;%0A            int duty = PwmUtils.getPwmDuty(value);%0A            store.setPwmDuty(pin, duty);%0A        %7D%0A    %7D;%0A%0A    private final UUID mUuid;%0A%0A    PwmStoreUpdater(UUID uuid) %7B%0A        mUuid = uuid;%0A    %7D%0A%0A    public UUID getUuid() %7B%0A        return mUuid;%0A    %7D%0A%7D%0A

Add PwmStoreUpdater