標題: 單片機花樣流水燈程序 [打印本頁]

作者: liulan19971118    時間: 2020-2-14 17:38
標題: 單片機花樣流水燈程序
  這是我最近做的花樣流水燈。
  花了幾天時間做了一個,還做了實物焊接。
  我用proteus做出了實物仿真,可以實現三種不同花色:紅,綠,藍,并且還可以以各種形式變換。
  1. #include<reg52.h>
  2. #define uchar unsigned char
  3. #define uint unsigned int
  4. uchar code Pattern_P0[]=
  5. {
  6. 0xfc,0xf9,0xf3,0xe7,0xcf,0x9f,0x3f,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  7. 0xe7,0xdb,0xbd,0x7e,0xbd,0xdb,0xe7,0xff,0xe7,0xc3,0x81,0x00,0x81,0xc3,0xe7,0xff,
  8. 0xaa,0x55,0x18,0xff,0xf0,0x0f,0x00,0xff,0xf8,0xf1,0xe3,0xc7,0x8f,0x1f,0x3f,0x7f,
  9. 0x7f,0x3f,0x1f,0x8f,0xc7,0xe3,0xf1,0xf8,0xff,0x00,0x00,0xff,0xff,0x0f,0xf0,0xff,
  10. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  11. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe,
  12. 0xfe,0xfc,0xf8,0xf0,0xe0,0xc0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  13. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xc0,0xe0,0xf0,0xf8,0xfc,0xfe,
  14. 0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff
  15. };
  16. uchar code Pattern_P2[]=
復制代碼


花樣流水燈.zip

33.31 KB, 下載次數: 20, 下載積分: 黑幣 -5


作者: hei51com    時間: 2020-4-17 15:55
感謝分享,以后有空下載學習學習




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1