Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define ALLTIME_5V
- #ifdef ALLTIME_5V
- if (T <= MAX_TEMP)
- {
- #else
- #endif
- dP = Max - Min;
- if (T < MIN_TEMP)
- {
- T = MIN_TEMP;
- }
- T = T - MIN_TEMP;
- PWM_ = ((dP / DT) * T);
- PWM_ = PWM_ + Min;
- goto e1;
- }
- #ifndef ALLTIME_5V
- #endif
- if (T > MAX_TEMP)
- {
- PWM_ = 255;
- FanStoped = 0;
- Beep();
- }
- e1:
- OCR0A=PWM_;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement