#include "HardwareInfo.c"
#include "JMLib.c"
#include <SetDisplayString.h>
#include <SetLCDBack.h>
#include <GetUltrasound.h>
#include <SetDisplayVar.h>
#include <SetWaitForTime.h>

int main(void)
{
    EV5_Init();
    int var0 = 0;
    SetDisplayString(1, "P1", YELLOW, BLACK);
    SetDisplayString(2, "Ultrasound", YELLOW, BLACK);
    SetLCDBack(ON);
    while (1)
    {
        var0 = GetUltrasound(_P1_);
        SetDisplayVar(1, var0, YELLOW, BLACK);
        SetWaitForTime(0.2);
    }
    while(1);
}

