Hamed Ta
Hamed Ta
I tested the latest version 0.0.12 it doesn't work with API 16 at all , it doesn't appear you can see here http://alphabit.ir/oth/screenshot.png how I can solve the problem ?
ok this is full error W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xa6650228) E/AndroidRuntime: FATAL EXCEPTION: main java.lang.NullPointerException at com.flask.colorpicker.ColorPickerView.setLightness(ColorPickerView.java:367) at com.flask.colorpicker.slider.LightnessSlider.onValueChanged(LightnessSlider.java:52) at com.flask.colorpicker.slider.AbsCustomSlider.onTouchEvent(AbsCustomSlider.java:119) at android.view.View.dispatchTouchEvent(View.java:7127) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2176) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1877)...
> As mentioned in the #2472, Tone also uses the Core PWM library and hijacks our interrupt handler attached to the NMI TIMER1. I'd expect it to work when using...
> pwm_set_duty(DUTY, 5 I checked it, the minimum frequency is too high to make any tone.
ok got it, or maybe adding another module to the project called for example battery support? any idea of the approach of adjusting the PWM value according to the battery...
> I'd think about the separation when we already have a clear api. It would also depend where are you getting the battery info; is it analog pin, is it...
Or another approach could be, as I have the current, that can be possible to store the corresponding current value when the brightness is set and then adjust the PWM...
thanks for the explanation, are you going to fix it?
Ok, let me test it.
so it's now this way, is that correct?  