View Single Post
  #3   Spotlight this post!  
Unread 26-01-2005, 10:35
deh03766 deh03766 is offline
Registered User
#0095 (LRT-Upper Valley Robotics)
 
Join Date: Feb 2002
Location: Lebanon, NH
Posts: 1
deh03766 is an unknown quantity at this point
Re: What does this mean?

[quote=schenkin]I found this line in the default camera code, and I can't figure out what it means:

Pwm1_red ^= 1;

This expands to Pwm1_red = Pwm1_red ^ 1;

^ is the xor operator, and like other operators, can be combined with = to give the shorthand statement that confused you