Skip to content

Instantly share code, notes, and snippets.

@ytsuboi
Created October 18, 2011 06:34
Show Gist options
  • Save ytsuboi/1294753 to your computer and use it in GitHub Desktop.
Save ytsuboi/1294753 to your computer and use it in GitHub Desktop.
12x2ピンなドットマトリクスLED用、Dots.cppのピン定義
Dots::Dots()
{
/* 秋月用
_rowPins[0] = 9;
_rowPins[1] = 4;
_rowPins[2] = 10;
_rowPins[3] = 6;
_rowPins[4] = 17;
_rowPins[5] = 11;
_rowPins[6] = 16;
_rowPins[7] = 13;
_colPins[0] = 5;
_colPins[1] = 15;
_colPins[2] = 14;
_colPins[3] = 8;
_colPins[4] = 12;
_colPins[5] = 7;
_colPins[6] = 3;
_colPins[7] = 2;
*/
// タケイ用
_rowPins[0] = 2;
_rowPins[1] = 3;
_rowPins[2] = 4;
_rowPins[3] = 13;
_rowPins[4] = 14;
_rowPins[5] = 15;
_rowPins[6] = 16;
_rowPins[7] = 17;
_colPins[0] = 12;
_colPins[1] = 11;
_colPins[2] = 10;
_colPins[3] = 9;
_colPins[4] = 5;
_colPins[5] = 6;
_colPins[6] = 7;
_colPins[7] = 8;
_numOfRows = 8;
_numOfCols = 8;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment