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
clear all; | |
close all; | |
clc; | |
%% initalize camera | |
vidDevice = imaq.VideoDevice('winvideo', 1, 'YUY2_320x240', ... % Acquire input video stream | |
'ROI', [1 1 320 240], ... | |
'ReturnedColorSpace', 'rgb'); |
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
clear all; | |
close all; | |
clc; | |
%% initalize camera | |
vidDevice = imaq.VideoDevice('winvideo', 1, 'YUY2_320x240', ... % Acquire input video stream | |
'ROI', [1 1 320 240], ... | |
'ReturnedColorSpace', 'rgb'); |
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 <16F877a.h> | |
#fuses HS,NOWDT,NOPROTECT,NOLVP | |
#use delay(clock=20000000) | |
#define init_segments() set_tris_c(0x00); | |
unsigned char seg_code[]= | |
{192,249,164,176,153,146,130,248,128,144};//a=pin0,g=pin6,dp=pin7 |
NewerOlder