1. int INA = 26;
  2. int INB = 27;
  3.  
  4. void setup()
  5. {
  6.   Serial.begin(9600);
  7.   pinMode(INA,OUTPUT);
  8.   pinMode(INB,OUTPUT);
  9.   //digital output test
  10.   Serial.println("INA=LOW,INB=HIGH");
  11.   digitalWrite(INA,LOW);
  12.   digitalWrite(INB,HIGH);
  13.   delay(3000);
  14.   Serial.println("INA=HIGH,INB=LOW");
  15.   digitalWrite(INA,HIGH);
  16.   digitalWrite(INB,LOW);
  17.   delay(3000);
  18.   Serial.println("INA=LOW,INB=LOW");
  19.   digitalWrite(INA,LOW);
  20.   digitalWrite(INB,LOW);
  21.   delay(3000);
  22.   Serial.println("INA=HIGH,INB=HIGH");
  23.   digitalWrite(INA,HIGH);
  24.   digitalWrite(INB,HIGH);
  25.   delay(3000);
  26.   //analog output(PWM) test  
  27.   ledcSetup(0, 5000, 8);
  28.   ledcSetup(1, 5000, 8);
  29.   ledcAttachPin(INA, 0);
  30.   ledcAttachPin(INB, 1);  
  31.   //prepare forward
  32.   Serial.println("INA=i++,INB=LOW");
  33.   ledcWrite(1, 0);
  34.   ledcWrite(0, 255);//避免電流太低無法啟動
  35.   delay(300);
  36.   for (int i=80;i<=255;i++)
  37.   {
  38.     ledcWrite(0, i);
  39.     ledcWrite(1, 0);
  40.     Serial.println(i);
  41.     delay(100);
  42.   }
  43.   ledcWrite(0, 0);
  44.   ledcWrite(1, 0);
  45.   delay(3000);
  46.   //prepare reverse
  47.   Serial.println("INA=LOW,INB=i++");
  48.   ledcWrite(0, 0);
  49.   ledcWrite(1, 255);//避免電流太低沒法啟動
  50.   delay(300);
  51.   for (int i=80;i<=255;i++)
  52.   {
  53.     ledcWrite(1, i);
  54.     ledcWrite(0, 0);
  55.     Serial.println(i);
  56.     delay(100);
  57.   }
  58.   ledcWrite(0, 0);
  59.   ledcWrite(1, 0);
  60.     delay(3000);
  61. }
  62.  
  63. void loop()
  64. {
  65.  
  66.  
  67. }
複製代碼
文章標籤

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


網頁設計 ESP32 用Arduino程式上傳測試Hello

點到右上角像是放大鏡裡面有個眼睛
這時就會看到每秒印出一次Hello World!

 

文章標籤

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

1.先安裝NANO的驅動程式
找到Tools - > Boards manager
網頁設計 Arduino nano初始設定並引入Librar網頁設計 Arduino nano初始設定並引入Librar

2.左邊輸入nano
安裝 Arduino AVR Boards 1.8.X
網頁設計 Arduino nano初始設定並引入Librar網頁設計 Arduino nano初始設定並引入Librar


3. 找到准確型號
Tools -> Processor -> ATmega328P(Old Bootloader)
網頁設計 Arduino nano初始設定並引入Librar網頁設計 Arduino nano初始設定並引入Librar


4. 更換COM PORT
Tools -> Port -> COM 10(每台電腦顯示分歧)
這時插上Arduino nano 已顯示連線
網頁設計 Arduino nano初始設定並引入Librar
網頁設計 Arduino nano初始設定並引入Librar

5.安裝LIB (liquid-crystal-i2-c.h)
載點
https://www.arduinolibraries.info/libraries/liquid-crystal-i2-c


SKETCH -> ADD .ZIP Library...
把檔案上傳即可
網頁設計 Arduino nano初始設定並引入Librar
網頁設計 Arduino nano初始設定並引入Librar

果燒錄出現錯誤請看這篇
毛病訊息:stk500_getsync() attempt 10 of 10: not in sync: resp


文章出處:網頁設計,網站架設 ,網路行銷,網頁優化,SEO - NetYea 網頁設計

 

文章標籤

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

Google的地圖相當的方便,不但圖資完全,因此也有很多店家,會將Google地圖嵌到網頁中,讓消費者利便找尋,但Google改版後,許多朋侪已找到地址,卻不知要若何嵌到網頁中,這個嵌入鈕,還相當的不明顯,所以筆者就花點時候,將它整理,需要的伴侶,就操作看看吧!

嵌入Google地圖:

Step1
起首,進到https://www.google.com.tw/maps/,接著在左上角輸入要查尋的地址。
網頁設計 網頁若何將 Google地圖 嵌入
網頁設計 網頁若何將 Google地圖 嵌入
Step2
當找到後,點左上的同享圖示,再點分享和嵌入地圖選項。

網頁設計 網頁若何將 Google地圖 嵌入
網頁設計 網頁若何將 Google地圖 嵌入

Step3
當設定好後,將下方的語法複製起來。網頁設計

Step4
再貼到網頁中。
網頁設計 網頁若何將 Google地圖 嵌入
網頁設計 網頁若何將 Google地圖 嵌入

Step5
如許就會泛起在網頁中顯示。

網頁設計 網頁若何將 Google地圖 嵌入

文章標籤

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

網頁設計

PHP若何連接的SQLite數據庫 網頁設計
PHP若何連接的SQLite數據庫 網頁設計

建立表以下PHP法式將用於在上面創建的數據庫(phpdb.db)中建立一個表:

 

文章標籤

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



進入網站會泛起大量近似下面的提醒,然則可以正常顯示和履行



改為:
 

文章標籤

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

網頁設計 CPanel 處事器用transfer Tool對


這兩天用CPanel 辦事器用transfer Tool對拷主機


發現有的網站居然顯示 內部毛病 ERROR 500


網頁設計 CPanel 處事器用transfer Tool對


找了一下.htaccess檔案內多了

文章標籤

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

網頁設計 ubuntu firefox youtube ca
網頁設計 ubuntu firefox youtube ca
安裝插件

ubuntu firefox播放久了,突然不克不及用了
顯示
ubuntu firefox youtube cannot play

文章標籤

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

  1. <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
  2. <script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
  3. <script type="text/javascript" src="{$template_dir}/js/js.cookie.js"></script>
  4.  
  5. <link type="text/css" rel="stylesheet" href="{$template_dir}/css/jquery-ui.dialog.css" />
  6. <script>
  7.  
  8. $(function(){
  9.           //alert(Cookies.get("over18"));
  10.         //設定over18是否為1
  11.         if (Cookies.get("over18")!="1") {
  12.                 $("#dialog_div").css('zIndex',9999);
  13.                 $("#dialog_div").dialog({
  14.                                 autoOpen: true,
  15.                                 show: "blind",
  16.                                 hide: "explode",
  17.                                 buttons: {
  18.                                         "是,我已滿18歲": function() {
  19.                                                 Cookies.set("over18", '1');
  20.                                                 $(this).dialog("close");                                       
  21.                                 },
  22.                                 "請分開": function() { $(this).dialog("close");type : "cancel"; }
  23.                         }
  24.                 });
  25.                 $("#opener").click(function() {
  26.                         $("#dialog_div").dialog("open");
  27.                         return false;
  28.                 });
  29.         }
  30. });
  31.  
  32. </script>
  33.  
  34.         <div id="dialog_div" style="display: none;" title="電腦網際網路分級門徑">本區域依『電腦網際網路分級設施』歸類為限制級
  35.                                     限制為年滿18歲已具有完全行為能力且願接受本站內影音內容
  36.                                     及各項條目之網友才可瀏覽,未滿18歲謝絕進入。
  37.                                     為提防未滿18歲之未成年網友瀏覽網路上限制級內容的圖文資訊
  38.                                     建議您可進行網路分級基金會TICRF分級服務的安裝與設定。
  39.                                     依電腦網路內容分級法,未滿18歲不得瀏覽。</div>
複製代碼
文章標籤

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

網頁設計

<script type = "text/javascript" src = "jquery.js" </script>
<script type = "text/javascript" src = "highcharts.js" </script>
<script type = "text/javascript" src = "exporting.js" </script>

文章標籤

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