View Single Post
  #1   Spotlight this post!  
Unread 30-05-2007, 20:53
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Single Click On/Off Using the Trigger in EasyC

This how we did a click on click off
Code:
    if(CLAW_BUTTON == 1 && claw_toggle_state == 0)       // Code to handle toggle
    {
        CLAW_OPEN = !CLAW_OPEN;
        CLAW_CLOSED = !CLAW_CLOSED;
    }

    claw_toggle_state = CLAW_BUTTON;