Skip to content

Commit 9d7f8c9

Browse files
adjusted the scan timing
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.
1 parent 554a0e4 commit 9d7f8c9

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77

88
## [Unreleased]
9+
### Fixed
10+
- 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.
11+
- Adjust the Teensy scan rate faster as under some circumstances subtle scan blinking was perceptible.
12+
913
## [1.2.0] - 2018-12-24
1014

1115
### Fixed

examples/16x16-matrix/conway-game-of-life-16x16-cprg/conway-game-of-life-16x16-cprg.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ RGBColorType CellUniverse::getColorForLifeState( LifeState state ) const {
246246
// PROGRAM BEGINS
247247
//
248248

249-
RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW);
249+
RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW, 3);
250250

251251
CellUniverse uni(leds, 500000);
252252

examples/16x16-matrix/dot-chaser-16x16-cprg/dot-chaser-16x16-cprg.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public:
8888

8989
};
9090

91-
RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW);
91+
RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW, 3);
9292
Animation ani(&leds);
9393

9494
void setup() {

examples/16x16-matrix/plasma-16x16-cprg/plasma-16x16-cprg.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const float VERT_SPACE_STRETCH_FACTOR = 3.0;
2828
const float HORIZ_SPACE_STRETCH_FACTOR = 3.0;
2929
const float TIME_DILATION = 20.0;
3030

31-
RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW);
31+
RGBLEDMatrix leds(16,16, RGBLEDMatrix::RGB_GROUPS_CPRG8, HIGH, LOW, 3);
3232

3333
int mapSineToRange( float sineValue, int rangeMax ) {
3434
return rangeMax*(sineValue+1.0)/2.0;

src/BaseLEDMatrix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void BaseLEDMatrix::stopScanning(void) {
265265

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

271271
#pragma mark ESP32 Handlers

0 commit comments

Comments
 (0)