chrome.png (170.45 KB, 下載次數: 0)
2023-3-21 22:21 上傳
antoniojonesu 發表在 痞客邦 留言(0) 人氣()
- #define LEDR 16
- #define LEDG 17
- #define LEDB 5
- int timelimit=100;
- // 封閉LED的函式
- void turnoff(){
- digitalWrite(LEDR, LOW);
- digitalWrite(LEDG, LOW);
- digitalWrite(LEDB, LOW);
- }
-
- void setup() {
- pinMode(LEDR, OUTPUT);
- pinMode(LEDG, OUTPUT);
- pinMode(LEDB, OUTPUT);
- turnoff();
- }
-
- // 每隔一秒改變LED的顏色
- void loop() {
- turnoff();
- digitalWrite(LEDR, HIGH);
- delay(1000);
-
- turnoff();
- digitalWrite(LEDG, HIGH);
- delay(1000);
-
- turnoff();
- digitalWrite(LEDB, HIGH);
- delay(1000);
-
- turnoff();
- digitalWrite(LEDR, HIGH);
- digitalWrite(LEDG, HIGH);
- delay(1000);
-
- turnoff();
- digitalWrite(LEDG, HIGH);
- digitalWrite(LEDB, HIGH);
- delay(1000);
-
- turnoff();
- digitalWrite(LEDB, HIGH);
- digitalWrite(LEDR, HIGH);
- delay(1000);
-
-
- turnoff();
- digitalWrite(LEDR, HIGH);
- digitalWrite(LEDB, HIGH);
- digitalWrite(LEDG, HIGH);
- delay(1000);
- }
複製代碼
antoniojonesu 發表在 痞客邦 留言(0) 人氣()
- // Remove some buttons provided by the standard plugins, which are
- // not needed in the Standard(s) toolbar.
- config.removeButtons = 'Underline,Subscript,Superscript';
-
- // Set the most common block elements.
- config.format_tags = 'p;h1;h2;h3;pre';
-
- // Simplify the dialog windows.
- config.removeDialogTabs = 'image:advanced;link:advanced';
- baseurl = 'https://'+window.location.hostname;
- config.filebrowserBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html';
- config.filebrowserImageBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html?Type=Images';
- config.filebrowserFlashBrowseUrl = baseurl+'/includes/ckfinder/ckfinder.html?Type=Flash';
- config.filebrowserUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; //可上傳一般檔案
- config.filebrowserImageUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';//可上傳圖檔
- config.filebrowserFlashUploadUrl = baseurl+'/includes/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';//可上傳Flash檔案
- };
複製代碼
antoniojonesu 發表在 痞客邦 留言(0) 人氣()