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
/* | |
* V4L2 video capture example | |
* | |
* This program can be used and distributed without restrictions. | |
* | |
* This program is provided with the V4L2 API | |
* see http://linuxtv.org/docs.php for more information | |
*/ | |
#include <stdio.h> |
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
/* | |
* V4L2 video capture example | |
* | |
* This program can be used and distributed without restrictions. | |
* | |
* This program is provided with the V4L2 API | |
* see http://linuxtv.org/docs.php for more information | |
*/ | |
#include <stdio.h> |
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
#include <linux/platform_device.h> | |
#include <linux/of_device.h> | |
#include <linux/of_gpio.h> | |
#include <linux/spi/spi.h> | |
#include <linux/module.h> | |
#include <linux/delay.h> | |
#include <linux/clk.h> | |
#include <linux/io.h> | |
#include <linux/of.h> |
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
local sutil = {} | |
function sutil.getchar(ttyfile) | |
return ttyfile:read(1) | |
end | |
function sutil.readall_timeout(ttyfile, n, time) | |
local data = "" | |
local ret = true | |
local ctr = 0 |
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
grep ^X $1 | sed -e "s/X//" | sed -e "s/Y/, /" | awk '{printf "%s, %s, 0.0, t\n",NR,$0}' > $1.ascii |
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
pandoc --latex-engine=pdflatex -V lang=russian -f markdown $1 -o $2 |
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
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" |
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) 2014 by Kirik Konstantin <snegovick> | |
try: | |
import gtk | |
import gobject | |
from gtk import gdk | |
except: | |
raise SystemExit |
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 | |
""" | |
This module sets up a video stream from internal or connected webcam using Gstreamer. | |
You can then take snapshots. | |
""" | |
import pygtk, gtk | |
import pygst | |
pygst.require("0.10") |
NewerOlder