实例介绍
本源码是用于一个发光LED椅子项目的完整源码,支持市面上通用RGB红外遥控器,有渐变,闪烁,褪变,颜色选择等功能。使用STM8 TIM1 PWM调制RGB,其中白色使用的是白色LED,在使用锂电池时可以省电些。(注意STM8控制字需要使能TIM1的4个PWM通道) GPIOD口支持接入5个触发变色器件,低电平触发RGB变色。(项目中使用霍尔磁性传感器)
【实例截图】
【核心代码】
STM8_RGB
└── STM8S_StdPeriph_RGB
├── EWSTM8
│ ├── Project.dep
│ ├── Project.ewd
│ ├── Project.ewp
│ ├── Project.eww
│ ├── STM8S103
│ │ ├── Exe
│ │ │ └── Project.out
│ │ └── Obj
│ │ ├── Project.pbd
│ │ ├── delay.o
│ │ ├── ir.o
│ │ ├── main.o
│ │ ├── stm8s_adc1.o
│ │ ├── stm8s_awu.o
│ │ ├── stm8s_beep.o
│ │ ├── stm8s_clk.o
│ │ ├── stm8s_exti.o
│ │ ├── stm8s_flash.o
│ │ ├── stm8s_gpio.o
│ │ ├── stm8s_i2c.o
│ │ ├── stm8s_it.o
│ │ ├── stm8s_itc.o
│ │ ├── stm8s_iwdg.o
│ │ ├── stm8s_rst.o
│ │ ├── stm8s_spi.o
│ │ ├── stm8s_tim1.o
│ │ ├── stm8s_tim2.o
│ │ ├── stm8s_tim4.o
│ │ ├── stm8s_uart1.o
│ │ └── stm8s_wwdg.o
│ ├── STM8S208
│ │ ├── Exe
│ │ │ ├── Project.hex
│ │ │ └── Project.out
│ │ ├── List
│ │ │ └── Project.map
│ │ └── Obj
│ │ ├── Project.pbd
│ │ ├── delay.o
│ │ ├── main.o
│ │ ├── stm8s_adc2.o
│ │ ├── stm8s_awu.o
│ │ ├── stm8s_beep.o
│ │ ├── stm8s_can.o
│ │ ├── stm8s_clk.o
│ │ ├── stm8s_eval.o
│ │ ├── stm8s_exti.o
│ │ ├── stm8s_flash.o
│ │ ├── stm8s_gpio.o
│ │ ├── stm8s_i2c.o
│ │ ├── stm8s_it.o
│ │ ├── stm8s_itc.o
│ │ ├── stm8s_iwdg.o
│ │ ├── stm8s_rst.o
│ │ ├── stm8s_spi.o
│ │ ├── stm8s_tim1.o
│ │ ├── stm8s_tim2.o
│ │ ├── stm8s_tim3.o
│ │ ├── stm8s_tim4.o
│ │ ├── stm8s_uart1.o
│ │ ├── stm8s_uart3.o
│ │ └── stm8s_wwdg.o
│ ├── readme.txt
│ └── settings
│ ├── Project.cspy.bat
│ ├── Project.dbgdt
│ ├── Project.dni
│ └── Project.wsdt
├── RIDE
│ ├── STM8_OB.asm
│ ├── project.rprj
│ ├── readme.txt
│ ├── stm8af52ax.rapp
│ ├── stm8af626x.rapp
│ ├── stm8af62ax.rapp
│ ├── stm8s103.rapp
│ ├── stm8s105.rapp
│ ├── stm8s207.rapp
│ ├── stm8s208.rapp
│ └── stm8s903.rapp
├── Release_Notes.html
├── STVD
│ ├── Cosmic
│ │ ├── Debug
│ │ │ ├── main.ls
│ │ │ ├── main.o
│ │ │ ├── stm8_interrupt_vector.ls
│ │ │ ├── stm8_interrupt_vector.o
│ │ │ ├── stm8af52ax.lkf
│ │ │ ├── stm8af626x.elf
│ │ │ ├── stm8af626x.lkf
│ │ │ ├── stm8af626x.map
│ │ │ ├── stm8af626x.s19
│ │ │ ├── stm8af626x.sm8
│ │ │ ├── stm8af62ax.lkf
│ │ │ ├── stm8s003.lkf
│ │ │ ├── stm8s005.lkf
│ │ │ ├── stm8s007.lkf
│ │ │ ├── stm8s103.lkf
│ │ │ ├── stm8s105.lkf
│ │ │ ├── stm8s207.lkf
│ │ │ ├── stm8s208.lkf
│ │ │ ├── stm8s903.lkf
│ │ │ ├── stm8s_adc1.ls
│ │ │ ├── stm8s_adc1.o
│ │ │ ├── stm8s_awu.ls
│ │ │ ├── stm8s_awu.o
│ │ │ ├── stm8s_beep.ls
│ │ │ ├── stm8s_beep.o
│ │ │ ├── stm8s_clk.ls
│ │ │ ├── stm8s_clk.o
│ │ │ ├── stm8s_exti.ls
│ │ │ ├── stm8s_exti.o
│ │ │ ├── stm8s_flash.ls
│ │ │ ├── stm8s_flash.o
│ │ │ ├── stm8s_gpio.ls
│ │ │ ├── stm8s_gpio.o
│ │ │ ├── stm8s_i2c.ls
│ │ │ ├── stm8s_i2c.o
│ │ │ ├── stm8s_it.ls
│ │ │ ├── stm8s_it.o
│ │ │ ├── stm8s_itc.ls
│ │ │ ├── stm8s_itc.o
│ │ │ ├── stm8s_iwdg.ls
│ │ │ ├── stm8s_iwdg.o
│ │ │ ├── stm8s_rst.ls
│ │ │ ├── stm8s_rst.o
│ │ │ ├── stm8s_spi.ls
│ │ │ ├── stm8s_spi.o
│ │ │ ├── stm8s_tim1.ls
│ │ │ ├── stm8s_tim1.o
│ │ │ ├── stm8s_tim2.ls
│ │ │ ├── stm8s_tim2.o
│ │ │ ├── stm8s_tim3.ls
│ │ │ ├── stm8s_tim3.o
│ │ │ ├── stm8s_tim4.ls
│ │ │ ├── stm8s_tim4.o
│ │ │ ├── stm8s_uart2.ls
│ │ │ ├── stm8s_uart2.o
│ │ │ ├── stm8s_wwdg.ls
│ │ │ └── stm8s_wwdg.o
│ │ ├── Project.stw
│ │ ├── Project.wed
│ │ ├── Release
│ │ │ ├── stm8af52ax.lkf
│ │ │ ├── stm8af626x.lkf
│ │ │ ├── stm8af62ax.lkf
│ │ │ ├── stm8s003.lkf
│ │ │ ├── stm8s005.lkf
│ │ │ ├── stm8s007.lkf
│ │ │ ├── stm8s103.lkf
│ │ │ ├── stm8s105.lkf
│ │ │ ├── stm8s207.lkf
│ │ │ ├── stm8s208.lkf
│ │ │ └── stm8s903.lkf
│ │ ├── readme.txt
│ │ ├── stm8_interrupt_vector.c
│ │ ├── stm8af52ax.dep
│ │ ├── stm8af52ax.stp
│ │ ├── stm8af626x.dep
│ │ ├── stm8af626x.stp
│ │ ├── stm8af62ax.dep
│ │ ├── stm8af62ax.stp
│ │ ├── stm8s003.dep
│ │ ├── stm8s003.stp
│ │ ├── stm8s005.dep
│ │ ├── stm8s005.stp
│ │ ├── stm8s007.dep
│ │ ├── stm8s007.stp
│ │ ├── stm8s103.dep
│ │ ├── stm8s103.stp
│ │ ├── stm8s105.dep
│ │ ├── stm8s105.stp
│ │ ├── stm8s207.dep
│ │ ├── stm8s207.stp
│ │ ├── stm8s208.dep
│ │ ├── stm8s208.stp
│ │ ├── stm8s903.dep
│ │ └── stm8s903.stp
│ └── Raisonance
│ ├── Project.stw
│ ├── readme.txt
│ ├── stm8af52ax.stp
│ ├── stm8af626x.stp
│ ├── stm8af62ax.stp
│ ├── stm8s003.stp
│ ├── stm8s005.stp
│ ├── stm8s007.stp
│ ├── stm8s103.stp
│ ├── stm8s105.stp
│ ├── stm8s207.stp
│ ├── stm8s208.stp
│ └── stm8s903.stp
├── delay.c
├── delay.h
├── ir.c
├── ir.h
├── main.c
├── readme.txt
├── stm8s_conf.h
├── stm8s_it.c
├── stm8s_it.h
├── uart.c
└── uart.h
16 directories, 190 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论