I’m currently trying to optimize a program I’ve created on my FEZ Panda II. Along with running a music shield and a few other things, it is PWM controlling two sets of RGB LED strips, and one of the modes slowly pulsates the LEDs using MathEx.Sin.
I was wondering if anyone knows off hand weather I am better off just using the MathEx.Sin function or creating a lookup table. It would probably end up being an array of 50 doubles to get the resolution I want.
I’ve done a little searching around on the web, and it seems that people are saying that when they bench marked it, using Sin is faster… but this is on computer applications, and I don’t know if it is true for the USBizi.