Hi Henrik,
Yes, I had already changed the ANSEL register
I had changed the TRISIO register too.
Attached is my full code listing for reference.
Now what? I am sure it is only something simple but I just can't figure it out...PICSprayer.bas
Cheers
Barry
Bookmarks