I need to switch on a red led if the temperature is over 100°C
I simply did this:
Code:
if(temp1 > 100)
{
output_high(PIN_b7); //switch on the red led
output_low(PIN_b6); //switch off the green led
}
if(temp1 < 100)
{
output_high(PIN_b6); //switch on the green led
output_low(PIN_b7); //switch off the red led
}
But it don't work...How is it possible??
Thanks
vever001
Joined: 15 May 2010 Posts: 21
Posted: Sun May 16, 2010 8:23 pm
Arf sorry I forgot to put resistors for these leds...Now it works...
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum