作为MCU的hello world,以各种姿势吊打闪灯程序,你能看懂几种?
- 入门级--基于定时器回调的闪灯:
http://www.jianshu.com/p/7a7560e0e7ce - VSF基础构架级--事件驱动实现闪灯:
http://www.jianshu.com/p/76c2ea91af16
说明:
http://www.jianshu.com/p/f0cbf86d8fed - 普通级--元状态机实现闪灯:
http://www.jianshu.com/p/d8bd5679f9e6
说明:
http://www.jianshu.com/p/8906369f63e8 - 恶梦级--PT协程实现闪灯:
http://www.jianshu.com/p/eaeb2971f2be
说明:
http://www.jianshu.com/p/6f62ee661182 - 地狱级--setjmp协程实现闪灯:
http://www.jianshu.com/p/60535d52c1a0
说明:
http://www.jianshu.com/p/8e1e7bcd05c6