rikveenboer / tm1638-library

Automatically exported from code.google.com/p/tm1638-library
0 stars 0 forks source link

Issue with PWM intensity command #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The PWM values that should cause gradual change of intensity appear to work in 
the following manner:

Values of 0; 1 and 2 do change the PWM noticeably

However once the value jumps from 2 to 3 a significant change is observed . 
Then values of 4;5;6 and 7 do not seem to cause any noticeable change in 
intensity.

So in summary, 0;1; and 2 cause gradual change. Then a significant jump occurs 
and 3;4;5;6; and 7 appear all the same.

This may very well be a display issue with the way it interprets the intensity 
commands and implements the PWM internally but wanted to mention it just in 
case.

Thanks

Testing code:

#include <TM1638.h>
#include <TM1640.h>

TM1640 module(3, 2);
int i=0;

void setup()
{
}

void loop()
{
  char text[17];
  module.setupDisplay(true,i);
  sprintf(text, "HELLO %u", millis());
  module.setDisplayToString(text);
  delay(550);
  i++;
  if (i>=8)
  {
  i=0;
  }
}

Original issue reported on code.google.com by bbian...@gmail.com on 29 Mar 2012 at 2:22

GoogleCodeExporter commented 9 years ago
Checked it out and it does what you described, but I can't see anything wrong 
with the code and the specs specify the intensity as implemented. Closing the 
issue cause I can't really find anything wrong.

Original comment by rjbati...@gmail.com on 11 Jun 2012 at 9:37