目前分類:NetYea (83)

瀏覽方式: 標題列表 簡短摘要

chrome.png (170.45 KB, 下載次數: 0)

2023-3-21 22:21 上傳

文章標籤

antoniojonesu 發表在 痞客邦 留言(0) 人氣()

  1. #define LEDR 16
  2. #define LEDG 17
  3. #define LEDB 5
  4. int timelimit=100;
  5. // 封閉LED的函式
  6. void turnoff(){
  7.   digitalWrite(LEDR, LOW);
  8.   digitalWrite(LEDG, LOW);
  9.   digitalWrite(LEDB, LOW);
  10. }
  11.  
  12. void setup() {               
  13.   pinMode(LEDR, OUTPUT);
  14.   pinMode(LEDG, OUTPUT);
  15.   pinMode(LEDB, OUTPUT);
  16.   turnoff();
  17. }
  18.  
  19. // 每隔一秒改變LED的顏色
  20. void loop() {
  21.   turnoff();
  22.   digitalWrite(LEDR, HIGH);
  23.   delay(1000);
  24.   
  25.   turnoff();
  26.   digitalWrite(LEDG, HIGH);
  27.   delay(1000);
  28.   
  29.   turnoff();
  30.   digitalWrite(LEDB, HIGH);
  31.   delay(1000);
  32.   
  33.   turnoff();
  34.   digitalWrite(LEDR, HIGH);
  35.   digitalWrite(LEDG, HIGH);
  36.   delay(1000);
  37.   
  38.   turnoff();
  39.   digitalWrite(LEDG, HIGH);
  40.   digitalWrite(LEDB, HIGH);
  41.   delay(1000);
  42.   
  43.   turnoff();
  44.   digitalWrite(LEDB, HIGH);
  45.   digitalWrite(LEDR, HIGH);
  46.   delay(1000);
  47.  
  48.  
  49.   turnoff();
  50.   digitalWrite(LEDR, HIGH);
  51.   digitalWrite(LEDB, HIGH);
  52.   digitalWrite(LEDG, HIGH);
  53.   delay(1000);
  54. }
複製代碼
文章標籤

antoniojonesu 發表在 痞客邦 留言(0) 人氣()

  1. // Remove some buttons provided by the standard plugins, which are
  2.         // not needed in the Standard(s) toolbar.
  3.         config.removeButtons = 'Underline,Subscript,Superscript';
  4.  
  5.         // Set the most common block elements.
  6.         config.format_tags = 'p;h1;h2;h3;pre';
  7.  
  8.         // Simplify the dialog windows.
  9.         config.removeDialogTabs = 'image:advanced;link:advanced';
  10.         baseurl = 'https://'+window.location.hostname;
  11.         config.filebrowserBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html';
  12.         config.filebrowserImageBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html?Type=Images';
  13.         config.filebrowserFlashBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html?Type=Flash';
  14.         config.filebrowserUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; //可上傳一般檔案
  15.         config.filebrowserImageUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';//可上傳圖檔
  16.         config.filebrowserFlashUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';//可上傳Flash檔案
  17. };
複製代碼
文章標籤

antoniojonesu 發表在 痞客邦 留言(0) 人氣()