1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Change comments around polarity being true. PDBs are now active high only.

This commit is contained in:
Gerry Stellenberg
2011-06-27 20:17:18 -05:00
parent 3182b49d8d
commit 3addfd2fa5

View File

@@ -192,8 +192,8 @@ void ConfigureDriverGlobals(PRHandle proc, bool driverPolarity)
globals.matrixRowEnableIndex0 = 6;
globals.matrixRowEnableIndex1 = 8;
// Choose the polarity for the Column strobes. Again, this doesn't really
// matter since the Driver Boards auto-detect polarity.
// Choose the polarity for the Column strobes. PDBs are active high.
// So rows should NOT be active low.
globals.activeLowMatrixRows = false;
// Not using the Stern P/D board. So disable the Stern tickle logic.
@@ -227,9 +227,8 @@ void ConfigureDrivers(PRHandle proc)
// First set up a bunch of constants to use later:
// The driverPolarity determines when the drivers go high or low when
// they are supposed to be active. For the Driver Boards, this doesn't
// really matter, since they auto-detect polarity. True seems to make
// more logical sense though.
// they are supposed to be active. PDBs are active high. So
// this should be true.
const bool driverPolarity = true;
// Now start actually programming thing in the P-ROC.