A Pen by Anand Chowdhary on CodePen.
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
#define analogInPin 0 | |
const float Pi = 3.141592; | |
char sensorValue[480]; | |
char outputValue[480]; | |
int number,frameCurrent; | |
int pos0value, pos90value; | |
void setup() { | |
Serial.begin(38400); | |
for(int n=0;n<480;n++){ | |
outputValue[n]=(char)127*sin((float)2*Pi*n/48)+127; |
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
int potentiometerPin = A0; | |
int sensorPin1 = 3; | |
int sensorPin2 = 2; | |
long potentiometerValue = 0; | |
int sensor1Value = 0; | |
int sensor2Value = 0; | |
volatile long position; | |
void setup() { | |
// Set up internal pull up resistor for pin |
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 <CapacitiveSensor.h> | |
CapacitiveSensor c = CapacitiveSensor(13, 12); | |
float observedRightValue = 1750.0; | |
float observedLeftValue= 5000.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
<?php | |
function hideEmail($email) { | |
$email = explode("@", $email); | |
$name = $email[0]; | |
if (strlen($name) > 3) { | |
$name = substr($name, 0, 2); | |
for ($i = 0; $i < strlen($email[0]) - 3; $i++) { | |
$name .= "*"; | |
} |
NewerOlder