資源簡介
本例程基于STM32F103C8T6單片機,驅動了TM1637數碼管進行0-9加點與不加點的數據顯示。
代碼片段和文件信息
/******************************Copyright?(c)***********************************
*????????????????Jiangsu?Zhihai?Electronic?Technology?Co.?Ltd.
*??????????????????????Research?&?Development?Department
*
* www.smarthealth-tech.com
*
-------------------------------------------------------------------------------
*?@file????TM1637.h
*?@author??GU?DONGDONG
*?@date????2015-11-25??
*******************************************************************************/
#include?“TM1637.h“
#include?“delay.h“
/**?Write?multiple?bits?in?an?8-bit?device?register.
?*?@param?slaveAddr?I2C?slave?device?address
?*?@param?regAddr?Register?regAddr?to?write?to
?*?@param?bitStart?First?bit?position?to?write?(0-7)
?*?@param?length?Number?of?bits?to?write?(not?more?than?8)
?*?@param?data?Right-aligned?val
評論
共有 條評論