• Recent
  • Wiki
  • Github
  • 百度网盘
  • Onedrive
  • Official
  • Shop
  • Register
  • Login
  • Register
  • Login
  • Search
  • Recent
  • Wiki
  • Github
  • 百度网盘
  • Onedrive
  • Official
  • Shop
  1. Home
  2. macthree
M
  • Profile
  • Following 1
  • Followers 0
  • Topics 2
  • Posts 4
  • Best 0
  • Controversial 0
  • Groups 0

macthree

@macthree

0
Reputation
6
Profile views
4
Posts
0
Followers
1
Following
Joined Jan 7, 2023, 11:36 PM Last Online Aug 28, 2023, 7:40 AM

macthree Unfollow Follow

Latest posts made by macthree

  • RE: 升级到 ubuntu 22.04

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

    posted in Pi 4B
    M
    macthree
    Mar 24, 2023, 11:45 PM
  • 升级到 ubuntu 22.04

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

    posted in Pi 4B
    M
    macthree
    Mar 24, 2023, 12:15 AM
  • 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
    Jan 27, 2023, 6:56 PM
  • Coolpi PWM

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

    posted in Maker
    M
    macthree
    Jan 27, 2023, 9:07 AM