太阳能c语言程序,单片机太阳能热水控制器源程序与Proteus仿真原理图(可使利用率最大化)...
#include#include#include#include#include#include#includesbitheater=P2^3;sbitk1=P1^0;//选择按键sbitk2=P1^1;//增加按键sbitk3=P1^2;//减小按键sbitk4=P1^3;//确认按键sbitk5=P1^4;//加热开关按键sbitk6=P1^5;//上水开关unsignedcharx;unsi