i just bought an Arduino Diecimila, and tried to write a program to receive a value from the serial port ( 0 -255) and output a pwm.
unfortunately, im having alot of trouble with converting values. i need to read the serial data as a string, but all i can do is get integers.
can someone write a short demo code that gets a serial value and converts it to an integer?