Moved whole Arduino sketchbook to GIT (nothing interesting :-)
[mirrors/Programs.git] / arduino / IR_Jammer / IR_Jammer.pde
old mode 100644 (file)
new mode 100755 (executable)
similarity index 94%
rename from arduino/IR_Jammer.pde
rename to arduino/IR_Jammer/IR_Jammer.pde
index ad96955..dab2732
@@ -15,7 +15,8 @@
 #define ledpin 13
 //Maybe you will have to experiment also with this value
 int bitlen = 5;
-int d, i;
+int d;
+float i;
 
 void setup() {
   pinMode(ledpin, OUTPUT);
@@ -25,7 +26,7 @@ void loop() {
   for(d=1000/100;d<=1000/20;d++) { // 1000/frequency in kHz
   //You maybe have to experiment with ^^^ this ^^^ values
   //Frequency sweeping: 100->20 kHz works, i saw 60->1 too
-    for(i=0;i<bitlen;i++) {
+    for(i=0;i<bitlen;i+=0.5) {
       digitalWrite(ledpin, HIGH); delayMicroseconds(d/2);
       digitalWrite(ledpin, LOW ); delayMicroseconds(d/2);
     }
This page took 0.141033 seconds and 4 git commands to generate.