• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login
    1. Cool Pi For You
    2. macthree
    M
    • Profile
    • Following 1
    • Followers 0
    • Topics 2
    • Posts 4
    • Groups 0

    macthree

    @macthree

    0
    Reputation
    6
    Profile views
    4
    Posts
    0
    Followers
    1
    Following
    Joined
    Last Online

    macthree Unfollow Follow

    Latest posts made by macthree

    • RE: 升级到 ubuntu 22.04

      @jack_admin 我在 USB 驱动器上有 ubuntu 20.04。 是不是不能升级?

      posted in Pi 4B
      M
      macthree
    • 升级到 ubuntu 22.04

      coolpi 4b 是否可以升级 ubuntu 或只能进行全新安装?

      posted in Pi 4B
      M
      macthree
    • RE: Coolpi PWM

      @大法师

      使用 raspberry pi wiring.h 需要包含访问 PWM,如下所示.
      coolpi 需要包括什么?

      C Program

      /*
      Change the Intensity of LED using PWM on Raspberry Pi
      http://www.electronicwings.com
      */

      #include <wiringPi.h>

      #include <stdio.h>
      #include <stdlib.h>

      const int PWM_pin = 1; /* GPIO 1 as per WiringPi, GPIO18 as per BCM */

      int main (void)
      {
      int intensity ;

      if (wiringPiSetup () == -1)
      exit (1) ;

      pinMode (PWM_pin, PWM_OUTPUT) ; /* set PWM pin as output */

      while (1)
      {

      for (intensity = 0 ; intensity < 1024 ; ++intensity)
      {
        pwmWrite (PWM_pin, intensity) ;	/* provide PWM value for duty cycle */
        delay (1) ;
      }
      delay(1);
      
      for (intensity = 1023 ; intensity >= 0 ; --intensity)
      {
        pwmWrite (PWM_pin, intensity) ;
        delay (1) ;
      }
      delay(1);
      

      }
      }

      posted in Maker
      M
      macthree
    • Coolpi PWM

      任何人都可以解释如何在 coolpi 上使用 PWM 吗?

      posted in Maker
      M
      macthree