- 51單片機C語言開發教程
- 劉理云
- 110字
- 2019-01-04 20:13:46
案例11:用右移(或左移)運算流水點亮P1口8位LED
(1)電路原理圖
電路如圖1所示,與案例1的電路是一樣的。
(2)參考源程序
①右移方法1:用右移指令。
②右移方法2:用循環右移函數_crol_。
③利用循環移位函數_crol_和_cror_形成來回滾動的效果。
推薦閱讀
- ASP.NET MVC4框架揭秘
- OpenNI Cookbook
- 基于免疫進化的算法及應用研究
- Modular Programming in Java 9
- Principles of Strategic Data Science
- IoT Projects with Bluetooth Low Energy
- Django Design Patterns and Best Practices
- iOS開發項目化入門教程
- 計算機組裝與維護(第二版)
- Python GUI Programming Cookbook(Second Edition)
- Python數據科學實踐指南
- Clojure Data Structures and Algorithms Cookbook
- Moodle 3.x Developer's Guide
- jMonkeyEngine 3.0 Beginner’s Guide
- WCF編程(第2版)