newphj
发表于 2017-3-7 08:34:09
下载附件
慕白
发表于 2017-3-7 10:00:00
支持楼主。谢谢楼主
慕白
发表于 2017-3-7 10:03:41
厉害了我的哥
johnsonxjq
发表于 2017-3-7 11:32:57
好东西,谢谢
咻咻皮卡丘
发表于 2017-3-7 20:55:11
正好要做这个,学习一下
静水深浏
发表于 2017-3-8 00:41:38
核心代码没有,装了一手好比
静水深浏
发表于 2017-3-8 00:49:30
麻烦问一下楼主,你的单片机不用和空调通讯吗?不然你是如何获取空调的温度与模式?这一块可以开源不?
yxc12
发表于 2017-3-8 14:52:51
大吃一惊
墨葬玉
发表于 2017-3-9 20:19:02
谢谢,资料很好赞一个!
老K
发表于 2017-3-9 21:59:25
不错的创意
木木木
发表于 2017-3-10 10:55:42
学习一下,谢谢分享
冯志城
发表于 2017-3-10 12:25:04
本帖最后由 冯志城 于 2017-3-10 13:19 编辑
编译了一下,发现缺了几个文件,麻烦楼主发一下,学习学习,谢谢!Rebuild target 'gokit_stm32'
assembling startup_stm32f10x_md.s...
compiling core_cm3.c...
compiling system_stm32f10x.c...
compiling misc.c...
compiling stm32f10x_adc.c...
compiling stm32f10x_bkp.c...
compiling stm32f10x_can.c...
compiling stm32f10x_cec.c...
compiling stm32f10x_crc.c...
compiling stm32f10x_dac.c...
compiling stm32f10x_dbgmcu.c...
compiling stm32f10x_dma.c...
compiling stm32f10x_exti.c...
compiling stm32f10x_flash.c...
compiling stm32f10x_fsmc.c...
compiling stm32f10x_gpio.c...
compiling stm32f10x_i2c.c...
compiling stm32f10x_iwdg.c...
compiling stm32f10x_pwr.c...
compiling stm32f10x_rcc.c...
compiling stm32f10x_rtc.c...
compiling stm32f10x_sdio.c...
compiling stm32f10x_spi.c...
compiling stm32f10x_tim.c...
compiling stm32f10x_usart.c...
compiling stm32f10x_wwdg.c...
compiling main.c...
..\User\main.c(46): warning:#223-D: function "protocolExchangeBytes" declared implicitly
reportData.devStatus.Motor_Speed = protocolExchangeBytes(Y2X(MOTOR_SPEED_RATIO,MOTOR_SPEED_ADDITION,MOTOR_SPEED_DEFAULT));
..\User\main.c(46): warning:#223-D: function "Y2X" declared implicitly
reportData.devStatus.Motor_Speed = protocolExchangeBytes(Y2X(MOTOR_SPEED_RATIO,MOTOR_SPEED_ADDITION,MOTOR_SPEED_DEFAULT));
..\User\main.c(52): warning:#177-D: variable "ret" was declared but never referenced
uint8_t ret= 0;
..\User\main.c(53): warning:#177-D: variable "curTem" was declared but never referenced
int8_t curTem = 0;
..\User\main.c(54): warning:#177-D: variable "curHum" was declared but never referenced
int8_t curHum = 0;
..\User\main.c(55): warning:#177-D: variable "curInfrared" was declared but never referenced
uint8_t curInfrared = 0;
..\User\main.c(56): warning:#177-D: variable "lastTem" was declared but never referenced
static int8_t lastTem = 0;
..\User\main.c(57): warning:#177-D: variable "lastHum" was declared but never referenced
static int8_t lastHum = 0;
..\User\main.c(58): warning:#177-D: variable "irLastTimer" was declared but never referenced
static uint32_t irLastTimer = 0;
..\User\main.c: 9 warnings, 0 errors
compiling stm32f10x_it.c...
..\User\stm32f10x_it.c(207): warning:#177-D: variable "cap_id" was declared but never referenced
u8 cap_id=0;
..\User\stm32f10x_it.c: 1 warning, 0 errors
compiling delay.c...
compiling comfunc.c...
"no source": Error:#5: cannot open source input file "..\User\comfunc.c": No such file or directory
..\User\comfunc.c: 0 warnings, 1 error
compiling dev_ctrl.c...
"no source": Error:#5: cannot open source input file "..\User\dev_ctrl.c": No such file or directory
..\User\dev_ctrl.c: 0 warnings, 1 error
compiling i2c.c...
"no source": Error:#5: cannot open source input file "..\User\i2c.c": No such file or directory
..\User\i2c.c: 0 warnings, 1 error
compiling lcd.c...
"no source": Error:#5: cannot open source input file "..\User\lcd.c": No such file or directory
..\User\lcd.c: 0 warnings, 1 error
compiling led.c...
"no source": Error:#5: cannot open source input file "..\User\led.c": No such file or directory
..\User\led.c: 0 warnings, 1 error
compiling ctrl.c...
"no source": Error:#5: cannot open source input file "..\User\ctrl.c": No such file or directory
..\User\ctrl.c: 0 warnings, 1 error
compiling hal_key.c...
compiling Hal_led.c...
compiling hal_motor.c...
..\Hal\hal_motor\hal_motor.c(57): warning:#223-D: function "tim3ModeConfig" declared implicitly
tim3ModeConfig();
..\Hal\hal_motor\hal_motor.c(81): warning:#223-D: function "abs" declared implicitly
motorControl((abs(status)+5)*10, 0);
..\Hal\hal_motor\hal_motor.c(85): warning:#223-D: function "abs" declared implicitly
motorControl(0, (abs(status)+5)*10);
..\Hal\hal_motor\hal_motor.c: 3 warnings, 0 errors
compiling hal_rgb_led.c...
compiling hal_temp_hum.c...
compiling hal_uart.c...
compiling hal_infrared.c...
compiling hal_watchdog.c...
compiling gizwits_product.c...
..\Gizwits\gizwits_product.c(81): warning:#223-D: function "X2Y" declared implicitly
issuedData->attrVals.LED_R = X2Y(LED_B_RATIO,LED_B_ADDITION,issuedData->attrVals.LED_R);
..\Gizwits\gizwits_product.c(105): warning:#223-D: function "protocolExchangeBytes" declared implicitly
motorValue = X2Y(MOTOR_SPEED_RATIO,MOTOR_SPEED_ADDITION,protocolExchangeBytes(issuedData->attrVals.Motor_Speed));
..\Gizwits\gizwits_product.c: 2 warnings, 0 errors
compiling gizwits_protocol.c...
..\Gizwits\gizwits_protocol.c(9): warning:#1295-D: Deprecated declaration send_state_frame - give arg types
void send_state_frame();
..\Gizwits\gizwits_protocol.c(57): warning:#68-D: integer conversion resulted in a change of sign
return -1;
..\Gizwits\gizwits_protocol.c(68): warning:#68-D: integer conversion resulted in a change of sign
return -1;
..\Gizwits\gizwits_protocol.c(89): warning:#68-D: integer conversion resulted in a change of sign
return -1;
..\Gizwits\gizwits_protocol.c(102): warning:#68-D: integer conversion resulted in a change of sign
return -1;
..\Gizwits\gizwits_protocol.c(108): warning:#68-D: integer conversion resulted in a change of sign
return -1;
..\Gizwits\gizwits_protocol.c(145): warning:#68-D: integer conversion resulted in a change of sign
return -1;
..\Gizwits\gizwits_protocol.c(151): warning:#68-D: integer conversion resulted in a change of sign
return -1;
..\Gizwits\gizwits_protocol.c(157): warning:#68-D: integer conversion resulted in a change of sign
return -1;
..\Gizwits\gizwits_protocol.c(926): warning:#188-D: enumerated type mixed with another type
protocolReport.action = p0Head->action+1;
..\Gizwits\gizwits_protocol.c(953): warning:#188-D: enumerated type mixed with another type
protocolReport.action = action;
..\Gizwits\gizwits_protocol.c(971): warning:#1029-D: __packed ignored for non-pointer parameter
uint8_t protocolErrorCmd(protocolHead_t *head,errorPacketsType_t errno)
..\Gizwits\gizwits_protocol.c(1086): warning:#550-D: variable "ret" was set but never used
int8_t ret = 0;
..\Gizwits\gizwits_protocol.c(1102): warning:#177-D: variable "data" was declared but never referenced
uint8_t data,state=0;
..\Gizwits\gizwits_protocol.c(1102): warning:#177-D: variable "state" was declared but never referenced
uint8_t data,state=0;
..\Gizwits\gizwits_protocol.c(38): warning:#177-D: function "rbDelete" was declared but never referenced
static void rbDelete(rb_t* rb)
..\Gizwits\gizwits_protocol.c: 16 warnings, 0 errors
linking...
.\Obj\gokit_mcu_stm32.axf: error: L6002U: Could not open file .\obj\comfunc.o: No such file or directory
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
".\Obj\gokit_mcu_stm32.axf" - 1 Error(s), 31 Warning(s).
Target not created.
Build Time Elapsed:00:01:00
anderson
发表于 2017-3-10 16:47:18
挺好的 我喜欢
究竟本来
发表于 2017-3-10 20:56:25
感谢分享
史亚庆
发表于 2017-3-11 10:26:20
看看。。。。。。。。。。。。。。。。。。。。。。。。
彦辰
发表于 2017-3-11 12:43:35
可以可以
夏天罂粟
发表于 2017-3-12 22:02:41
静水深浏 发表于 2017-3-8 00:49
麻烦问一下楼主,你的单片机不用和空调通讯吗?不然你是如何获取空调的温度与模式?这一块可以开源不? ...
你好,这个温控器是用在写字楼里的中央空调,风机盘管控制。不是用来控制家用空调。
i_飞行员
发表于 2017-3-13 10:27:04
学习一下
伟超时代
发表于 2017-3-13 14:19:46
学习学习
猾德莱
发表于 2017-3-13 19:48:03
看下楼主的原理图