changeset 4:be9d7693aaf6

Add gerbers for the non-panelized board
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Wed, 02 Dec 2015 21:59:52 +0100
parents 52938b0e680e
children 0c66e108ea9a
files alternate/alternate.ino single.fzz single.zip
diffstat 3 files changed, 33 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- a/alternate/alternate.ino	Mon Nov 09 23:11:15 2015 +0100
+++ b/alternate/alternate.ino	Wed Dec 02 21:59:52 2015 +0100
@@ -2,27 +2,27 @@
 
 
 const int FREQ[] = {
-    REST, NOTE_AS4, NOTE_AS5, NOTE_B4, NOTE_B5, NOTE_CS5, NOTE_CS6, NOTE_D5,
-    NOTE_DS4, NOTE_DS5, NOTE_DS6, NOTE_E4, NOTE_E5, NOTE_E6, NOTE_FS4,
-    NOTE_FS5, NOTE_GS4, NOTE_GS5,
+  REST, NOTE_AS4, NOTE_AS5, NOTE_B4, NOTE_B5, NOTE_CS5, NOTE_CS6, NOTE_D5,
+  NOTE_DS4, NOTE_DS5, NOTE_DS6, NOTE_E4, NOTE_E5, NOTE_E6, NOTE_FS4,
+  NOTE_FS5, NOTE_GS4, NOTE_GS5,
 };
 
 const signed char INTRO_NOTES[] PROGMEM = {
-9, 12, -15, -4, 9, 12, 15, 4, 6, 10, 6, 2, -4, -15, 9, 12, -15, -4, 6, 2,
-4, 6, 13, 10, 13, 4, 0
+  9, 12, -15, -4, 9, 12, 15, 4, 6, 10, 6, 2, -4, -15, 9, 12, -15, -4, 6, 2,
+  4, 6, 13, 10, 13, 4, 0
 };
 
 const signed char MELODY_NOTES[] PROGMEM = {
--15, -17, 9, 9, 0, 3, 7, 5, 3, 0, -3, -5, -7, 7, 5, 3, 5, 9, 15, 17, 9, 15, 5,
-9, 3, 5, 3, -9, -15, 17, 9, 15, 5, 9, 3, 7, 9, 7, 5, 3, 5, -7, 3, 5, 9, 15, 5,
-9, 5, 3, -5, -3, -5, -15, -17, 9, 9, 0, 3, 7, 5, 3, 0, -3, -5, -7, 7, 5, 3, 5,
-9, 15, 17, 9, 15, 5, 9, 3, 5, 3, -9, -15, 17, 9, 15, 5, 9, 3, 7, 9, 7, 5, 3, 5,
--7, 3, 5, 9, 15, 5, 9, 5, 3, -5, -3, -5, -3, 14, 16, -3, 14, 16, 3, 5, 9, 3,
-12, 9, 12, 15, -3, -3, 14, 16, 3, 14, 12, 9, 5, 3, 14, 8, 11, 14, -3, 14, 16,
--3, 14, 16, 3, 3, 5, 9, 3, 14, 16, 14, -3, 3, 1, 3, 14, 16, 11, 12, 9, 12, 15,
--3, -1, -3, 14, 16, -3, 14, 16, 3, 5, 9, 3, 12, 9, 12, 15, -3, -3, 14, 16, 3,
-14, 12, 9, 5, 3, 14, 8, 11, 14, -3, 14, 16, -3, 14, 16, 3, 3, 5, 9, 3, 14, 16,
-14, -3, 3, 1, 3, 14, 16, 3, 12, 9, 12, 15, -3, -5
+  -15, -17, 9, 9, 0, 3, 7, 5, 3, 0, -3, -5, -7, 7, 5, 3, 5, 9, 15, 17, 9, 15, 5,
+  9, 3, 5, 3, -9, -15, 17, 9, 15, 5, 9, 3, 7, 9, 7, 5, 3, 5, -7, 3, 5, 9, 15, 5,
+  9, 5, 3, -5, -3, -5, -15, -17, 9, 9, 0, 3, 7, 5, 3, 0, -3, -5, -7, 7, 5, 3, 5,
+  9, 15, 17, 9, 15, 5, 9, 3, 5, 3, -9, -15, 17, 9, 15, 5, 9, 3, 7, 9, 7, 5, 3, 5,
+  -7, 3, 5, 9, 15, 5, 9, 5, 3, -5, -3, -5, -3, 14, 16, -3, 14, 16, 3, 5, 9, 3,
+  12, 9, 12, 15, -3, -3, 14, 16, 3, 14, 12, 9, 5, 3, 14, 8, 11, 14, -3, 14, 16,
+  -3, 14, 16, 3, 3, 5, 9, 3, 14, 16, 14, -3, 3, 1, 3, 14, 16, 11, 12, 9, 12, 15,
+  -3, -1, -3, 14, 16, -3, 14, 16, 3, 5, 9, 3, 12, 9, 12, 15, -3, -3, 14, 16, 3,
+  14, 12, 9, 5, 3, 14, 8, 11, 14, -3, 14, 16, -3, 14, 16, 3, 3, 5, 9, 3, 14, 16,
+  14, -3, 3, 1, 3, 14, 16, 3, 12, 9, 12, 15, -3, -5
 };
 
 #define BEEP_PIN 4
@@ -31,36 +31,36 @@
 
 
 void toggle_eyes() {
-    static bool blink = false;
+  static bool blink = false;
 
-    digitalWrite(LED_PIN, blink);
-    blink = !blink;
+  digitalWrite(LED_PIN, blink);
+  blink = !blink;
 }
 
 
 void play(const signed char *notes, const unsigned int length) {
-    for (unsigned int n = 0; n < length; n++) {
-        signed char f = pgm_read_byte_near(notes + n);
-        int d;
-        if (f < 0) {
-            d = SPEED / 8;
-            f = -f;
-        } else {
-            d = SPEED / 16;
-        }
-        tone(BEEP_PIN, FREQ[f], d);
-        delay(1.3 * d);
-        noTone(BEEP_PIN);
-        toggle_eyes();
+  for (unsigned int n = 0; n < length; n++) {
+    signed char f = pgm_read_byte_near(notes + n);
+    int d;
+    if (f < 0) {
+      d = SPEED / 8;
+      f = -f;
+    } else {
+      d = SPEED / 16;
     }
+    tone(BEEP_PIN, FREQ[f], d);
+    delay(1.3 * d);
+    noTone(BEEP_PIN);
+    toggle_eyes();
+  }
 }
 
 
 void setup() {
-    play(INTRO_NOTES, 26);
+  play(INTRO_NOTES, 26);
 }
 
 
 void loop() {
-    play(MELODY_NOTES, 216);
+  play(MELODY_NOTES, 216);
 }
Binary file single.fzz has changed
Binary file single.zip has changed