using Gadgeteer.Modules.GHIElectronics;
namespace ledcontroller2
{
public partial class Program
{
int a;
int b = 1000;
void ProgramStarted()
{
Debug.Print("Program Started");
double x = joystick.GetJoystickPosition().X;
Debug.Print("X = " + x);
if (x > 0.05)
Convert.ToInt32(x);
{
a = x * b;
}
led7r.Animate(a, true, true, false);
}
}
}
Somehow [quote]a = x * b;[/quote] just wont work, i also tried to convert x ( [quote]Convert.ToInt32(x);[/quote])
Maybe the mistake is obvious and stupid, but i would be glad if u could help me