Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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;