Arduino motorshield driving one dc motor with ldr to turn it on,pwm speed control with one pot,determine how long the motor will stay on with the other pot,and a manual turn on

Arduino motorshield driving one dc motor with ldr to turn it on,pwm speed control with one pot,determine how long the motor will stay on with the other pot,and a manual turn on if u set both pots at their 'max' position (potTime > 7000) , (potPwm >240)

see code for more..

enjoy!

and have fun :)