template_program

 
Rev - Jan 20, 2016

Description



Fig 1 - caption

 

Listing


Download this program 
 
/*  +-------------------------------------------------------------------+
    | prog_name.pde           by Jan Zumwalt         rev 2016.01.20     |
    +-------------------------------------------------------------------+
    | Copyright: GNU public license.                                    |
    | Hardware : Olimex PIC32 MICRO                                     |
    | Compiler : Pinguino.cc IDE (V11)                                  |
    | Purpose  : This program does something...                         |
    +-------------------------------------------------------------------+

     --- Olimex PIC32 ARDUINO COMPATIBILITY ---
     GREENLED  = IDE 32, LED1, USERLED, GREENLED
     YELLOWLED = IDE 10, LED2, YELLOWLED
     BUTTON    = IDE 13
*/

  // ---   CONSTANTS  ---
  const BUTTON = 13;  // IDE 13, BUTTON up=1, dn=0

  // ---   VARIABLES  ---
  int j,k = 0;        // counters

  // ---     SETUP    ---
  void setup() {      // setup code, run once
  }

  // --- MAIN PROGRAM ---
  void loop() {       // main code, loops forever
  }
  
  void interrupt() {  // handle interrupts
  }  
  
  void doIt() {       // user defined function
  }