to repeat the functioning LED program but write a c program to accomplish this
raspberry pie,monitor, keyboard, data cable, hdmi to usb cable, network cable
The Raspberry Pi is a credit-card-sized single-board computer developed in the UK by the Raspberry Pi Foundation with the intention of promoting the teaching of basic computer science in schools.[7][8][9][10][11]
The Raspberry Pi is manufactured through licensed manufacturing deals with Newark element14 (Premier Farnell), RS Components and Egoman. All of these companies sell the Raspberry Pi online.[12] Egoman produces a version for distribution solely in China and Taiwan, which can be distinguished from other Pis by their red coloring and lack of FCC/CE marks. The hardware is the same across all manufacturers.
#include "rpi.h" int main() { if(map_peripheral(&gpio) == -1) { printf("Failed to map the physical GPIO registers into the virtual memory space.\n"); return -1; } // Define pin 7 as output INP_GPIO(7); OUT_GPIO(7); while(1) { // Toggle pin 7 (blink a led!) GPIO_SET = 1 << 7; sleep(1); GPIO_CLR = 1 << 7; sleep(1); } return 0; }
I am enjoying using the raspberry pi and seeing the possibilities that can be done wiith it