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: AnemoWS1080_lecture mbed
Diff: main.cpp
- Revision:
- 0:c0615726bad0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Jun 29 16:56:19 2019 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "AnemoWS1080.h"
+
+Serial pc(USBTX, USBRX,9600); // tx, rx
+//Appel de notre constructeur, avec le port de l'anémomètre et le coefficient d'etalonage
+AnemoWS1080 anemo(D3, 1);
+
+int main() {
+ while(1) {
+ //lecture de l'anemo
+ anemo.read();
+ //affichage du résultat
+ pc.printf("Vitesse du vent = %f m/s\n\n", anemo.vitesse);
+
+ }
+}