コード例 #1
0
 public ParamedicinUI_MeasureECG()
 {
     adc        = new ADC1015();
     ECGControl = new MeasureECGControl();
     Display    = new SerLCD();
     Encoder    = new TWIST();
     paraRP     = new ParamedicinUI_RegistrerPatient();
     maalingID  = new int();
 }
コード例 #2
0
ファイル: Logic.cs プロジェクト: pete7513/RPI_Software
        //Konstruktor med oprettelse af relevante referencer
        public Logic()
        {
            DBaccess = new SqlDBDataAccess();
            //Liteaccess = new SqliteDataAccess();
            ADC = new ADC1015();

            //Atribut værdier oprettes
            EKGID   = "1011";
            Dato    = new List <DateTime>();
            Dato    = null;
            taeller = 0;
        }
コード例 #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            SerLCD lcd = new SerLCD();

            ADC1015 adc = new ADC1015();
            RPi     rpi = new RPi();

            adc.readADC_Differential_2_3();

            ADC1115 adc2 = new ADC1115();
        }
コード例 #4
0
        static void Main(string[] args)
        {
            //Hej
            SerLCD  displayController = new SerLCD();
            ADC1015 adConverter       = new ADC1015();
            TWIST   twist             = new TWIST();
            string  temp = Convert.ToString(adConverter.readADC_SingleEnded(0));

            double Celcius = Convert.ToInt32(temp) / 10;

            double Fahrenheit = Celcius * 2 + 31;
            double Kelvin     = Celcius + 273 + "Kelvin";

            List <double> items = new List <double> {
                Celcius, Fahrenheit, Kelvin
            };


            displayController.lcdDisplay();

            displayController.lcdClear();

            displayController.lcdPrint("tempteratur: " + temp);

            byte x = 0;
            byte y = 0;

            for (byte i = 1; i < items.Count + 1; i++)
            {
                displayController.lcdGotoXY(x, i);
                displayController.lcdPrint(Convert.ToString((items[i - 1]) + " grader"));
            }


            //displayController.lcdGotoXY(x,y);

            //displayController.lcdPrint("tempteratur: " + temp + " Celcius: " + Celcius + " Fahrenheit: " + Fahrenheit + " Kelvin: " + Kelvin);



            //Console.WriteLine("Hello World!");

            //Console.WriteLine("Temperatur:\n\n");
            //Console.WriteLine("Celcius:         "+Celcius);
            //Console.WriteLine();
            //Console.WriteLine("Celcius:         "+ Fahrenheit);
            //Console.WriteLine();
            //Console.WriteLine("Celcius:         "+ Kelvin);
        }
コード例 #5
0
        public void visBatteristatus()
        {
            ADC1015 AD  = new ADC1015();
            int     ADC = AD.readADC_SingleEnded(1);

            Bstatus = BstatusControl.requestbatterystatus(ADC); //Modtager værdi og viser enten normal eller lav skræm. Udregningen sker i logicLayer
            if (Bstatus > 20)                                   // Vi har valgt grænsen ved 20%
            {
                displayNormalBatterystatus();
            }
            else
            {
                displayLowBatterystatus();
            }
        }
コード例 #6
0
ファイル: Battery.cs プロジェクト: Sabrowna/PRJ2_lcdDisplay
        /// <summary>
        /// Constructor til klassen. Initialiserer referencer.
        /// </summary>
        public Battery()
        {
            localDataRef       = new LocalDataFile();
            batteryLevel       = AssumeLevel();
            batteryLevelRecord = GetRecord(); //KOMMENTERES IND EFTER FØRSTE GANG
            if (batteryLevel != 0)
            {
                localDataRef.NewRecord(batteryLevel, DateTime.Now);
            }
            else
            {
                batteryLevelRecord.Date = DateTime.Now;
            }

            adc = new ADC1015();
        }
コード例 #7
0
 public ADC()
 {
     adConverter = new ADC1015();
 }
コード例 #8
0
 public BPLogic()
 {
     adc = new ADC1015();
 }
コード例 #9
0
 /// <summary>
 /// Constructor til klassen. Initialiserer referencen til DataLayer.
 /// </summary>
 public Ekg_Record()
 {
     localDataRef = new LocalDataFile();
     adc          = new ADC1015();
 }