Accordeur
/
accordeurguit
programme accordeur guitare valide
fonctions.h@2:86f6d5733ae7, 2019-06-11 (annotated)
- Committer:
- achille
- Date:
- Tue Jun 11 11:49:26 2019 +0000
- Revision:
- 2:86f6d5733ae7
- Parent:
- 0:608629a8a61c
volatile ?
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
achille | 0:608629a8a61c | 1 | #include "mbed.h" |
achille | 0:608629a8a61c | 2 | /*#include"USBSerial.h"*/ |
achille | 0:608629a8a61c | 3 | |
achille | 0:608629a8a61c | 4 | #define REC 250 |
achille | 0:608629a8a61c | 5 | |
achille | 0:608629a8a61c | 6 | typedef struct donne { |
achille | 0:608629a8a61c | 7 | float V; |
achille | 0:608629a8a61c | 8 | float T; |
achille | 0:608629a8a61c | 9 | }donnees; |
achille | 0:608629a8a61c | 10 | |
achille | 0:608629a8a61c | 11 | |
achille | 0:608629a8a61c | 12 | void led_set(int flagV, int flagR1,int flagR2); |
achille | 0:608629a8a61c | 13 | void recup(volatile donnees *t, float time, int i); |
achille | 0:608629a8a61c | 14 | float moy(volatile donnees *t); |
achille | 0:608629a8a61c | 15 | float period(volatile donnees *t, float mo); |
achille | 2:86f6d5733ae7 | 16 | |
achille | 2:86f6d5733ae7 | 17 | float pvmax(donnees *t); |
achille | 0:608629a8a61c | 18 | void affichage(float fIn,float fV, int *flagV, int *flagR1, int *flagR2); |
achille | 0:608629a8a61c | 19 | float frequ(float fIn); |