Bonjour , je suis un debutant en c# et je viens de faire un programme .
le principe du programme : j ai un telemetre et je recupere sur sa sortie analogique un signal me permet de trouver la distance .
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.Hardware;
using GHIElectronics.NETMF.FEZ;
namespace MFConsoleApplication3
{
    public class Program
    {
        public static void Main()
        {
            AnalogIn Vin = new AnalogIn((AnalogIn.Pin)FEZ_Pin.AnalogIn.An2);
            Vin.SetLinearScale(0, 3300);
            int voltage = Vin.Read();
            Debug.Print("Voltage = " + (voltage / 1000).ToString() + "." + (voltage % 1000).ToString());
        }
    }
}
mais le problem c est quand je fais debogage . il me donne ce message
Une exception non gérée du type 'System.InvalidOperationException' s'est produite dans FEZPanda_II_GHIElectronics.NETMF.FEZ.dll

Informations supplémentaires*: FEZ Panda II not detected!
Merci de m'aider, je suis en stage