Shop OBEX P1 Docs P2 Docs Learn Events
Testing Code Posting — Parallax Forums

Testing Code Posting

Jeff MartinJeff Martin Posts: 760
edited 2010-08-28 09:18 in General Discussion
This is the first code posting test I've done since our new forum went live.
[B]VAR[/B]
long    cog,Enable,Clock,Data,HM55B_x,HM55B_y,HM55B_theta
 
[COLOR=black][HIGHLIGHT]PUB stop[/HIGHLIGHT][/COLOR]
'' Stop driver - frees a cog
    if cog
       cogstop(cog~ -  1)

Comments

  • Jeff MartinJeff Martin Posts: 760
    edited 2010-08-28 08:56
    Another test, outside of CODE tag.

    VAR
    long cog,Enable,Clock,Data,HM55B_x,HM55B_y,HM55B_theta
    PUB stop
    '' Stop driver - frees a cog
    if cog
    cogstop(cog~ - 1)
  • Jeff MartinJeff Martin Posts: 760
    edited 2010-08-28 08:58
    [HTML]
    VARlong cog,Enable,Clock,Data,HM55B_x,HM55B_y,HM55B_thetaPUB stop'' Stop driver - frees a cog if cog cogstop(cog~ - 1)[/HTML]
  • Jeff MartinJeff Martin Posts: 760
    edited 2010-08-28 09:18
    VAR
    long    cog,Enable,Clock,Data,HM55B_x,HM55B_y,HM55B_theta
    
    PUB stop
    '' Stop driver - frees a cog
        if cog
           cogstop(cog~ -  1)
    
  • Jeff MartinJeff Martin Posts: 760
    edited 2010-08-28 09:18
    [PHP]VAR
    long cog,Enable,Clock,Data,HM55B_x,HM55B_y,HM55B_theta

    PUB stop
    '' Stop driver - frees a cog
    if cog
    cogstop(cog~ - 1)[/PHP]
Sign In or Register to comment.