JamesyHutton
New Member
Hi,
I have a very big problem
I am making a touch scrollwheel.
For other parts of my code, it is essential to be running the picaxe as fast as possible. (I plan on using the 28x2 running at 64mhz with a crystal as soon as it ships)
For the time being I am using a 14m2 at 32mhz to test the scroll wheel design.
When I write setfreq m32 all my touch values are always 255.
I was expecting this, as it makes sense knowing how cap sensors use pulses to detect the time it takes to charge the electrode and setting the clock speed higher effects the timing. However I am wondering if there is any way to avoid this without having to change the clock speed back to its default every time I run the touch command.
Since I am using a scroll wheel to change the color of an led, going back to the default speed everytime I detect touch will really lag the rest of the code which is already noticeably laggy at 32mhz! (i.e. you can see the "flicker" as the rgb led fades through some colors).
Am I stuck with switching the speed back and forth?
Thanks
I have a very big problem
I am making a touch scrollwheel.
For other parts of my code, it is essential to be running the picaxe as fast as possible. (I plan on using the 28x2 running at 64mhz with a crystal as soon as it ships)
For the time being I am using a 14m2 at 32mhz to test the scroll wheel design.
When I write setfreq m32 all my touch values are always 255.
I was expecting this, as it makes sense knowing how cap sensors use pulses to detect the time it takes to charge the electrode and setting the clock speed higher effects the timing. However I am wondering if there is any way to avoid this without having to change the clock speed back to its default every time I run the touch command.
Since I am using a scroll wheel to change the color of an led, going back to the default speed everytime I detect touch will really lag the rest of the code which is already noticeably laggy at 32mhz! (i.e. you can see the "flicker" as the rgb led fades through some colors).
Am I stuck with switching the speed back and forth?
Thanks