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.
Fork of Max7221 by
Revision 5:1f3dbf38d027, committed 2015-11-19
- Comitter:
- ky3orr
- Date:
- Thu Nov 19 23:27:53 2015 +0000
- Parent:
- 4:e2b160410338
- Child:
- 6:191569a26f50
- Commit message:
- Fixed library to support FRDM-KL25Z.
Changed in this revision
--- a/Max7221.cpp Wed Aug 07 03:07:01 2013 +0000
+++ b/Max7221.cpp Thu Nov 19 23:27:53 2015 +0000
@@ -33,7 +33,7 @@
///Determine which bus we are connecting the device to based on the MSOI pin name
switch (msoi) {
///If using SPI bus #1
- case p5: maxInUseSPI1++;
+ case PTC6: maxInUseSPI1++;
///Set this insctance to pointers to the correct static pointers
this->id=maxInUseSPI1;
this->maxInUse=&maxInUseSPI1;
@@ -45,10 +45,10 @@
///TODO: Check that load pin is the same for all SP2
}
this->max72_spi=spi1;
- this->load = load2;
+ this->load = load1;
break;
///If using SPI bus #2
- case p11: maxInUseSPI2++;
+ case PTD7: maxInUseSPI2++;
///Set this insctance to pointers to the correct static pointers
this->id=maxInUseSPI2;
this->maxInUse=&maxInUseSPI2;
--- a/Max7221.h Wed Aug 07 03:07:01 2013 +0000
+++ b/Max7221.h Thu Nov 19 23:27:53 2015 +0000
@@ -84,7 +84,7 @@
* device that share the same msoi and mclk pins
* @date 8/6/2013
*/
- Max7221(PinName msoi=p5, PinName mclk=p7, PinName load=p8);
+ Max7221(PinName msoi=PTC6, PinName mclk=PTC5, PinName load=PTC4);
/**
* This method is used to write a byte of data to a specified register for only the device defined in this class instance
--- a/mbed.bld Wed Aug 07 03:07:01 2013 +0000 +++ b/mbed.bld Thu Nov 19 23:27:53 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/b3110cd2dd17 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11 \ No newline at end of file
