summaryrefslogtreecommitdiffstats
path: root/Matrix_9x14/libraries/Charliplexing/.svn/text-base/Charliplexing.h.svn-base
diff options
context:
space:
mode:
authorAlexander Kauerz <kauerz@informatik.uni-luebeck.de>2012-02-09 22:59:58 +0100
committerAlexander Kauerz <kauerz@informatik.uni-luebeck.de>2012-02-09 22:59:58 +0100
commitfbea3ae42daade09ad42fe9ae9ca542f77b96c20 (patch)
tree4d2162027b1bac7830569d5f8efd9813f3497902 /Matrix_9x14/libraries/Charliplexing/.svn/text-base/Charliplexing.h.svn-base
parent8f428f51b4b62d1f07c88cace7bb127e436271a5 (diff)
downloadledmatrix-fbea3ae42daade09ad42fe9ae9ca542f77b96c20.tar
ledmatrix-fbea3ae42daade09ad42fe9ae9ca542f77b96c20.zip
lolshield-matrix hinzu
Diffstat (limited to 'Matrix_9x14/libraries/Charliplexing/.svn/text-base/Charliplexing.h.svn-base')
-rw-r--r--Matrix_9x14/libraries/Charliplexing/.svn/text-base/Charliplexing.h.svn-base34
1 files changed, 34 insertions, 0 deletions
diff --git a/Matrix_9x14/libraries/Charliplexing/.svn/text-base/Charliplexing.h.svn-base b/Matrix_9x14/libraries/Charliplexing/.svn/text-base/Charliplexing.h.svn-base
new file mode 100644
index 0000000..6054dc4
--- /dev/null
+++ b/Matrix_9x14/libraries/Charliplexing/.svn/text-base/Charliplexing.h.svn-base
@@ -0,0 +1,34 @@
+/*
+ Charliplexing.h - Library for controlling the charliplexed led board
+ from JimmiePRodgers.com
+ Created by Alex Wenger, December 30, 2009.
+ Modified by Matt Mets, May 28, 2010.
+ Released into the public domain.
+*/
+
+#ifndef Charliplexing_h
+#define Charliplexing_h
+
+#include <inttypes.h>
+
+#define SINGLE_BUFFER 0
+#define DOUBLE_BUFFER 1
+#define GRAYSCALE 2
+
+#define DISPLAY_COLS 14 // Number of columns in the display
+#define DISPLAY_ROWS 9 // Number of rows in the display
+#define SHADES 8 // Number of distinct shades to display, including black, i.e. OFF
+
+namespace LedSign
+{
+ extern void Init(uint8_t mode = SINGLE_BUFFER);
+ extern void Set(uint8_t x, uint8_t y, uint8_t c = 1);
+ extern void SetBrightness(uint8_t brightness);
+ extern volatile unsigned int tcnt2;
+ extern void Flip(bool blocking = false);
+ extern void Clear(int set=0);
+ extern void Horizontal(int y, int set=0);
+ extern void Vertical(int x, int set=0);
+};
+
+#endif