6 Commits

Author SHA1 Message Date
rjbatista@gmail.com
66b574252b Version 1.3.2 2011-11-14 11:26:41 +00:00
rjbatista@gmail.com
51c24bfaee Version 1.3.2 2011-11-14 11:20:19 +00:00
rjbatista@gmail.com
b6a17f5989 ISSUE #5: Correction of string library import 2011-11-14 11:18:17 +00:00
rjbatista@gmail.com
19673f8650 2011-10-28 23:31:23 +00:00
rjbatista@gmail.com
2def3b9779 2011-10-28 22:43:52 +00:00
rjbatista@gmail.com
81aa413f28 Changed pins to match schematics on project site 2011-10-28 22:43:32 +00:00
5 changed files with 17 additions and 9 deletions

View File

@@ -1,3 +1,11 @@
Version 1.3.2
- ISSUE #5: Correction of string library import
Version 1.3.1
- changed pins on the examples to match schematics on project site.
Version 1.3.0
- added support for String Object;

View File

@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "WProgram.h"
#include "TM1638.h"
#include "String.h"
#include "string.h"
TM1638::TM1638(byte dataPin, byte clockPin, byte strobePin, boolean activateDisplay, byte intensity)
{

View File

@@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <TM1638.h>
// define a module on data pin 3, clock pin 2 and strobe pin 4
TM1638 module(3, 2, 4);
// define a module on data pin 3, clock pin 9 and strobe pin 7
TM1638 module(8, 9, 7);
void setup() {
// display a hexadecimal number and set the left 4 dots

View File

@@ -22,10 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// define a modules
TM1638 modules[] = {
TM1638(3, 2, 4),
TM1638(3, 2, 5),
TM1638(3, 2, 6),
TM1638(3, 2, 7)
TM1638(8, 9, 7),
TM1638(8, 9, 6),
TM1638(8, 9, 5),
TM1638(8, 9, 4)
};
void setup() {

View File

@@ -24,9 +24,9 @@ const byte hello[] = {
};
// define the first module
TM1638 module1(3, 2, 4);
TM1638 module1(8, 9, 7);
// to chain modules, use the same clk and data - just specify a different strobe pin
TM1638 module2(3, 2, 5);
TM1638 module2(8, 9, 6);
unsigned long value = 0L;
boolean state = true;