Friday, February 19, 2016

Essentials of programming in C

Essential C

Bash Command Line Cheat Sheet

https://www.dropbox.com/s/11acwy569uqxoxy/BashCommandLine.pdf?dl=0

vI-vim-gvim cheat sheet


Intro to GPIO wiring - LED On program



LED ON program - a practice exercise using WiringPi and GPIO pins

// ELEC 494 Mechx     DK      LED GPIO Intro
//Program: LEDgpio1.c
#include <stdio.h>
#include <wiringPi.h>
// Need wiringPi.h  include file for specific instructions for GPIO
int
main(
){
    int i;
    wiringPiSetup(); // Sets up the I/O pins and instructions for wiringPi
    // Attach my LED and its resistor (diagram is provided
    // in your Fritzing wiring Diagram
     
    //Use GPIO 0 pin 11 to turn on and off LED
    // Set up my GPIO connector pin 11 to be an OUTPUT
    pinMode(0,OUTPUT);
     
    digitalWrite(0,HIGH); //Turn ON GPIO to 3.3V  or HIGH voltage
    for(i=1;i<1000; ++i)
    {
        //waiting or delay function
    }
    digitalWrite(0,LOW); // Turn OFF LED
    delay(2000); // delay 2000 ms
    digitalWrite(0,HIGH);
    delay(5000); // delay by 5000 ms
    digitalWrite(0,LOW);
    printf("\n\n I'm done! All pau! \n\n");
}

Bash and howzit1.c Program on Pi video



 

 

Raspberry Pi 2B J8 40 Pin header pin configuration


Configuring the MAC for VNC with Raspberry Pi

https://www.dropbox.com/s/e8a3ka615xox9zw/vnc%20on%20mac.pdf?dl=0

Configuring Raspberry Pi to run VNC - Windows Machines

https://www.dropbox.com/s/767bmr16p809j5b/Configuring%20Windows%207%20to%20connect%20to%20a%20USD%20raspberry%20pi%20through%20VNC.pdf?dl=0