 |
| Guru |
Joined: Fri Nov 13, 2009 10:28 am Posts: 82 Location: Reno, Nevada
|
|
When programming a simple hservo routine that I found on the forums, I get the below errors when building in th nano 28 mode. If I build this routine in the AtomPro mode it builds without errors. For the application I am developing I definitely need the hservo capabilities. The atom pro footprint etc. becomes a problem so the smaller nano footprint and cost are required.
'Test hservo usage
pause 500 temp var word enablehservo baud con i9600 main: if in9=1 then goto loop goto main loop: hservo[p1\0] 'send servo to home pos-no spd value in first hservo for temp=4000 to 20000 step 4000 hservo [p1\(temp)\500] 'pin,postion,speed hservowait[p1] 'waits for servo to finish last move hservo[p1\temp\500] hservowait[p1] 'waits for servo to finish last move next goto main
Error: FILE C:\PROGRAM FILES\BASICMICRO\HSERVOTEST.BAS(LINE 16) : [TOKEN P1] : Expected variable
_________________ Harley
|
|