Raspberry Pi lights up an LED.

Source: Internet
Author: User

1. Visit the website: http://www.airspayce.com/mikem/bcm2835/, the website provides a library file for the Raspberry Pi: Click to download click to download. Follow the prompts to install.

2. In the example folder in bcm2835-1.4.2, which is the history file, open the Bink folder, and use Gcc-o blink blink-l bcm2835 to generate blink execution files.

3. In the Blink.c file, prompt to control the pin17 pin, that is, the green GPIO0 in the figure, connect the positive pole of the LED lamp, the LED lamp negative to the Raspberry Pi 0v.


4. In the current Blink window, call sudo./bink, after execution, the light starts flashing

Raspberry Pi lights up an LED.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.