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.
Dependencies: mbed
main.cpp
- Committer:
- marcel1691
- Date:
- 2015-08-16
- Revision:
- 1:5948937aac9a
- Parent:
- 0:a0bbe9291005
File content as of revision 1:5948937aac9a:
/** Beispiel fuer die Dot LED Matrix Ansteuerung
*/
#include "mbed.h"
#include "Driver.h"
// Dot LED Matrix Driver (SPI-2 Anschluss)
LMDriver matrix( D11, D12, D13, D9 );
int main()
{
matrix.Setup();
// Scrollgeschwindigkeit
matrix.SetWaitTime( 0.4f );
while ( 1 )
{
// String welcher scrollend dargestellt wird.
matrix.DisplayString( "Das ist ein Test mit 26.3C" );
wait( 1.0f );
// Alfabet anzeigen
for ( unsigned char i = '0'; i <= 'z'; i++ )
{
matrix.DisplayChar( i );
wait( 0.5f );
}
}
}