Browse Source

Removed wrong copyright notices.

Thomas Buck 11 years ago
parent
commit
4961757466
55 changed files with 1616 additions and 1985 deletions
  1. 1
    3
      AudioFirmware/adc.c
  2. 1
    3
      AudioFirmware/adc.h
  3. 2
    4
      AudioFirmware/eq.c
  4. 1
    3
      AudioFirmware/eq.h
  5. 1
    3
      AudioFirmware/main.c
  6. 40
    40
      AudioFirmware/main.hex
  7. 1
    3
      AudioFirmware/twislave.c
  8. 1
    3
      AudioFirmware/twislave.h
  9. 1
    5
      CubeControl/AFrame.java
  10. 1
    5
      CubeControl/Animation.java
  11. 1
    5
      CubeControl/AnimationUtility.java
  12. 3
    3
      CubeControl/Frame.java
  13. 1
    5
      CubeControl/HelperUtility.java
  14. 2
    4
      CubeControl/Led3D.java
  15. 1
    5
      CubeControl/cubeWorker.java
  16. 1
    5
      CubeControl/layerEditFrame.java
  17. 2
    4
      CubeControl/libSerial/serialHelper.c
  18. 1
    3
      CubeControl/libSerial/unixSerial.c
  19. 1
    3
      CubeControl/libSerial/winSerial.c
  20. 2
    3
      CubeFirmware/animations.c
  21. 1
    3
      CubeFirmware/audio.c
  22. 3
    3
      CubeFirmware/buffhelp.c
  23. 1
    3
      CubeFirmware/cube.c
  24. 1
    3
      CubeFirmware/header/animations.h
  25. 1
    3
      CubeFirmware/header/audio.h
  26. 1
    3
      CubeFirmware/header/buffhelp.h
  27. 1
    3
      CubeFirmware/header/cube.h
  28. 1
    3
      CubeFirmware/header/mem.h
  29. 1
    3
      CubeFirmware/header/memLayer.h
  30. 5
    5
      CubeFirmware/header/serial.h
  31. 1
    3
      CubeFirmware/header/strings.h
  32. 1
    3
      CubeFirmware/header/time.h
  33. 1
    3
      CubeFirmware/header/transmit.h
  34. 1
    3
      CubeFirmware/header/visualizer.h
  35. 3
    3
      CubeFirmware/main.c
  36. 1289
    1285
      CubeFirmware/main.hex
  37. 1
    3
      CubeFirmware/mem.c
  38. 1
    3
      CubeFirmware/memLayer.c
  39. 5
    5
      CubeFirmware/serial.c
  40. 1
    3
      CubeFirmware/snake.c
  41. 1
    3
      CubeFirmware/strings.c
  42. 1
    3
      CubeFirmware/time.c
  43. 1
    3
      CubeFirmware/transmit.c
  44. 40
    16
      CubeFirmware/visualizer.c
  45. 19
    0
      HardwareEmulator/main.c
  46. 19
    0
      HardwareEmulator/mem.c
  47. 19
    0
      HardwareEmulator/mem.h
  48. 19
    0
      HardwareEmulator/serial.c
  49. 19
    0
      HardwareEmulator/serial.h
  50. 10
    10
      README.md
  51. 22
    0
      UploadTest/main.c
  52. 19
    0
      UploadTest/serial.c
  53. 19
    0
      UploadTest/serial.h
  54. 23
    0
      lookUp.c
  55. 0
    492
      showoff.cube

+ 1
- 3
AudioFirmware/adc.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * adc.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
AudioFirmware/adc.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * adc.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 2
- 4
AudioFirmware/eq.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * eq.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *
@@ -77,7 +75,7 @@ uint8_t *equalizerGet(void) {
77 75
 
78 76
 	filterNoise(result); // Filter lower values
79 77
 	heightenTreble(result); // Heighten higher frequencies, cause they seem damped
80
-	calcMultiplicator(result); // Multiply with Poti Position
78
+	// calcMultiplicator(result); // Multiply with Poti Position
81 79
 	filterNoise(result); // Filter lower values
82 80
 
83 81
 	return result;

+ 1
- 3
AudioFirmware/eq.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * eq.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
AudioFirmware/main.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * main.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 40
- 40
AudioFirmware/main.hex View File

@@ -1,53 +1,53 @@
1 1
 :1000000012C02CC02BC02AC029C028C027C026C0BF
2 2
 :1000100025C024C023C022C021C020C01FC01EC0D4
3
-:100020001DC0E9C01BC011241FBECFE5D4E0DEBF58
4
-:10003000CDBF10E0A0E6B0E0ECE2F3E002C0059036
3
+:100020001DC0E6C01BC011241FBECFE5D4E0DEBF5B
4
+:10003000CDBF10E0A0E6B0E0E6E2F3E002C005903C
5 5
 :100040000D92AE36B107D9F710E0AEE6B0E001C0D0
6
-:100050001D92A037B107E1F702D066C1D1CFCF938F
6
+:100050001D92A037B107E1F702D063C1D1CFCF9392
7 7
 :1000600014BE88E10FB6F89481BD11BC0FBE86E0C6
8
-:1000700087BB8CE084BB11BA82E411D12ED03DD075
8
+:1000700087BB8CE084BB11BA82E40ED12ED03DD078
9 9
 :1000800078942DE088E190E00FB6F894A89581BDB2
10
-:100090000FBE21BD80E690E00BD1C4E017D18823CC
11
-:1000A00029F088B38C2788BB76D002D1A895F6CFEB
10
+:100090000FBE21BD80E690E008D1C4E014D18823D2
11
+:1000A00029F088B38C2788BB4CD0FFD0A895F6CF19
12 12
 :1000B00097B1907F97B997B18F70892B87B9369A8E
13 13
 :1000C000089581E0369980E00895FBDF8823E9F305
14 14
 :1000D000369824B135B1C901089517B83E9A86B152
15 15
 :1000E000856086B9379A80E0E3DFEFDF0895EDDFC2
16 16
 :1000F00096958795969587950895AB9AAA980895B1
17 17
 :10010000FC0195818AE0989FC00111246FE070E0A6
18
-:10011000F8D066830895CF93E82FF92F40E0CAE026
18
+:10011000F5D066830895CF93E82FF92F40E0CAE029
19 19
 :100120002FE030E080818C3330F48C9FC0011124AB
20
-:10013000B901E7D060834F5F3196473099F7CF918F
21
-:10014000089581E0B5DFD3DF08951F93CF93DF9348
22
-:10015000D82FC92FF6DF90E08C599F4F6AE070E0EE
23
-:10016000BCD09B01CE01E92FF82F10E0CAE0D0E00F
24
-:10017000408150E0249FC001259F900D349F900D39
25
-:100180001124BE01AAD061931F5F173089F7DF9158
26
-:10019000CF911F910895CF93DF93AB988FE191E0BA
27
-:1001A0000197F1F700C00000C0E6D0E0AA9A95E6FA
28
-:1001B0009A95F1F70000AA9880EC8A95F1F780E013
29
-:1001C00077DF95DF899390E0C736D90779F7AB9A47
30
-:1001D00000000000CE0107979EDFCE01079790DF59
31
-:1001E000CE010797B2DFCE01079795DFCE010797C3
32
-:1001F000DF91CF9108951F920F920FB60F921124A5
33
-:100200008F939F93EF93FF9381B190E0887F883B1A
34
-:100210009105C1F0893B91053CF4883A910559F06C
35
-:10022000803B910581F507C0803C910531F1883C08
36
-:10023000910549F522C081E080936F0080916700AD
37
-:1002400083B915C080916F00863040F010926F0026
38
-:1002500080916D0083B986B78F7B11C0E82FF0E0E5
39
-:10026000E959FF4F908193B98F5F80936F0086B7F4
40
-:10027000806486BF10926E0006C086B7806486BF19
41
-:1002800081E080936E0086B7806886BFFF91EF9112
42
-:100290009F918F910F900FBE0F901F9018958823FC
43
-:1002A00011F481E001C08E7F82B985E486BF089594
44
-:1002B000282F392FD901E7E6F0E08D91819380E076
45
-:1002C000EE36F807D1F710926E00089581E0909114
46
-:1002D0006E00992309F480E00895AA1BBB1B51E12D
47
-:1002E00007C0AA1FBB1FA617B70710F0A61BB70BA6
48
-:1002F000881F991F5A95A9F780959095BC01CD014B
49
-:10030000089597FB092E07260AD077FD04D0E5DF74
50
-:1003100006D000201AF4709561957F4F0895F6F786
51
-:0C032000909581959F4F0895F894FFCFB1
52
-:0E032C00808080808080804242424242424275
20
+:10013000B901E4D060834F5F3196473099F7CF9192
21
+:100140000895CF93DF93AB988FE191E00197F1F79A
22
+:1001500000C00000C0E6D0E0AA9A95E69A95F1F7B3
23
+:100160000000AA9880EC8A95F1F780E0A1DFBFDF5C
24
+:10017000899390E0C736D90779F7AB9A0000000061
25
+:10018000CE010797C8DFCE010797BADFCE010797E8
26
+:10019000C2DFCE010797DF91CF91089581E088DF1C
27
+:1001A000A6DF08951F93CF93DF93D82FC92FF6DFD3
28
+:1001B00090E08C599F4F6AE070E08CD09B01CE019B
29
+:1001C000E92FF82F10E0CAE0D0E0408150E0249FF2
30
+:1001D000C001259F900D349F900D1124BE017AD04F
31
+:1001E00061931F5F173089F7DF91CF911F910895B9
32
+:1001F0001F920F920FB60F9211248F939F93EF933C
33
+:10020000FF9381B190E0887F883B9105C1F0893BE5
34
+:1002100091053CF4883A910559F0803B910581F5B0
35
+:1002200007C0803C910531F1883C910549F522C019
36
+:1002300081E080936F008091670083B915C0809141
37
+:100240006F00863040F010926F0080916D0083B98E
38
+:1002500086B78F7B11C0E82FF0E0E959FF4F9081FE
39
+:1002600093B98F5F80936F0086B7806486BF1092CA
40
+:100270006E0006C086B7806486BF81E080936E0002
41
+:1002800086B7806886BFFF91EF919F918F910F9005
42
+:100290000FBE0F901F901895882311F481E001C0C4
43
+:1002A0008E7F82B985E486BF0895282F392FD90122
44
+:1002B000E7E6F0E08D91819380E0EE36F807D1F724
45
+:1002C00010926E00089581E090916E00992309F4D8
46
+:1002D00080E00895AA1BBB1B51E107C0AA1FBB1FEA
47
+:1002E000A617B70710F0A61BB70B881F991F5A95C2
48
+:1002F000A9F780959095BC01CD01089597FB092E33
49
+:1003000007260AD077FD04D0E5DF06D000201AF4D6
50
+:10031000709561957F4F0895F6F7909581959F4F61
51
+:060320000895F894FFCFE0
52
+:0E03260080808080808080424242424242427B
53 53
 :00000001FF

+ 1
- 3
AudioFirmware/twislave.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * twislave.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
AudioFirmware/twislave.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * twislave.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 5
CubeControl/AFrame.java View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * AFrame.java
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *
@@ -27,8 +25,6 @@ import java.util.Arrays;
27 25
  * given time.
28 26
  * 
29 27
  * @author Thomas Buck
30
- * @author Max Nuding
31
- * @author Felix Bäder
32 28
  * @version 1.0
33 29
  */
34 30
 

+ 1
- 5
CubeControl/Animation.java View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * Animation.java
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *
@@ -28,8 +26,6 @@ import java.util.Collections;
28 26
  * A collection of frames that represent an entire animation.
29 27
  * 
30 28
  * @author Thomas Buck
31
- * @author Max Nuding
32
- * @author Felix Bäder
33 29
  * @version 1.0
34 30
  */
35 31
 

+ 1
- 5
CubeControl/AnimationUtility.java View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * AnimationUtility.java
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *
@@ -31,8 +29,6 @@ import java.util.List;
31 29
  * A helper class that loads animations from a file or saves them to one.
32 30
  * 
33 31
  * @author Thomas Buck
34
- * @author Max Nuding
35
- * @author Felix Bäder
36 32
  * @version 1.0
37 33
  */
38 34
 

+ 3
- 3
CubeControl/Frame.java View File

@@ -2,9 +2,9 @@
2 2
  * Frame.java
3 3
  *
4 4
  *
5
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
6
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
7
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
5
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
6
+ * Copyright 2012 Max Nuding <max.nuding@gmail.com>
7
+ * Copyright 2012 Felix Bäder <baeder.felix@gmail.com>
8 8
  *
9 9
  * This file is part of LED-Cube.
10 10
  *

+ 1
- 5
CubeControl/HelperUtility.java View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * HelperUtility.java
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *
@@ -24,8 +22,6 @@
24 22
 /**
25 23
  * Helper class which runs our native library, which is loaded from inside the Jar.
26 24
  * @author Thomas Buck
27
- * @author Max Nuding
28
- * @author Felix Bäder
29 25
  * @version 1.0
30 26
  */
31 27
 import java.io.*;

+ 2
- 4
CubeControl/Led3D.java View File

@@ -2,9 +2,8 @@
2 2
  * Led3D.java
3 3
  *
4 4
  *
5
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
6
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
7
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
5
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
6
+ * Copyright 2012 Max Nuding <max.nuding@gmail.com>
8 7
  *
9 8
  * This file is part of LED-Cube.
10 9
  *
@@ -35,7 +34,6 @@ import java.awt.event.*;
35 34
  * 
36 35
  * @author Thomas Buck
37 36
  * @author Max Nuding
38
- * @author Felix Bäder
39 37
  * @version 1.0
40 38
  */
41 39
 public class Led3D extends MouseAdapter {

+ 1
- 5
CubeControl/cubeWorker.java View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * cubeWorker.java
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *
@@ -36,8 +34,6 @@ import java.util.Collections;
36 34
  * in/from a file.
37 35
  * 
38 36
  * @author Thomas Buck
39
- * @author Felix Bäder
40
- * @author Max Nuding
41 37
  * @version 1.0
42 38
  */
43 39
 

+ 1
- 5
CubeControl/layerEditFrame.java View File

@@ -2,9 +2,7 @@
2 2
  * layerEditFrame.java
3 3
  *
4 4
  *
5
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
6
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
7
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
5
+ * Copyright 2012 Max Nuding <max.nuding@gmail.com>
8 6
  *
9 7
  * This file is part of LED-Cube.
10 8
  *
@@ -30,8 +28,6 @@ import javax.swing.event.*;
30 28
  * Shows a windows that allows the user to toggle the state of 64 LEDs.
31 29
  * 
32 30
  * @author Max Nuding
33
- * @author Thomas Buck
34
- * @author Felix Bäder
35 31
  * @version 1.0
36 32
  */
37 33
 

+ 2
- 4
CubeControl/libSerial/serialHelper.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2
- * unixHelper.c
2
+ * serialHelper.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeControl/libSerial/unixSerial.c View File

@@ -5,9 +5,7 @@
5 5
  * POSIX compatible serial port library
6 6
  * Uses 8 databits, no parity, 1 stop bit, no handshaking
7 7
  *
8
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
9
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
10
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
8
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
11 9
  *
12 10
  * This file is part of LED-Cube.
13 11
  *

+ 1
- 3
CubeControl/libSerial/winSerial.c View File

@@ -5,9 +5,7 @@
5 5
  * Windows 16 (& 32 & 64?) compatible serial port library
6 6
  * Uses 8 databits, no parity, 1 stop bit, no handshaking
7 7
  *
8
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
9
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
10
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
8
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
11 9
  *
12 10
  * This file is part of LED-Cube.
13 11
  *

+ 2
- 3
CubeFirmware/animations.c View File

@@ -1,9 +1,8 @@
1 1
 /*
2 2
  * animations.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
5
+ * Copyright 2012 Max Nuding <max.nuding@gmail.com>
7 6
  *
8 7
  * This file is part of LED-Cube.
9 8
  *

+ 1
- 3
CubeFirmware/audio.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * audio.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 3
- 3
CubeFirmware/buffhelp.c View File

@@ -1,9 +1,8 @@
1 1
 /*
2 2
  * buffhelp.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
5
+ * Copyright 2012 Max Nuding <max.nuding@gmail.com>
7 6
  *
8 7
  * This file is part of LED-Cube.
9 8
  *
@@ -47,6 +46,7 @@ void buffSetPixel(uint8_t *buffer, uint8_t x, uint8_t y, uint8_t z) {
47 46
 void buffClearPixel(uint8_t *buffer, uint8_t x, uint8_t y, uint8_t z) {
48 47
 	buffer[(8 * (7 - z)) + (7 - y)] &= ~(1 << x);
49 48
 }
49
+
50 50
 void buffClearAllPixels(uint8_t *buffer) {
51 51
 	uint8_t i;
52 52
 	for(i = 0; i < 64; i++) {	

+ 1
- 3
CubeFirmware/cube.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * cube.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/header/animations.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * animations.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/header/audio.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * audio.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/header/buffhelp.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * buffhelp.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/header/cube.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * cube.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/header/mem.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * mem.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/header/memLayer.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * memLayer.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 5
- 5
CubeFirmware/header/serial.h View File

@@ -1,22 +1,22 @@
1 1
 /*
2 2
  * serial.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
5 5
  *
6
- * This file is part of xyRobot.
6
+ * This file is part of LED-Cube.
7 7
  *
8
- * xyRobot is free software: you can redistribute it and/or modify
8
+ * LED-Cube is free software: you can redistribute it and/or modify
9 9
  * it under the terms of the GNU General Public License as published by
10 10
  * the Free Software Foundation, either version 3 of the License, or
11 11
  * (at your option) any later version.
12 12
  *
13
- * xyRobot is distributed in the hope that it will be useful,
13
+ * LED-Cube is distributed in the hope that it will be useful,
14 14
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 15
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 16
  * GNU General Public License for more details.
17 17
  *
18 18
  * You should have received a copy of the GNU General Public License
19
- * along with xyRobot.  If not, see <http://www.gnu.org/licenses/>.
19
+ * along with LED-Cube.  If not, see <http://www.gnu.org/licenses/>.
20 20
  */
21 21
 
22 22
 #ifndef serial_h_

+ 1
- 3
CubeFirmware/header/strings.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * strings.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/header/time.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * time.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/header/transmit.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * transmit.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/header/visualizer.h View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * visualizer.h
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 3
- 3
CubeFirmware/main.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * main.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *
@@ -384,6 +382,8 @@ void serialHandler(char c) {
384 382
 			lastButtonState = maxButtonState - 1;
385 383
 		}
386 384
 		if (lastButtonState) {
385
+			writeNumber(lastButtonState, 10);
386
+			serialWrite(' ');
387 387
 			serialWriteString(getString(41));
388 388
 		} else {
389 389
 			serialWriteString(getString(40));

+ 1289
- 1285
CubeFirmware/main.hex
File diff suppressed because it is too large
View File


+ 1
- 3
CubeFirmware/mem.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * mem.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/memLayer.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * memLayer.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 5
- 5
CubeFirmware/serial.c View File

@@ -1,22 +1,22 @@
1 1
 /*
2 2
  * serial.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
5 5
  *
6
- * This file is part of xyRobot.
6
+ * This file is part of LED-Cube.
7 7
  *
8
- * xyRobot is free software: you can redistribute it and/or modify
8
+ * LED-Cube is free software: you can redistribute it and/or modify
9 9
  * it under the terms of the GNU General Public License as published by
10 10
  * the Free Software Foundation, either version 3 of the License, or
11 11
  * (at your option) any later version.
12 12
  *
13
- * xyRobot is distributed in the hope that it will be useful,
13
+ * LED-Cube is distributed in the hope that it will be useful,
14 14
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 15
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 16
  * GNU General Public License for more details.
17 17
  *
18 18
  * You should have received a copy of the GNU General Public License
19
- * along with xyRobot.  If not, see <http://www.gnu.org/licenses/>.
19
+ * along with LED-Cube.  If not, see <http://www.gnu.org/licenses/>.
20 20
  */
21 21
 
22 22
 #include <avr/io.h>

+ 1
- 3
CubeFirmware/snake.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * snake.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/strings.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * strings.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/time.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * time.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 1
- 3
CubeFirmware/transmit.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * transmit.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *

+ 40
- 16
CubeFirmware/visualizer.c View File

@@ -1,9 +1,7 @@
1 1
 /*
2 2
  * visualizer.c
3 3
  *
4
- * Copyright 2011 Thomas Buck <xythobuz@me.com>
5
- * Copyright 2011 Max Nuding <max.nuding@gmail.com>
6
- * Copyright 2011 Felix Bäder <baeder.felix@gmail.com>
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
7 5
  *
8 6
  * This file is part of LED-Cube.
9 7
  *
@@ -40,16 +38,17 @@ uint8_t average(uint8_t *data);
40 38
 uint8_t maximum(uint8_t *data);
41 39
 void filterData(uint8_t *data, uint8_t log);
42 40
 void simpleVisualization(uint8_t *data);
41
+void simpleSwitch(uint8_t *data);
43 42
 void fullDepthVisualization(uint8_t *data);
44 43
 void horribleWave(uint8_t *audioData);
45 44
 void simpleLog(uint8_t *data);
46 45
 void fullDepthLog(uint8_t *data);
47 46
 void linLog(uint8_t *data);
48 47
 
49
-#define NUMOFVISUALIZATIONS 6
48
+#define NUMOFVISUALIZATIONS 7
50 49
 void (*visualizations[NUMOFVISUALIZATIONS])(uint8_t *data) = { &linLog, &simpleVisualization,
51 50
 													&fullDepthVisualization, &horribleWave,
52
-													&simpleLog, &fullDepthLog };
51
+													&simpleLog, &fullDepthLog, &simpleSwitch };
53 52
 uint8_t logScale[8] = { 2, 4, 8, 16, 31, 63, 125, 250 }; // --> ca. (1 << (led + 1));
54 53
 
55 54
 uint8_t numberOfVisualizations(void) {
@@ -118,15 +117,25 @@ void filterData(uint8_t *data, uint8_t log) {
118 117
 	}
119 118
 }
120 119
 
121
-void simpleVUMeter(uint8_t *data, uint8_t *buff, uint8_t z, uint8_t log) {
120
+void simpleVUMeter(uint8_t *data, uint8_t *buff, uint8_t z, uint8_t log, uint8_t change) {
122 121
 	uint8_t i, h = 0, max;
123 122
 	for(i = 0; i < 7; i++) {
124 123
 		max = maxVal(data[i], log);
125 124
 		for (h = 0; h < max; h++) {
126 125
 			if (i == 0) {
127
-				buffSetPixel(buff, i, (h * 10 / 15), z);
126
+				if (change) {
127
+					buffSetPixel(buff, i, z, (h * 10 / 15));
128
+				} else {
129
+					buffSetPixel(buff, i, (h * 10 / 15), z);
130
+				}
131
+				
128 132
 			}
129
-			buffSetPixel(buff, i + 1, h, z);
133
+			if (change) {
134
+				buffSetPixel(buff, i + 1, z, h);
135
+			} else {
136
+				buffSetPixel(buff, i + 1, h, z);
137
+			}
138
+			
130 139
 		}
131 140
 	}
132 141
 }
@@ -137,8 +146,8 @@ void simpleLog(uint8_t *data) {
137 146
 	buff = buffNew();
138 147
 	buffClearAllPixels(buff);
139 148
 
140
-	setRow(0, 0, maxVal(average(data), 1), buff); // Show average
141
-	simpleVUMeter(data, buff, 7, 1);
149
+	// setRow(0, 0, maxVal(average(data), 1), buff); // Show average
150
+	simpleVUMeter(data, buff, 7, 1, 0);
142 151
 
143 152
 	setImage(buff);
144 153
 	buffFree(buff);
@@ -150,8 +159,23 @@ void simpleVisualization(uint8_t *data) {
150 159
 
151 160
 	buffClearAllPixels(buff);
152 161
 
153
-	setRow(0, 0, maxVal(average(data), 0), buff); // Show average
154
-	simpleVUMeter(data, buff, 7, 0);
162
+	// setRow(0, 0, maxVal(average(data), 0), buff); // Show average
163
+	simpleVUMeter(data, buff, 7, 0, 0);
164
+
165
+	setImage(buff);
166
+	buffFree(buff);
167
+}
168
+
169
+void simpleSwitch(uint8_t *data) {
170
+	uint8_t *buff;
171
+	uint8_t i;
172
+	buff = buffNew();
173
+
174
+	buffClearAllPixels(buff);
175
+
176
+	for (i = 2; i < 6; i++) {
177
+		simpleVUMeter(data, buff, i, 0, 1);
178
+	}
155 179
 
156 180
 	setImage(buff);
157 181
 	buffFree(buff);
@@ -163,9 +187,9 @@ void linLog(uint8_t *data) {
163 187
 
164 188
 	buffClearAllPixels(buff);
165 189
 
166
-	simpleVUMeter(data, buff, 2, 1);
190
+	simpleVUMeter(data, buff, 2, 1, 0);
167 191
 	filterData(data, 0);
168
-	simpleVUMeter(data, buff, 5, 0);
192
+	simpleVUMeter(data, buff, 5, 0, 0);
169 193
 
170 194
 	setImage(buff);
171 195
 	buffFree(buff);
@@ -179,7 +203,7 @@ void fullDepthLog(uint8_t *data) {
179 203
 	buffClearAllPixels(buff);
180 204
 
181 205
 	for (i = 0; i < 8; i++) {
182
-		simpleVUMeter(data, buff, i, 1);
206
+		simpleVUMeter(data, buff, i, 1, 0);
183 207
 	}
184 208
 
185 209
 	setImage(buff);
@@ -194,7 +218,7 @@ void fullDepthVisualization(uint8_t *data) {
194 218
 	buffClearAllPixels(buff);
195 219
 
196 220
 	for (i = 0; i < 8; i++) {
197
-		simpleVUMeter(data, buff, i, 0);
221
+		simpleVUMeter(data, buff, i, 0, 0);
198 222
 	}
199 223
 
200 224
 	setImage(buff);

+ 19
- 0
HardwareEmulator/main.c View File

@@ -2,6 +2,25 @@
2 2
  * LED-Cube Hardware Emulator.
3 3
  * Creates a new pseudo terminal and emulates the LED Cube Hardware.
4 4
  * Used for testing of CubeControl Software.
5
+ *
6
+ * main.c
7
+ *
8
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
9
+ *
10
+ * This file is part of LED-Cube.
11
+ *
12
+ * LED-Cube is free software: you can redistribute it and/or modify
13
+ * it under the terms of the GNU General Public License as published by
14
+ * the Free Software Foundation, either version 3 of the License, or
15
+ * (at your option) any later version.
16
+ *
17
+ * LED-Cube is distributed in the hope that it will be useful,
18
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
+ * GNU General Public License for more details.
21
+ *
22
+ * You should have received a copy of the GNU General Public License
23
+ * along with LED-Cube.  If not, see <http://www.gnu.org/licenses/>.
5 24
  */
6 25
 #include <stdlib.h>
7 26
 #include <stdio.h>

+ 19
- 0
HardwareEmulator/mem.c View File

@@ -3,6 +3,25 @@
3 3
  * frame is represented as 65 bytes.
4 4
  * 0 - 63: frame data
5 5
  * 64: duration, 0 => 1/24th second
6
+ *
7
+ * mem.c
8
+ *
9
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
10
+ *
11
+ * This file is part of LED-Cube.
12
+ *
13
+ * LED-Cube is free software: you can redistribute it and/or modify
14
+ * it under the terms of the GNU General Public License as published by
15
+ * the Free Software Foundation, either version 3 of the License, or
16
+ * (at your option) any later version.
17
+ *
18
+ * LED-Cube is distributed in the hope that it will be useful,
19
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
+ * GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the GNU General Public License
24
+ * along with LED-Cube.  If not, see <http://www.gnu.org/licenses/>.
6 25
  */
7 26
 
8 27
 #include <stdio.h>

+ 19
- 0
HardwareEmulator/mem.h View File

@@ -3,6 +3,25 @@
3 3
  * frame is represented as 65 bytes.
4 4
  * 0 - 63: frame data
5 5
  * 64: duration, 0 => 1/24th second
6
+ *
7
+ * mem.h
8
+ *
9
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
10
+ *
11
+ * This file is part of LED-Cube.
12
+ *
13
+ * LED-Cube is free software: you can redistribute it and/or modify
14
+ * it under the terms of the GNU General Public License as published by
15
+ * the Free Software Foundation, either version 3 of the License, or
16
+ * (at your option) any later version.
17
+ *
18
+ * LED-Cube is distributed in the hope that it will be useful,
19
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
+ * GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the GNU General Public License
24
+ * along with LED-Cube.  If not, see <http://www.gnu.org/licenses/>.
6 25
  */
7 26
 
8 27
 // return != 0 if error

+ 19
- 0
HardwareEmulator/serial.c View File

@@ -5,6 +5,25 @@
5 5
  * gives name of slave side.
6 6
  * By: Thomas Buck <taucher.bodensee@gmail.com>
7 7
  * Visit: www.xythobuz.org
8
+ *
9
+ * serial.c
10
+ *
11
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
12
+ *
13
+ * This file is part of LED-Cube.
14
+ *
15
+ * LED-Cube is free software: you can redistribute it and/or modify
16
+ * it under the terms of the GNU General Public License as published by
17
+ * the Free Software Foundation, either version 3 of the License, or
18
+ * (at your option) any later version.
19
+ *
20
+ * LED-Cube is distributed in the hope that it will be useful,
21
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
+ * GNU General Public License for more details.
24
+ *
25
+ * You should have received a copy of the GNU General Public License
26
+ * along with LED-Cube.  If not, see <http://www.gnu.org/licenses/>.
8 27
  */
9 28
 
10 29
 #include <stdio.h>

+ 19
- 0
HardwareEmulator/serial.h View File

@@ -3,6 +3,25 @@
3 3
  * Uses 8 databits, no parity, 1 stop bit, no handshaking
4 4
  * By: Thomas Buck <taucher.bodensee@gmail.com>
5 5
  * Visit: www.xythobuz.org
6
+ *
7
+ * serial.h
8
+ *
9
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
10
+ *
11
+ * This file is part of LED-Cube.
12
+ *
13
+ * LED-Cube is free software: you can redistribute it and/or modify
14
+ * it under the terms of the GNU General Public License as published by
15
+ * the Free Software Foundation, either version 3 of the License, or
16
+ * (at your option) any later version.
17
+ *
18
+ * LED-Cube is distributed in the hope that it will be useful,
19
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
+ * GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the GNU General Public License
24
+ * along with LED-Cube.  If not, see <http://www.gnu.org/licenses/>.
6 25
  */
7 26
 
8 27
 // Use POSIX Baud constants (B2400, B9600...)

+ 10
- 10
README.md View File

@@ -4,20 +4,20 @@
4 4
 
5 5
 ## Hardware
6 6
 
7
-You can find the schematic as png and Eagle file in this directory.
7
+This LED-Cube uses an AtMega32 for displaying animations and an AtMega8 for Audio Visualizations. I first built the Circuit on a 160x100mm hole-grid board. This was very cumbersome, so I created a dual-sided PCB Layout with SMD Parts. You can find this Layout and the Schematic in the Hardware folder, as PNGs and Eagle files. There's also a partlist.
8 8
 
9
-## Firmware
9
+## CubeFirmware
10 10
 
11
-2 Firmwares, for the AtMega8 TWI Slave and for the Atmega32. Currently in development.
11
+CubeFirmware controls the AtMega32, which in turn displays images and communicates over USB. It's in the CubeFirmware folder. Compile with avr-gcc, using the makefile (just run 'make').
12 12
 
13
-## Cube Control
13
+## AudioFirmware
14 14
 
15
-We also build a software to create and load animations into the cube. This software is written in Java and C and should work on Windows and Unix.
16
-It's source is in the "Cube Control" directory.
15
+This firmware controls the AtMega8, which interfaces the MSGEQ7 to get sound data. It is addressed by the CubeFirmware as a TWI-Slave.
17 16
 
18
-## Build instructions
17
+## CubeControl
19 18
 
20
-There is a makefile in every source code directory. Running make inside CubeControl should produce a file called CubeControlMac.jar, CubeControlLinux.jar or CubeControlWin.jar. If not, you should take a look at the makefile. Hard-Coded include directorys are probably different than on your system... You obviously need a working JDK and a C Compiler Environment (we use gcc).
21
-CubeControls makefile will autodetect a Windows Host and compile a Windows Version accordingly. If it is not on Windows, it will check uname and compile a Mac Version if Darwin is reported as OS name. A Linux Version will be compiled if no Darwin OS was detected.
19
+CubeControl is a PC software, written in Java and mostly platform-independent, to create Animations for the Cube and send them to it. It depends on Java3D to display a rotatable, clickable 3D View of the LED-Cube. It comes with it's own Serial Library to communicate with the Cube. Compile it with the makefile. You need a working javac and gcc in your Path. To compile under windows get something like MinGW or try Microsofts compiler.
22 20
 
23
-The same goes for AudioFirmware and CubeFirmware. You need avr-gcc to compile these projects.
21
+## License
22
+
23
+See the included LICENSE file. This software is released as GPLv3. It incorporates some code from Peter Danneger (his TWI Library and a button debounce routine), released as GPLv2.

+ 22
- 0
UploadTest/main.c View File

@@ -1,3 +1,25 @@
1
+/*
2
+ * main.c
3
+ *
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
5
+ *
6
+ * This file is part of LED-Cube.
7
+ *
8
+ * LED-Cube is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * LED-Cube is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with LED-Cube.  If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+// Allows to send test data or finished animations from CubeControl
22
+
1 23
 #include <stdio.h>
2 24
 #include <stdlib.h>
3 25
 #include <strings.h>

+ 19
- 0
UploadTest/serial.c View File

@@ -3,6 +3,25 @@
3 3
  * Uses 8 databits, no parity, 1 stop bit, no handshaking
4 4
  * By: Thomas Buck <taucher.bodensee@gmail.com>
5 5
  * Visit: www.xythobuz.org
6
+ *
7
+ * serial.c
8
+ *
9
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
10
+ *
11
+ * This file is part of LED-Cube.
12
+ *
13
+ * LED-Cube is free software: you can redistribute it and/or modify
14
+ * it under the terms of the GNU General Public License as published by
15
+ * the Free Software Foundation, either version 3 of the License, or
16
+ * (at your option) any later version.
17
+ *
18
+ * LED-Cube is distributed in the hope that it will be useful,
19
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
+ * GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the GNU General Public License
24
+ * along with LED-Cube.  If not, see <http://www.gnu.org/licenses/>.
6 25
  */
7 26
 
8 27
 #include <stdio.h>

+ 19
- 0
UploadTest/serial.h View File

@@ -3,6 +3,25 @@
3 3
  * Uses 8 databits, no parity, 1 stop bit, no handshaking
4 4
  * By: Thomas Buck <taucher.bodensee@gmail.com>
5 5
  * Visit: www.xythobuz.org
6
+ *
7
+ * serial.h
8
+ *
9
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
10
+ *
11
+ * This file is part of LED-Cube.
12
+ *
13
+ * LED-Cube is free software: you can redistribute it and/or modify
14
+ * it under the terms of the GNU General Public License as published by
15
+ * the Free Software Foundation, either version 3 of the License, or
16
+ * (at your option) any later version.
17
+ *
18
+ * LED-Cube is distributed in the hope that it will be useful,
19
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
+ * GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the GNU General Public License
24
+ * along with LED-Cube.  If not, see <http://www.gnu.org/licenses/>.
6 25
  */
7 26
 
8 27
 // Use POSIX Baud constants (B2400, B9600...)

+ 23
- 0
lookUp.c View File

@@ -1,3 +1,26 @@
1
+/*
2
+ * lookUp.c
3
+ *
4
+ * Copyright 2012 Thomas Buck <xythobuz@me.com>
5
+ *
6
+ * This file is part of LED-Cube.
7
+ *
8
+ * LED-Cube is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * LED-Cube is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with LED-Cube.  If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
+// Small utility to create a look up table for CubeFirmware.
22
+// This is needed for our second cube, because we mirrored the connection cable.
23
+
1 24
 #include <stdio.h>
2 25
 
3 26
 int flip(int d) {

+ 0
- 492
showoff.cube View File

@@ -1,492 +0,0 @@
1
-49
2
-Showoff
3
-Frame 1
4
-00000000000000ff
5
-00000000000000ff
6
-00000000000000ff
7
-00000000000000ff
8
-00000000000000ff
9
-00000000000000ff
10
-00000000000000ff
11
-00000000000000ff
12
-03
13
-Frame 2
14
-000000000000ff00
15
-000000000000ff00
16
-000000000000ff00
17
-000000000000ff00
18
-000000000000ff00
19
-000000000000ff00
20
-000000000000ff00
21
-000000000000ff00
22
-03
23
-Frame 3
24
-0000000000ff0000
25
-0000000000ff0000
26
-0000000000ff0000
27
-0000000000ff0000
28
-0000000000ff0000
29
-0000000000ff0000
30
-0000000000ff0000
31
-0000000000ff0000
32
-03
33
-Frame 4
34
-00000000ff000000
35
-00000000ff000000
36
-00000000ff000000
37
-00000000ff000000
38
-00000000ff000000
39
-00000000ff000000
40
-00000000ff000000
41
-00000000ff000000
42
-03
43
-Frame 5
44
-000000ff00000000
45
-000000ff00000000
46
-000000ff00000000
47
-000000ff00000000
48
-000000ff00000000
49
-000000ff00000000
50
-000000ff00000000
51
-000000ff00000000
52
-03
53
-Frame 6
54
-0000ff0000000000
55
-0000ff0000000000
56
-0000ff0000000000
57
-0000ff0000000000
58
-0000ff0000000000
59
-0000ff0000000000
60
-0000ff0000000000
61
-0000ff0000000000
62
-03
63
-Frame 7
64
-00ff000000000000
65
-00ff000000000000
66
-00ff000000000000
67
-00ff000000000000
68
-00ff000000000000
69
-00ff000000000000
70
-00ff000000000000
71
-00ff000000000000
72
-03
73
-Frame 8
74
-ff00000000000000
75
-ff00000000000000
76
-ff00000000000000
77
-ff00000000000000
78
-ff00000000000000
79
-ff00000000000000
80
-ff00000000000000
81
-ff00000000000000
82
-06
83
-Frame 9
84
-00ff000000000000
85
-00ff000000000000
86
-00ff000000000000
87
-00ff000000000000
88
-00ff000000000000
89
-00ff000000000000
90
-00ff000000000000
91
-00ff000000000000
92
-03
93
-Frame 10
94
-0000ff0000000000
95
-0000ff0000000000
96
-0000ff0000000000
97
-0000ff0000000000
98
-0000ff0000000000
99
-0000ff0000000000
100
-0000ff0000000000
101
-0000ff0000000000
102
-03
103
-Frame 11
104
-000000ff00000000
105
-000000ff00000000
106
-000000ff00000000
107
-000000ff00000000
108
-000000ff00000000
109
-000000ff00000000
110
-000000ff00000000
111
-000000ff00000000
112
-03
113
-Frame 12
114
-00000000ff000000
115
-00000000ff000000
116
-00000000ff000000
117
-00000000ff000000
118
-00000000ff000000
119
-00000000ff000000
120
-00000000ff000000
121
-00000000ff000000
122
-03
123
-Frame 13
124
-0000000000ff0000
125
-0000000000ff0000
126
-0000000000ff0000
127
-0000000000ff0000
128
-0000000000ff0000
129
-0000000000ff0000
130
-0000000000ff0000
131
-0000000000ff0000
132
-03
133
-Frame 14
134
-000000000000ff00
135
-000000000000ff00
136
-000000000000ff00
137
-000000000000ff00
138
-000000000000ff00
139
-000000000000ff00
140
-000000000000ff00
141
-000000000000ff00
142
-03
143
-Frame 15
144
-00000000000000ff
145
-00000000000000ff
146
-00000000000000ff
147
-00000000000000ff
148
-00000000000000ff
149
-00000000000000ff
150
-00000000000000ff
151
-00000000000000ff
152
-03
153
-Frame 16
154
-ffffffffffffffff
155
-0000000000000000
156
-0000000000000000
157
-0000000000000000
158
-0000000000000000
159
-0000000000000000
160
-0000000000000000
161
-0000000000000000
162
-03
163
-Frame 17
164
-0000000000000000
165
-ffffffffffffffff
166
-0000000000000000
167
-0000000000000000
168
-0000000000000000
169
-0000000000000000
170
-0000000000000000
171
-0000000000000000
172
-03
173
-Frame 18
174
-0000000000000000
175
-0000000000000000
176
-ffffffffffffffff
177
-0000000000000000
178
-0000000000000000
179
-0000000000000000
180
-0000000000000000
181
-0000000000000000
182
-03
183
-Frame 19
184
-0000000000000000
185
-0000000000000000
186
-0000000000000000
187
-ffffffffffffffff
188
-0000000000000000
189
-0000000000000000
190
-0000000000000000
191
-0000000000000000
192
-03
193
-Frame 20
194
-0000000000000000
195
-0000000000000000
196
-0000000000000000
197
-0000000000000000
198
-ffffffffffffffff
199
-0000000000000000
200
-0000000000000000
201
-0000000000000000
202
-03
203
-Frame 21
204
-0000000000000000
205
-0000000000000000
206
-0000000000000000
207
-0000000000000000
208
-0000000000000000
209
-ffffffffffffffff
210
-0000000000000000
211
-0000000000000000
212
-03
213
-Frame 22
214
-0000000000000000
215
-0000000000000000
216
-0000000000000000
217
-0000000000000000
218
-0000000000000000
219
-0000000000000000
220
-ffffffffffffffff
221
-0000000000000000
222
-03
223
-Frame 23
224
-0000000000000000
225
-0000000000000000
226
-0000000000000000
227
-0000000000000000
228
-0000000000000000
229
-0000000000000000
230
-0000000000000000
231
-ffffffffffffffff
232
-06
233
-Frame 24
234
-0000000000000000
235
-0000000000000000
236
-0000000000000000
237
-0000000000000000
238
-0000000000000000
239
-0000000000000000
240
-ffffffffffffffff
241
-0000000000000000
242
-03
243
-Frame 25
244
-0000000000000000
245
-0000000000000000
246
-0000000000000000
247
-0000000000000000
248
-0000000000000000
249
-ffffffffffffffff
250
-0000000000000000
251
-0000000000000000
252
-03
253
-Frame 26
254
-0000000000000000
255
-0000000000000000
256
-0000000000000000
257
-0000000000000000
258
-ffffffffffffffff
259
-0000000000000000
260
-0000000000000000
261
-0000000000000000
262
-03
263
-Frame 27
264
-0000000000000000
265
-0000000000000000
266
-0000000000000000
267
-ffffffffffffffff
268
-0000000000000000
269
-0000000000000000
270
-0000000000000000
271
-0000000000000000
272
-03
273
-Frame 28
274
-0000000000000000
275
-0000000000000000
276
-ffffffffffffffff
277
-0000000000000000
278
-0000000000000000
279
-0000000000000000
280
-0000000000000000
281
-0000000000000000
282
-03
283
-Frame 29
284
-0000000000000000
285
-ffffffffffffffff
286
-0000000000000000
287
-0000000000000000
288
-0000000000000000
289
-0000000000000000
290
-0000000000000000
291
-0000000000000000
292
-03
293
-Frame 30
294
-ffffffffffffffff
295
-0000000000000000
296
-0000000000000000
297
-0000000000000000
298
-0000000000000000
299
-0000000000000000
300
-0000000000000000
301
-0000000000000000
302
-03
303
-Frame 31
304
-8080808080808080
305
-8080808080808080
306
-8080808080808080
307
-8080808080808080
308
-8080808080808080
309
-8080808080808080
310
-8080808080808080
311
-8080808080808080
312
-03
313
-Frame 32
314
-4040404040404040
315
-4040404040404040
316
-4040404040404040
317
-4040404040404040
318
-4040404040404040
319
-4040404040404040
320
-4040404040404040
321
-4040404040404040
322
-03
323
-Frame 33
324
-2020202020202020
325
-2020202020202020
326
-2020202020202020
327
-2020202020202020
328
-2020202020202020
329
-2020202020202020
330
-2020202020202020
331
-2020202020202020
332
-03
333
-Frame 34
334
-1010101010101010
335
-1010101010101010
336
-1010101010101010
337
-1010101010101010
338
-1010101010101010
339
-1010101010101010
340
-1010101010101010
341
-1010101010101010
342
-03
343
-Frame 35
344
-0808080808080808
345
-0808080808080808
346
-0808080808080808
347
-0808080808080808
348
-0808080808080808
349
-0808080808080808
350
-0808080808080808
351
-0808080808080808
352
-03
353
-Frame 36
354
-0404040404040404
355
-0404040404040404
356
-0404040404040404
357
-0404040404040404
358
-0404040404040404
359
-0404040404040404
360
-0404040404040404
361
-0404040404040404
362
-03
363
-Frame 37
364
-0202020202020202
365
-0202020202020202
366
-0202020202020202
367
-0202020202020202
368
-0202020202020202
369
-0202020202020202
370
-0202020202020202
371
-0202020202020202
372
-03
373
-Frame 38
374
-0101010101010101
375
-0101010101010101
376
-0101010101010101
377
-0101010101010101
378
-0101010101010101
379
-0101010101010101
380
-0101010101010101
381
-0101010101010101
382
-06
383
-Frame 39
384
-0202020202020202
385
-0202020202020202
386
-0202020202020202
387
-0202020202020202
388
-0202020202020202
389
-0202020202020202
390
-0202020202020202
391
-0202020202020202
392
-03
393
-Frame 40
394
-0404040404040404
395
-0404040404040404
396
-0404040404040404
397
-0404040404040404
398
-0404040404040404
399
-0404040404040404
400
-0404040404040404
401
-0404040404040404
402
-03
403
-Frame 41
404
-0808080808080808
405
-0808080808080808
406
-0808080808080808
407
-0808080808080808
408
-0808080808080808
409
-0808080808080808
410
-0808080808080808
411
-0808080808080808
412
-03
413
-Frame 42
414
-1010101010101010
415
-1010101010101010
416
-1010101010101010
417
-1010101010101010
418
-1010101010101010
419
-1010101010101010
420
-1010101010101010
421
-1010101010101010
422
-03
423
-Frame 43
424
-2020202020202020
425
-2020202020202020
426
-2020202020202020
427
-2020202020202020
428
-2020202020202020
429
-2020202020202020
430
-2020202020202020
431
-2020202020202020
432
-03
433
-Frame 44
434
-4040404040404040
435
-4040404040404040
436
-4040404040404040
437
-4040404040404040
438
-4040404040404040
439
-4040404040404040
440
-4040404040404040
441
-4040404040404040
442
-03
443
-Frame 45
444
-8080808080808080
445
-8080808080808080
446
-8080808080808080
447
-8080808080808080
448
-8080808080808080
449
-8080808080808080
450
-8080808080808080
451
-8080808080808080
452
-03
453
-Frame 46
454
-0000000000000000
455
-0000000000000000
456
-0000000000000000
457
-0000001818000000
458
-0000001818000000
459
-0000000000000000
460
-0000000000000000
461
-0000000000000000
462
-03
463
-Frame 47
464
-0000000000000000
465
-0000000000000000
466
-00003c3c3c3c0000
467
-00003c24243c0000
468
-00003c24243c0000
469
-00003c3c3c3c0000
470
-0000000000000000
471
-0000000000000000
472
-03
473
-Frame 48
474
-0000000000000000
475
-007e7e7e7e7e7e00
476
-007e424242427e00
477
-007e424242427e00
478
-007e424242427e00
479
-007e424242427e00
480
-007e7e7e7e7e7e00
481
-0000000000000000
482
-03
483
-Frame 49
484
-ffffffffffffffff
485
-ff818181818181ff
486
-ff818181818181ff
487
-ff818181818181ff
488
-ff818181818181ff
489
-ff818181818181ff
490
-ff818181818181ff
491
-ffffffffffffffff
492
-03

Loading…
Cancel
Save