/****************************************************************************************
 * Notice:  When compiling, be sure to use the flags -lX11, -lpthread and of course,    *
 *          be sure the DLP-2232PB-G is plugged into a USB port. I use:                 *
 *                                                                                      *
 *          cc -Wall -lX11 -lpthread -o mavica mavica.c                                 *
 *                                                                                      *
 *          Pin 5 (AN1) of the DLP-2232PB-G is being used for the input.  Remember, its *
 *          input impedance is quite low and a preamp may be necessary.                 *
 *                                                                                      *
 *          Edit main() to try the various capabilities.                                *
 *          The thermometer routines need a pull-up resistor.  See ds18s20 spec sheet.  *
 *                                                                                      *
 *          Study the 16F877A port specs carefully.  Different pins/ports have varied   *
 *          capabilities - Schmidtt trigger, open-collector, TTL                        *
 *                                                                                      *
 *          Written by Craig Van Degrift <craig@yosemitefoothills.com>                  *
 *                     http://yosemitefoothills.com                                     *
 *                                                                                      *
 *          This demo code is only a best effort.  Use at your own risk.                *
 *          Uncomment the function calls in main() to try the different capabilities.   *
 *                                                                                      *
 *          Consider this code a framework which will need considerable modification    *
 *          to meet the needs of a particular measurement task.                         *
 *                                                                                      *
 ****************************************************************************************/

#include "core.h"
const char* device="/dev/ttyUSB3";
const char* dlpId="DLP-M0";
#include "dlp2232pbg.h"
//#include "scope.h"
//#include "thermometers.h"
#include "mavica.h"



int main(int argc, char** argv) {
  mavica(argc, argv);
  return 0;
}

