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
Diff: TesysRail_1.cpp
- Revision:
- 4:c5559005c04b
- Parent:
- 3:15b67c104a2e
diff -r 15b67c104a2e -r c5559005c04b TesysRail_1.cpp --- a/TesysRail_1.cpp Mon Feb 03 10:51:25 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -#include "mbed.h" - -//Pin di uscita del segnale Audio -//AnalogOut aAudioOut(A5); -DigitalOut dAudioOut (D13); // scopi diagnostici - -// periferiche presenti On Board -DigitalOut OnBoardRedLED (LED3); -DigitalOut OnBoardGreenLED (LED1); -DigitalOut OnBoardBlueLED (LED2); -DigitalIn OnBoardButton (USER_BUTTON); - -/********************/ -/* Ciclo Principale */ -/********************/ -int main() -{ - while(true) - { - //++++++++++++++++++ INIZIO Test generazione Audio con segnale digitale +++++++++++++++++++++ - dAudioOut = 1; - wait_us(1150); // semiperiodo del segnale da generare - dAudioOut = 0; - wait_us(1150); // semiperiodo del segnale da generare - //++++++++++++++++++ FINE Test generazione Audio con segnale digitale ++++++++++++++++++++++++ - - // Accende LED per diagnostica della Board - if(OnBoardButton == 1) // se Button Blu sulla scheda è premuto OnBoardButton = 1 - { - OnBoardRedLED=1; - OnBoardBlueLED=1; - OnBoardGreenLED=1; - } - } -}