Blinks RPi GPIO pin 11 on and off
#include <bcm2835.h>
#include <stdio.h>
#define PIN RPI_GPIO_P1_11
int main(int argc, char **argv)
{
return 1;
while (1)
{
}
return 0;
}
#define HIGH
Definition: bcm2835.h:685
#define LOW
Definition: bcm2835.h:687
@ BCM2835_GPIO_FSEL_OUTP
Definition: bcm2835.h:889
void bcm2835_gpio_write(uint8_t pin, uint8_t on)
Definition: bcm2835.c:590
void bcm2835_delay(unsigned int millis)
Definition: bcm2835.c:539
void bcm2835_gpio_fsel(uint8_t pin, uint8_t mode)
Definition: bcm2835.c:302
int bcm2835_close(void)
Definition: bcm2835.c:2163
int bcm2835_init(void)
Definition: bcm2835.c:2008