This file contains hidden or 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<stdio.h> | |
#include <unistd.h> | |
int main(int argc, char* argv[]) | |
{ | |
if(argc!=3){ | |
printf("Syntax: %s <no_of_times_to_blink> <delay_us>\n",argv[0]); | |
return 0; | |
} | |
int delay=atoi(argv[2]); |
This file contains hidden or 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
value=$(cat /sys/bus/iio/devices/iio:device0/in_voltage0_raw) | |
value=$(echo $value*0.0004394 | bc) | |
echo "$value V" |
This file contains hidden or 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<highgui.h> | |
#include<cv.h> | |
using namespace cv; | |
int main() | |
{ | |
Mat A,B; | |
A=imread("boy.jpg"); //Read the image file | |
namedWindow("Boy", CV_WINDOW_AUTOSIZE ); //Create a new window to show the image. Name the window as "boy" |
This file contains hidden or 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
int RED_LED = 12; | |
int BLUE_LED = 13; | |
int GREEN_LED = 14; | |
void setup() { | |
// Initialisation | |
pinMode(RED_LED,OUTPUT); | |
pinMode(BLUE_LED,OUTPUT); | |
pinMode(GREEN_LED,OUTPUT); |
OlderNewer