View Single Post
  #6   Spotlight this post!  
Unread 11-02-2010, 11:13
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: How do you code the compressor?

No, you cant. The sensor is not allowed to directly affect power pathways between the Spike and the compressor.

You must wire the sensor to a digital input, and use that input in your code to switch the compressor on and off.

I've always thought this was silly too, but maybe there's a reason for it.