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:
- Enenkel
- Date:
- 2015-01-25
- Revision:
- 1:e4e34bd77feb
- Parent:
- 0:26864826496d
File content as of revision 1:e4e34bd77feb:
/***********************************
name: BERTL_2014_TEST D10 blinken
author: Gottfried Enenkel HTL BULME
email: ene@bulme.at
description:
LEDS D10 blinkt im sec Takt
***********************************/
#include "mbed.h"
// ******* Definitionen ********
DigitalOut ledD10(P1_8); //dem uP - Port1 Pin8 den Namen ledD10 zuweisen
//und als Digitaln Ausgang definieren.
// ******* Hauptroutine ********
int main() { // Start Hauptprogramm
while(1) { // Anfang der Schleife (ohne Abbruch)
ledD10 =1; // LED D10 einschalten
wait (1.0); // warte 1 Sekunde
ledD10=0; // LED D10 ausschalten
wait (1.0); // warte 1 Sekunde
} // Springe zum Anfang der Schleife
} // Ende Hauptprogramm
// ******* Ende *********