Herunterladen Inhalt Inhalt Diese Seite drucken

Code Erklärung - SunFounder Da Vinci Kit Bedienungsanleitung

Für den raspberry pi 4 modell b, 3 modell a +, 3 modell b +, 3 modell b, 2 modell b, 1 modell b +, 1 modell a +, zero w and zero
Inhaltsverzeichnis

Werbung

Code
Der Programmkode wird wie folgt angezeigt:
#include
<wiringPi.h>
#include
<stdio.h>
#define LedPin
int
main(void)
{
// When initialize wiring failed, print message to screen
if(wiringPiSetup()
printf("setup wiringPi failed
return
1;
}
pinMode(LedPin,
while(1){
// LED on
digitalWrite(LedPin, LOW);
printf("...LED
delay(500);
// LED off
digitalWrite(LedPin, HIGH);
printf("LED
off...\n");
delay(500);
}
0;
return
}
Code Erklärung
1.7. 1 Ausgabe
0
==
-1){
!");
OUTPUT);// Set LedPin as output to write value to it.
on\n");
SunFounder Da Vinci Kit
33

Werbung

Inhaltsverzeichnis
loading

Verwandte Produkte für SunFounder Da Vinci Kit

Diese Anleitung auch für:

Davinci-kit-for-raspberry-pi

Inhaltsverzeichnis