51單片連tcs230的源程序,絕對原創,可以記憶顏色。 #define uchar unsigned char #include <reg52.h> #include<math.h> sbit S0=P1^7 sbit S1=P1^0 //端口定義 sbit S2=P1^1 sbit S3=P1^2 sbit OE=P1^3 sbit OUT=P3^4 //頻率從TO口輸入 sbit key0=P1^5 sbit LED=P1^6 sbit a=P3^0 sbit b=P3^1 uchar color //1:BLUE 2:green 3:red uchar T[4] //color timer uchar TH[4] uchar TL[4] uchar bizhi[4] void time1() interrupt 3 { TH[color]=TH0 TL[color]=TL0 T[color]=(TH[color]*0xff+TL[color]) TR0=0 //關定時器 TR1=0 TH1=0xB1 TL1=0xE0 //歸0 TH0=0x00 TL0=0x00 //歸0 }
上傳時間: 2016-11-26
上傳用戶:秦莞爾w
this book gives a detailed description of the widespread or recently used standards like Wi-Fi, BLUEtooth, ZigBee, and WiMAX.
標簽: description widespread standards detailed
上傳時間: 2016-12-19
上傳用戶:youlongjian0
IEC 62056 的很有價值的參考文檔,包括: DLMS UA 1000-1 ed.8, BLUE book, COSEM Identification System and Interface Classes DLMS UA 1000-2 ed.6, Green book, DLMS/COSEM Architecture and Protocols DLMS UA 1001-1 ed.3,Yellow book, DLMS/COSEM Conformance Testing Proce
上傳時間: 2017-02-18
上傳用戶:小眼睛LSL
一個基于spring,stucts2,hiberater架構的開發者網站,在eclipse7 BLUE版測試通過,服務器tomcat6,數據庫mysql5.
標簽: spring
上傳時間: 2017-06-08
上傳用戶:R50974
Aidaohuakai( 樓主 ) 2013-8-22 11:45:24 只看該作者23307 | 41倒序瀏覽 論壇上對mpu6050的資料和討論并不多,很多壇友都說驅動失敗,老是顯示0. 以下就談談我的一些血與淚的教訓: 昨天開始接觸mpu6050,在網上查了很多資料,下載程序,準備一展身手。首先看了mpu6050中文資料,之后又看了那個mpu6050的測試程序,把這些看明白之后就開始寫程序了。我不是直接把程序復制過去,只是復制mpu6050的地址和初始化,IIC并沒有復制,就復制我上次寫的24C02的那個程序,想不到,這給了我血與淚的教訓,我原來是直接把IIC復制過來的,并沒有多留意。之后初始化mpu6050,寫入地址,讀出數據,下載到單片機之后,LCD上顯示000001,我感到郁悶,之后又調試,以為是顯示不對,又寫顯示,之后又下載,結果還是老樣,這樣半天就過去了。驅動沒成功,又懷疑芯片或引腳有問題,繼續調試,也沒成功。就一一對應地看了地址,又看了初始化,發現沒錯,調試還是不成功。最后干脆不接IIC總線,竟然發現了個天大的秘密,接不接IIC,LCD都顯示000001,我又用示波器測試波形,發現波形正確。在網上又查了別人的資料,在論壇上也很少有關于mpu6050的資料,也看了比別人的一些討論。很多壇友都說驅動失敗,老是顯示0. 沒辦法,一天就這樣過去了,今天早上,我又仔細看了程序,出乎我的想象,竟然是IIC的那個地址沒改,原來寫24C02的那個地址是a0,還是原封不動,把我嚇了一跳。把這些改過來之后,一切正常,能顯示加速度和陀螺儀。血與淚的教訓啊,是自己不細心造成的,忘記改地址!今天早上竟然花了不到2個鐘就調出來了,驚喜之時就寫了這個分享,希望對大家有用。
標簽: 圓點博士小四軸
上傳時間: 2015-04-14
上傳用戶:wusheng4495
演算法評估 用空間和時間評估演算法效能 時間複雜度(Time Complexity) 空間複雜度(Space Complexity) 效能評估 效能分析(Performance Analysis):事前評估 效能評估(Performance Measurement):效能量測 評估時均假設處理的資料量為n到無窮大
標簽: 演算
上傳時間: 2015-06-13
上傳用戶:18007270712
RGB,三原色光模式(英語:RGB color model),又稱RGB顏色模型或紅綠藍顏色模型,是一種加色模型,將紅(Red)、綠(Green)、藍(BLUE)三原色的色光以不同的比例相加,以產生多種多樣的色光。RGB顏色模型的主要目的是在電子系統中檢測。
標簽:
上傳時間: 2015-06-14
上傳用戶:lxy123
RGB,三原色光模式(英語:RGB color model),又稱RGB顏色模型或紅綠藍顏色模型,是一種加色模型,將紅(Red)、綠(Green)、藍(BLUE)三原色的色光以不同的比例相加,以產生多種多樣的色光。RGB顏色模型的主要目的是在電子系統中檢測
標簽:
上傳時間: 2015-06-14
上傳用戶:lxy123
GRE 數學圣經,下面是詳細的英文介紹: Comprehensive Prep for GRE Math Every year, students pay $1,000 and more to test prep companies to prepare for the math section of the GRE. Now you can get the same preparation in a book. Although the GRE math section is difficult, it is very learnable. GRE Math Bible presents a thorough analysis of GRE math and introduces numerous analytic techniques that will help you immensely, not only on the GRE but in graduate school as well.
標簽: GRE Math 數學
上傳時間: 2015-08-22
上傳用戶:東大寺的
《分析性寫作》,介紹言簡意賅: The popular, brief rhetoric that treats writing as thinking, WRITING ANALYTICALLY, Sixth Edition, offers a series of prompts that lead you through the process of analysis and synthesis and help you to generate original and well-developed ideas. The book's overall point is that learning to write well means learning to use writing as a way of thinking well. To that end, the strategies of this book describe thinking skills that employ writing. As you will see, this book treats writing as a tool of thought--a means of undertaking sustained acts of inquiry and reflection.
上傳時間: 2015-08-22
上傳用戶:東大寺的