I'm new to FLTK and I need this functionality in my program.  thanks

basically i have a slider and when I slide the slider up and down , it
needs to send the values through a serial port to control a servo on a
helicopter.

I know how to do it in Visual Basic but need to know how in FLTK. 
thanks