1. int PWMA = 13;
  2. int INA1 = 12;
  3. int INA2 = 14;
  4. int STBY = 27;
  5. int INB1 = 25;
  6. int INB2 = 26;
  7. int PWMB = 33;
  8. const int ledPin = 2;
  9.  
  10. void setup() {
  11.   // put your setup code here, to run once:
  12.   Serial.begin(115200);
  13.   pinMode(ledPin, OUTPUT); //設定腳位為輸出
  14.   pinMode(INA1,OUTPUT);
  15.   pinMode(INA2,OUTPUT);
  16.   pinMode(PWMA,OUTPUT);
  17.   pinMode(STBY,OUTPUT);
  18.   pinMode(INB1,OUTPUT);
  19.   pinMode(INB2,OUTPUT);
  20.   pinMode(PWMB,OUTPUT);
  21.   //digital output test
  22.   digitalWrite(INA1,HIGH); //設定腳位HIGH LOW
  23.   digitalWrite(INA2,LOW);
  24.   digitalWrite(PWMA,LOW);
  25.   digitalWrite(STBY,HIGH);
  26.   digitalWrite(INB1,HIGH);
  27.   digitalWrite(INB2,LOW);
  28.   digitalWrite(PWMB,LOW);
  29.   delay(1000);
  30.   
  31.   //analog output(PWM) test 設定LED Channel PWM 頻率
  32.   ledcSetup(0, 10000, 8);
  33.   ledcSetup(1, 10000, 8);
  34.   ledcSetup(2, 10000, 8);
  35.   ledcSetup(3, 10000, 8);
  36.   ledcSetup(4, 10000, 8);
  37.   ledcSetup(5, 10000, 8);
  38.   ledcSetup(6, 10000, 8);
  39.   //設定腳位Channel
  40.   ledcAttachPin(INA1, 0);
  41.   ledcAttachPin(INA2, 1);
  42.   ledcAttachPin(PWMA, 2);
  43.   ledcAttachPin(STBY, 3);
  44.   ledcAttachPin(INB1, 4);
  45.   ledcAttachPin(INB2, 5);
  46.   ledcAttachPin(PWMB, 6);
  47.   
  48. }
  49.  
  50. void loop() {
  51.   // 最先前先明滅ESP32板子上LED
  52.   digitalWrite(ledPin,LOW);
  53.   delay(500);
  54.   digitalWrite(ledPin,HIGH);
  55.   delay(500);
  56.   digitalWrite(ledPin,LOW);
  57.   //設定馬達1為正轉
  58.   ledcWrite(0, 255); //INA1
  59.   ledcWrite(1, 0);   //INA2
  60.   ledcWrite(2, 255); //PWMA
  61.   ledcWrite(3, 255); //STBY
  62.   //設定馬達2為正轉
  63.   ledcWrite(4, 255); //INB1
  64.   ledcWrite(5, 0); //INB2
  65.   ledcWrite(6, 255); //PWMB
  66.   delay(3000);
  67.   
  68.   digitalWrite(ledPin,LOW);
  69.   delay(500);
  70.   digitalWrite(ledPin,HIGH);
  71.   delay(500);
  72.   digitalWrite(ledPin,LOW);
  73.   //設定馬達1為反轉
  74.   ledcWrite(0, 0);   //INA1
  75.   ledcWrite(1, 255); //INA2
  76.   ledcWrite(2, 255); //PWMA
  77.   ledcWrite(3, 255); //STBY
  78.   //設定馬達2為反轉
  79.   ledcWrite(4, 0);   //INB1
  80.   ledcWrite(5, 255); //INB2
  81.   ledcWrite(6, 255); //PWMB
  82.   delay(3000);
  83. }
複製代碼
文章標籤

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


下載位置你們隨便,一般我比力喜好在/usr/local/這裡的比較多。


CentOS7下載好以後對他進行解壓

 

  1. # killall netdata
文章標籤

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

網頁設計
測試成績(夜神慢 雷電9)
文章標籤

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

 

10、聲明返回類型
文章標籤

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

  1. var chart;
  2.          $(document).ready( function () {
  3.              chart = new Highcharts.Chart({
  4.                  chart: {
  5.                      renderTo: 'container',           // 放置圖表的容器
  6.                      plotBackgroundColor: null ,
  7.                      plotBorderWidth: null ,
  8.                      defaultSeriesType: 'line'   
  9.                  },
  10.                  title: {
  11.                      text: 'JQuery曲線圖演示'
  12.                  },
  13.                  subtitle: {
  14.                      text: '副題目'
  15.                  },
  16.                  xAxis: { // X軸數據
  17.                      categories: ['一月份', '二月份', '三月份', '四月份', '蒲月份', '六月份', '七月份', '八月份', '九月份', '十月份', '十一月份', '十二月份' ],
  18.                      labels: {
  19.                          rotation: -45, // 字體傾斜
  20.                          align: 'right' ,
  21.                          style: { font: 'normal 13px宋體' }網頁設計
  22.                      }
  23.                  },
  24.                  yAxis: { // Y軸顯示文字
  25.                      title: {
  26.                          text: '產量/百萬'
  27.                      }
  28.                  },
  29.                  tooltip: {
  30.                      enabled: true ,
  31.                      formatter: function () {
  32.                          return '<b>' + this .x + '</b><br/>' + this .series.name + ': ' + Highcharts.numberFormat( this .y, 1 );
  33.                      }
  34.                  },
  35.                  plotOptions: {
  36.                      line: {
  37.                          dataLabels: {
  38.                              enabled: true
  39.                          },
  40.                          enableMouseTracking: true // 是不是顯示title
  41.                      }
  42.                  },
  43.                  series: [{
  44.                      name: '杭州' ,
  45.                      data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6 ]
  46.                  }, {
  47.                      name: '江西' ,
  48.                      data: [4.0, 2.9, 5.5, 24.5, 18.4, 11.5, 35.2, 36.5 , 23.3, 38.3, 23.9, 3.6 ]
  49.                  }, {
  50.                      name: '北京' ,
  51.                      data: [14.0, 12.9, 15.5, 14.5, 28.4, 21.5, 15.2, 16.5, 13.3, 28.3, 13.9, 13.6 ]
  52.                  } , {
  53.                      name: '湖南' ,
  54.                      data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8 ]
  55. }]
  56.                  });
  57.              });
複製代碼
文章標籤

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

它不但支撐圖象還支撐HTML 內容。響應式便利CSS3 轉換轉換結果進度條高級的預加載和延遲加載CSS 自定義用戶可以定義導航或控制器

  1.   <script type="text/javascript">
  2.     $(document).ready(function(){
  3.       $('.front-demo').DrSlider({
  4.         navigationType: 'circle',
  5.         width: 1024, //圖片寬度
  6.         height: 400, //圖片高度
  7.         transition: 'slide-left', //方向
  8.         duration: 5000 //輪播一張圖片時候
  9.       });
  10.     });
  11.   </script>
文章標籤

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

###步驟2:挪用mbUploadify
  1. $('.pagination').pagination({
  2.     total: 100,
  3.     onJump: function(index){
  4.         console.log(index);
  5.     }
  6. });
文章標籤

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



這邊出錯





文章出處: NetYea 網頁設計

參考文章
https://github.com/ultralytics/ultralytics/issues/639

文章標籤

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

  1. <input class="myPassword" type="password" name="" value="">
網頁設計 複製代碼
文章標籤

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

網頁設計

 

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

文章標籤

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