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
text_file = open("Output.txt", "w") | |
text_file.write("101010") | |
text_file.close() |
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
const int ProxSensor = 2; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(13, OUTPUT); | |
pinMode(ProxSensor,INPUT); | |
Serial.begin(9600); | |
} | |
void loop() { |
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
const int ProxSensor = 2; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(13, OUTPUT); | |
pinMode(ProxSensor,INPUT); | |
Serial.begin(9600); | |
} | |
void loop() { |
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
//const int ProxSensor = 2; | |
void setup() { | |
// put your setup code here, to run once: | |
//pinMode(13, OUTPUT); | |
//pinMode(ProxSensor,INPUT); | |
Serial.begin(9600); | |
} | |
void loop() { |
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
//http://www.martyncurrey.com/arduino-and-hc-06-zs-040/ | |
#include <SoftwareSerial.h> | |
SoftwareSerial BTserial(10,11); // RX | TX | |
void setup() | |
{ | |
Serial.begin(9600); | |
Serial.println("Enter AT commands:"); |
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 <SoftwareSerial.h> | |
SoftwareSerial BTserial(10,11); // RX | TX | |
int sensorPin = A3; | |
int sensorValue = 0; | |
void setup() | |
{ | |
Serial.begin(9600); |
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
Move folders: | |
mv -t <destination> <src1> <src2> .... <srnN> | |
Move files: | |
mv file1 file2 file3 -t DESTINATION |
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
cp -a /source/. /dest/ |
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
//To process string in android: | |
//We can take substrings by indicating indexes until specific separator | |
String filename_only = sourceDirectory.substring(sourceDirectory.lastIndexOf("/")+1, sourceDirectory.length()); |
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 | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import scipy.io.wavfile as wavfile | |
import scipy | |
import scipy.fftpack | |
import numpy as np | |
from matplotlib import pyplot as plt |