task main() {
ClearScreen();
int y;
int i;
int MyArray[100];
SetSensorLowspeed(IN_4);
for (i=0;i<=100;i++) {
y= SensorUS(IN_4);
MyArray[i]=y
NumOut(0, 56, y, DRAW_OPT_CLEAR);
}
for (i=0;i<=100;++i) {
y=MyArray[i];
if (i==99) ClearScreen();
PointOut(i, y/4, DRAW_OPT_NORMAL);
}
while (true);
}
How come you don't know what I mean:)? I just want an oscyloscope which will show measurements on the display (in whole lines through the display, not pixel by pixel as you did it in the very irst code):) So one measurement means one whole line on the display, second measurement means the previous line of measurements is deleted and the new whole one is displayed and so on. Help mi with the code. The thing is that I don't have LegoRobot to work on:( only twice a week I have a possiblity to work on it:/
it's a matter of how to learn programming.
If you don't try it by yourself you won't learn it ever.
So I'll gladly help you learning but it makes no sense to write the whole code for you. ;)
So please help me with writing it and explaining why is it so in this oscyloscope. That would be the best solution. I just ask you for help. In the first one you did really great job because you wrote the code, explain what is what and I understood almost everything...Now you aren't as willing to help as before...So what would you change in the code I wrote.
well, I already suspected it was kind of schoolwork.
I am not allowed to do your schoolwork for you, you have to do your schoolwork by your own.
But I can help for detailed questions about narrowly defined issues.