Skip to content
Browse files

update & upgrade

  • Loading branch information...
1 parent cf3f839 commit 6400a2bdeb135aac1988975778015f0a8793f8ff @kiilo committed Sep 19, 2012
Showing with 14 additions and 4 deletions.
  1. +9 −1 README.md
  2. +5 −3 morseAtiny03/morseAtiny03.ino
View
10 README.md
@@ -1,4 +1,12 @@
MorseAttack
===========
-ATtiny morse nodes ~ code and circuit
+ATtiny morse nodes ~ code and circuit
+
+links
+=====
+
+see project development website
+* http://wiki.sgmk-ssam.ch/index.php/SGMKmorseAttack
+* http://wiki.sgmk-ssam.ch/index.php/SGMKtiny
+
View
8 morseAtiny03/morseAtiny03.ino
@@ -44,8 +44,10 @@
int morseInPin = 1;
int morseOutPin = 0;
-char inBuff[] = "hello world hello --";
-char outBuff[] = "hello world hello / ";
+ // 1 2
+ //0123456789012345678901234
+char inBuff[25] = {0};
+char outBuff[25] = {0};
byte inPtr = 0;
byte outPtr = 0;
@@ -80,7 +82,7 @@ void loop()
if (((long)millis() - (long)NextUpdate) > 0) // if current millis() time minus nestupdate time is bigger then 0
{
NextUpdate = millis() + 120000; // nest update in 120 000 milliseconds from now
- outBuff[0] = 'hello world hello yo/'; // a NEW message
+ strcpy(outBuff, "hello world hello yo/////"); // a NEW message
outPtr = 0; // outPtr reset to 0
Sending = true; // ready to send
}

0 comments on commit 6400a2b

Please sign in to comment.
Something went wrong with that request. Please try again.