![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
LPC1114FN28 drive 8x8 LED Matrix. http://jiwashin.blogspot.jp/2016/07/my-lpc1114-device-lose-before-game.html
Revision 6:8485cf53cd79, committed 2016-07-10
- Comitter:
- TareObjects
- Date:
- Sun Jul 10 09:50:14 2016 +0000
- Parent:
- 5:212841923abb
- Commit message:
- ???
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 212841923abb -r 8485cf53cd79 main.cpp --- a/main.cpp Fri May 06 19:57:01 2016 +0000 +++ b/main.cpp Sun Jul 10 09:50:14 2016 +0000 @@ -31,8 +31,8 @@ char *nums[] = {num0, num1, num2, num3, num4, num5, num6, num7, num8, num9}; -BusOut common( dp9, dp2, dp11, dp1, dp17, dp13, dp25, dp15); // anode -BusOut row( dp28, dp26, dp16, dp10, dp14, dp6, dp4, dp18); // casode +BusOut row( dp9, dp2, dp11, dp1, dp17, dp13, dp25, dp14); // anode +BusOut common(dp28, dp26, dp16, dp10, dp15, dp6, dp4, dp18); // casode I2CSlave slave(dp5, dp27); @@ -129,7 +129,7 @@ common = 0x00; char rowData = (i < 8) ? pNumLeft[i] : pNumRight[i % 8]; - row = (~rowData) & 0x00ff; + row = rowData & 0x00ff; common = (pYoko) & 0x00ff; iYoko++; pYoko *= 2;