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.
main.cpp
00001 #include "mbed.h" 00002 #include "Max7221.h" 00003 00004 00005 // p5: DIN, p7: CLK, p8: LOAD/CS 00006 Max7221 max7221disp1(p5, p7, p8); 00007 //Max7221 max7221disp2(p5, p7, p8); 00008 //Max7221 max7221disp3(p11, p13, p14); 00009 //Max7221 max7221disp4(p11, p13, p14); 00010 00011 int count=-99; 00012 00013 void loop(void) { 00014 max7221disp1=count; 00015 if (count < 100) 00016 count=count+1; 00017 else 00018 count=-99; 00019 } 00020 00021 int main() { 00022 max7221disp1.Setup(); 00023 //Max7221::SetupALl(); 00024 max7221disp1.WriteFloat(123.125); 00025 wait(1.0); 00026 00027 while (1) { 00028 loop(); 00029 wait(1.0); 00030 } 00031 } 00032 00033
Generated on Tue Jul 12 2022 20:36:14 by
