NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » tempsensor
|
August 19, 2010 by LindaEC |
Hello, I wanted to add an if statement in the tempsensor project such as" if temp_avg < 5 then display temp, how and where would I insert this statement. |
|---|---|
|
August 20, 2010 by Ralphxyz |
Hi LindaEC, first let me say that I am not a programmer but learning. I feel safe in answering as someone will jump into correct anything I say that is incorrect. I did not test this code but it could be functional.
The code is relatively meaningless I just randomly stuck in some if functions for illustrations. Man that code format button is so cool. Ralph |
|
August 20, 2010 by LindaEC |
Thanks Ralph, I will try it,I have no prior programming experience but I am trying to learn and understand it. Thanks again. |
|
August 20, 2010 by LindaEC |
Ralph,it works!!!!!!!!!!! Thanks |
Please log in to post a reply.
|
Did you know that the Timer/Counter modules on the microcontroller can be configured to output a PWM (Pulse Width Modulation) signal? Learn more...
|