Logo

FNK0022

  • C language tutorial
    • Get Started
    • Remove the Chips
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
    • Raspberry Pi
    • Installing an Operating System
      • Component List
        • Required Components
      • Optional Components
        • Required Accessories for Monitor
        • Required Accessories for Remote Desktop
      • Raspberry Pi OS
        • Automatically Method
        • Manually Method
          • Write System to Micro SD Card
        • Enable ssh and configure WiFi
        • Insert SD card
      • Getting Started with Raspberry Pi
        • Monitor desktop
        • Remote desktop & VNC
          • MAC OS Remote Desktop
          • Windows OS Remote Desktop
          • VNC Viewer & VNC
            • Enable VNC
            • set resolution
    • 0. Chapter Preparation
      • Linux Command
        • Shortcut Key
      • Install WiringPi
        • WiringPi Installation Steps
      • Obtain the Project Code
    • 1. Chapter LED
      • 1.1. Project Blink
        • 1.1.1. Component List
        • 1.1.2. GPIO
          • 1.1.2.1. BCM GPIO Numbering
          • 1.1.2.2. PHYSICAL Numbering
          • 1.1.2.3. WiringPi GPIO Numbering
        • 1.1.3. Circuit
        • 1.1.4. Component knowledge
          • 1.1.4.1. LED
          • 1.1.4.2. Resistor
          • 1.1.4.3. Breadboard
          • 1.1.4.4. GPIO Extension Board
        • 1.1.5. Code
          • 1.1.5.1. C Code Blink
        • 1.1.6. Other Code Editors (Optional)
          • 1.1.6.1. nano
          • 1.1.6.2. geany
        • 1.1.7. Freenove Car, Robot and other products for Raspberry Pi
    • 2. Chapter Button and leds
      • 2.1. Project Push Button Switch & LED
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Push Button Switch
        • 2.1.3. Circuit
        • 2.1.4. Code
          • 2.1.4.1. C Code ButtonLED
          • 2.1.4.2. Reference
      • 2.2. Project MINI Table Lamp
        • 2.2.1. Debounce a Push Button Switch
        • 2.2.2. Code
          • 2.2.2.1. C Code Tablelamp
            • millis()
    • 3. Chapter LED Bar Graph
      • 3.1. Project Flowing Water Light
        • 3.1.1. Component List
        • 3.1.2. Component knowledge
          • 3.1.2.1. Bar Graph LED
        • 3.1.3. Circuit
        • 3.1.4. Code
          • 3.1.4.1. C Code LightWater
    • 4. Chapter Analog & PWM
      • 4.1. Project Breathing LED
        • 4.1.1. Component List
        • 4.1.2. Component Knowledge
          • 4.1.2.1. Analog & Digital
          • 4.1.2.2. PWM
        • 4.1.3. Circuit
        • 4.1.4. Code
          • 4.1.4.1. C Code BreathingLED
    • 5. Chapter RGB LED
      • 5.1. Project Multicolored LED
        • 5.1.1. Component List
        • 5.1.2. Circuit
        • 5.1.3. Code
          • 5.1.3.1. C Code Colorful LED
    • 6. Chapter Buzzer
      • 6.1. Project Doorbell
        • 6.1.1. Component knowledge
          • 6.1.1.1. Buzzer
          • 6.1.1.2. Transistors
        • 6.1.2. Circuit
        • 6.1.3. Code
          • 6.1.3.1. C Code Doorbell
      • 6.2. Project Alertor
        • 6.2.1. Code
          • 6.2.1.1. C Code Alertor
    • What’s Next?
  • Python language tutorial
    • Getting Started
    • Remove the Chips
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
    • Raspberry Pi
    • Installing an Operating System
      • Component List
        • Required Components
      • Optional Components
        • Required Accessories for Monitor
        • Required Accessories for Remote Desktop
      • Raspberry Pi OS
        • Automatically Method
        • Manually Method
          • Write System to Micro SD Card
        • Enable ssh and configure WiFi
        • Insert SD card
      • Getting Started with Raspberry Pi
        • Monitor desktop
        • Remote desktop & VNC
          • MAC OS Remote Desktop
          • Windows OS Remote Desktop
          • VNC Viewer & VNC
            • Enable VNC
            • set resolution
    • 0. Chapter Preparation
      • Linux Command
        • Shortcut Key
      • Install GPIO Zero Python library
        • GPIO Zero Python library Installation Steps
      • Obtain the Project Code
      • Python2 & Python3
        • Set Python3 as default python
          • Shortcut Key
    • 1. Chapter LED
      • 1.1. Project Blink
        • 1.1.1. Component List
        • 1.1.2. GPIO
          • 1.1.2.1. BCM GPIO Numbering
          • 1.1.2.2. PHYSICAL Numbering
        • 1.1.3. GPIO Numbering
        • 1.1.4. Circuit
        • 1.1.5. Component knowledge
          • 1.1.5.1. LED
          • 1.1.5.2. Resistor
          • 1.1.5.3. Breadboard
          • 1.1.5.4. GPIO Extension Board
        • 1.1.6. Code
          • 1.1.6.1. Python Code Blink
          • 1.1.6.2. Reference
        • 1.1.7. Freenove Car, Robot and other products for Raspberry Pi
    • 2. Chapter Button and leds
      • 2.1. Project Push Button Switch & LED
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Push Button Switch
        • 2.1.3. Circuit
        • 2.1.4. Code
          • 2.1.4.1. Python Code ButtonLED
      • 2.2. Project MINI Table Lamp
        • 2.2.1. Debounce a Push Button Switch
        • 2.2.2. Code
          • 2.2.2.1. Python Code Tablelamp
    • 3. Chapter LED Bar Graph
      • 3.1. Project Flowing Water Light
        • 3.1.1. Component List
        • 3.1.2. Component knowledge
          • 3.1.2.1. Bar Graph LED
        • 3.1.3. Circuit
        • 3.1.4. Code
          • 3.1.4.1. Python Code LightWater
    • 4. Chapter Analog & PWM
      • 4.1. Project Breathing LED
        • 4.1.1. Component List
        • 4.1.2. Component Knowledge
          • 4.1.2.1. Analog & Digital
          • 4.1.2.2. PWM
        • 4.1.3. Circuit
        • 4.1.4. Code
          • 4.1.4.1. Python Code BreathingLED
    • 5. Chapter RGB LED
      • 5.1. Project Multicolored LED
        • 5.1.1. Component List
        • 5.1.2. Circuit
        • 5.1.3. Code
          • 5.1.3.1. Python Code ColorfulLED
    • 6. Chapter Buzzer
      • 6.1. Project Doorbell
        • 6.1.1. Component knowledge
          • 6.1.1.1. Buzzer
          • 6.1.1.2. Transistors
        • 6.1.2. Circuit
        • 6.1.3. Code
          • 6.1.3.1. Python Code Doorbell
      • 6.2. Project Alertor
        • 6.2.1. Code
          • 6.2.1.1. Python Code Alertor
    • 7. Chapter Web IoT
      • 7.1. Project Remote LED
        • 7.1.1. Component List
        • 7.1.2. Circuit
        • 7.1.3. Solution from E-Tinkers
        • 7.1.4. WebIOPi Service Framework
          • 7.1.4.1. Installation
          • 7.1.4.2. Run
          • 7.1.4.3. Access WebIOPi over local network
          • 7.1.4.4. Completed
    • What’s Next?
  • Processing IDE tutorial
    • 0. Chapter Processing
      • Installing Processing Software
      • First Use
      • Installing Freenove_Processing_IO Library
      • Set Commands to run on the Terminal
    • 1. Chapter LED
      • 1.1. Project Blink
        • 1.1.1. Component List
        • 1.1.2. Circuit
        • 1.1.3. Component knowledge
          • 1.1.3.1. LED
          • 1.1.3.2. Resistor
          • 1.1.3.3. Resistor
          • 1.1.3.4. GPIO Extension Board
        • 1.1.4. Sketch
          • 1.1.4.1. Sketch Blink
            • setup()
            • draw()
            • size()
            • framerate()
            • background()
            • GPIO.pinMode()
            • GPIO.digitalWrite()
      • 1.2. Project MouseLED
        • 1.2.1. Sketch
          • 1.2.1.1. Sketch MouseLED
        • 1.2.2. Freenove Car, Robot and other products for Raspberry Pi
    • 2. Chapter LED Bar Graph
      • 2.1. Project FollowLight
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Bar Graph LED
        • 2.1.3. Circuit
        • 2.1.4. Sketch
          • 2.1.4.1. Sketch FollowLight
    • 3. Chapter PWM
      • 3.1. Project Breathing LED
        • 3.1.1. Component List
        • 3.1.2. Circuit
        • 3.1.3. Sketch
          • 3.1.3.1. Sketch BreathingLED
          • 3.1.3.2. Reference
    • 4. Chapter RGBLED
      • 4.1. Project Multicolored LED
        • 4.1.1. Component List
        • 4.1.2. Circuit
        • 4.1.3. Sketch
          • 4.1.3.1. Sketch ColorfulLED
          • 4.1.3.2. Reference
    • 5. Chapter Buzzer
      • 5.1. Project Doorbell
        • 5.1.1. Circuit
        • 5.1.2. Sketch
          • 5.1.2.1. Sketch ActiveBuzzer
    • 1. App Snake Game
      • 1.1. App Snake Game
        • 1.1.1. Component List
        • 1.1.2. Circuit
        • 1.1.3. Sketch
          • 1.1.3.1. Sketch SnakeGame
    • 2. App Tetris Game
      • 2.1. App Tetris Game
        • 2.1.1. Component List
        • 2.1.2. Circuit
        • 2.1.3. Sketch
          • 2.1.3.1. Sketch TetrisGame
    • What’s Next?
  • Java language tutorial
    • Getting Started
    • Remove the Chips
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
    • Raspberry Pi
    • Installing an Operating System
      • Component List
        • Required Components
      • Optional Components
        • Required Accessories for Monitor
        • Required Accessories for Remote Desktop
      • Raspberry Pi OS
        • Automatically Method
        • Manually Method
          • Write System to Micro SD Card
        • Enable ssh and configure WiFi
        • Insert SD card
      • Getting Started with Raspberry Pi
        • Monitor desktop
        • Remote desktop & VNC
          • MAC OS Remote Desktop
          • Windows OS Remote Desktop
          • VNC Viewer & VNC
            • Enable VNC
            • set resolution
    • 0. Chapter Preparation
      • Linux Command
        • Shortcut Key
        • Pi4j Introduction
      • Download Code
      • Installation of JBang
      • Installation of Geany
      • Geany Configuration
    • 1. Chapter LED
      • 1.1. Project Blink
        • 1.1.1. Component List
        • 1.1.2. Component knowledge
          • 1.1.2.1. LED
          • 1.1.2.2. Resistor
          • 1.1.2.3. Breadboard
          • 1.1.2.4. GPIO Extension Board
        • 1.1.3. Sketch
          • 1.1.3.1. Sketch_01_Blink
        • 1.1.4. Freenove Car, Robot and other products for Raspberry Pi
    • 2. Chapter Flowing Light
      • 2.1. Project Flowing Water Light
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Bar Graph LED
        • 2.1.3. Circuit
        • 2.1.4. Sketch
          • 2.1.4.1. Sketch_02_FlowingLight
    • 3. Chapter Buttons & LEDs
      • 3.1. Project Push Button Switch & LED
        • 3.1.1. Component List
        • 3.1.2. Component knowledge
          • 3.1.2.1. Push Button Switch
        • 3.1.3. Circuit
        • 3.1.4. Sketch
          • 3.1.4.1. Sketch_03_ButtonLED
    • 4. Chapter Analog & PWM
      • 4.1. Project Breathing LED
        • 4.1.1. Component List
        • 4.1.2. Component Knowledge
          • 4.1.2.1. Analog & Digital
          • 4.1.2.2. PWM
        • 4.1.3. Circuit
        • 4.1.4. Sketch
          • 4.1.4.1. Sketch_04_BreathingLED
    • 5. Chapter RGB LED
      • 5.1. Project RainbowLED
        • 5.1.1. Component List
        • 5.1.2. Circuit
        • 5.1.3. Sketch
          • 5.1.3.1. Sketch_05_RainbowLED
    • 6. Chapter Buzzer
      • 6.1. Project Doorbell
        • 6.1.1. Component knowledge
          • 6.1.1.1. Buzzer
          • 6.1.1.2. Transistors
        • 6.1.2. Circuit
        • 6.1.3. Sketch
          • 6.1.3.1. Sketch_06_1_Doorbell
      • 6.2. Project Alertor
        • 6.2.1. Sketch
          • 6.2.1.1. Sketch_Alertor
    • What’s Next?
  • Scratch language tutorial
    • Getting Started
    • Remove the Chips
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
    • Raspberry Pi
    • Installing an Operating System
      • Component List
        • Required Components
      • Optional Components
        • Required Accessories for Monitor
        • Required Accessories for Remote Desktop
      • Raspberry Pi OS
        • Automatically Method
        • Manually Method
          • Write System to Micro SD Card
        • Enable ssh and configure WiFi
        • Insert SD card
      • Getting Started with Raspberry Pi
        • Monitor desktop
        • Remote desktop & VNC
          • MAC OS Remote Desktop
          • Windows OS Remote Desktop
          • VNC Viewer & VNC
            • Enable VNC
            • set resolution
    • 0. Chapter Preparation
      • Linux Command
        • Shortcut Key
      • Obtain the Project Code
      • Install and Configure Scratch 3
        • Installation Steps
        • Add Raspberry Pi Library
    • 1. Chapter LED
      • 1.1. Project 01.0_Blink, 01.1_Keyboard_LED and 01.2 Sprite_LED
        • 1.1.1. Component List
        • 1.1.2. GPIO
        • 1.1.3. BCM GPIO Numbering
          • 1.1.3.1. PHYSICAL Numbering
        • 1.1.4. Circuit
        • 1.1.5. Component knowledge
          • 1.1.5.1. LED
          • 1.1.5.2. Resistor
          • 1.1.5.3. Resistor
          • 1.1.5.4. GPIO Extension Board
        • 1.1.6. Code
          • 1.1.6.1. Blink
          • 1.1.6.2. Keyboard_LED
          • 1.1.6.3. Sprite_LED
        • 1.1.7. Freenove Car, Robot and other products for Raspberry Pi
    • 2. Chapter Button and leds
      • 2.1. Project Push Button Switch & LED
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Push Button Switch
        • 2.1.3. Circuit
        • 2.1.4. Code
          • 2.1.4.1. Electronic_Button_LED
          • 2.1.4.2. Floating_Ballon
    • 3. Chapter LED Bar Graph
      • 3.1. Project LED_Bar_Graph
        • 3.1.1. Component List
        • 3.1.2. Component knowledge
          • 3.1.2.1. Bar Graph LED
        • 3.1.3. Circuit
        • 3.1.4. Code
          • 3.1.4.1. LED_Bar_Graph
    • 4. Chapter RGB LED
      • 4.1. Project Multicolored LED
        • 4.1.1. Component List
        • 4.1.2. Circuit
        • 4.1.3. Code
          • 4.1.3.1. RGBLED
          • 4.1.3.2. Keyboard_RGBLED
    • 5. Chapter Two Electronic Button Switch
      • 5.1. Project 05.0_Two_Electronic_Button_LED, 05.1_Squash0 and 5.2_Jump
        • 5.1.1. Components
        • 5.1.2. Circuit
        • 5.1.3. Code
          • 5.1.3.1. Two_Electronic_Button_LED
          • 5.1.3.2. Squash
          • 5.1.3.3. Jump
    • 6. Chapter Buzzer
      • 6.1. Project 06.0_Buzzer
        • 6.1.1. Component knowledge
          • 6.1.1.1. Buzzer
          • 6.1.1.2. Transistors
        • 6.1.2. Circuit
        • 6.1.3. Code
    • 7. Chapter Four button swithches games.
      • 7.1. Project 08.0_Pick_Apple and 08.1_Fish
        • 7.1.1. PicK_Apple
        • 7.1.2. Fish
    • What’s Next?
fnk0022-docs
  • Search