Skip to content

Commit

Permalink
adjusted the scan timing
Browse files Browse the repository at this point in the history
Adjusted the scan timing for the 16x16 CPRG hardware to allow for some time
in btween row scans for parasitic capacitance to be drained from the LEDs.
  • Loading branch information
michaelkamprath committed Jun 20, 2019
1 parent 554a0e4 commit 9d7f8c9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.


## [Unreleased]
### Fixed
- Added 3 micro-seconds of inter-scan blank time to the 16x16 CPRG examples to give the hardware some tiem to drain the parasitic capacitance from the LEDs.
- Adjust the Teensy scan rate faster as under some circumstances subtle scan blinking was perceptible.

## [1.2.0] - 2018-12-24

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ RGBColorType CellUniverse::getColorForLifeState( LifeState state ) const {
// PROGRAM BEGINS
//

RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW);
RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW, 3);

CellUniverse uni(leds, 500000);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public:

};

RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW);
RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW, 3);
Animation ani(&leds);

void setup() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const float VERT_SPACE_STRETCH_FACTOR = 3.0;
const float HORIZ_SPACE_STRETCH_FACTOR = 3.0;
const float TIME_DILATION = 20.0;

RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW);
RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW, 3);

int mapSineToRange( float sineValue, int rangeMax ) {
return rangeMax*(sineValue+1.0)/2.0;
Expand Down
2 changes: 1 addition & 1 deletion src/BaseLEDMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ void BaseLEDMatrix::stopScanning(void) {

unsigned int BaseLEDMatrix::nextRowScanTimerInterval(void) const {
// Calculates the microseconds for each scan
return 100*this->baseIntervalMultiplier( _scanPass );
return 50*this->baseIntervalMultiplier( _scanPass );
}

#pragma mark ESP32 Handlers
Expand Down

0 comments on commit 9d7f8c9

Please sign in to comment.