I need to make a small GUI that allows me to format 3 values then create a string and send that string to the serial port of an arduino mega2560.
I already tried and failed using autohotkey and a custom serial script package that was to buggy to work
so my code needs to be something like this.
pseudocode
prompt1 "enter # of pulses"
save input to var1
prompt2 "enter "pulse width in ms"
save input to var2
prompt3 "enter delay in ms"
save input to var3
string = "%var1%,%var2%,%var3%"
send %string% to arduino at (9600)
so it would send say 1000.14.14 to the serial port of the arduino
on the arduino side I'm using the function Serial.parseint();
so the arduino would parse the string into 3 variables
x= 1000
y = 14
z = 14
the arduino end is working already with the serial monitor or putty
i just need to make a clean small gui that can send serial!
any advice on how to accomplish this quickly?
thanks
doulos