This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __AD8495_H__ | |
#define __AD8495_H__ | |
/* Adjust these values*/ | |
#define VREF 3300 /* Vref input 3.3V */ | |
#define RES_ADC (1<<12) /* ADC resolution 1<<12 stands for 12bit */ | |
/* These values should be ok without tuning */ | |
#define RES_MV 5 /* 5mv / Deg. Celsium */ | |
#define SCALE 100 /* dont use floats, just scale */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Copyright (C) 2012 by Kirik Konstantin <snegovick> | |
import pygst | |
import Image | |
pygst.require("0.10") | |
import gst | |
import sys | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
import gtk | |
import gobject | |
from gtk import gdk | |
except: | |
raise SystemExit | |
import pygtk | |
if gtk.pygtk_version < (2, 0): | |
print "PyGtk 2.0 or later required for this widget" |
NewerOlder