Sir
I m finding it difficult to move the BALL in the LCD.Its quite easier with graphics in C. Could u please guide me somehow.
Also is there a way i could get whether a pixel is plotted on LCD or not..
I mean could i get an input from it?
This Nokia 3310 LCD doesn't have reading feature. You can only write to it. What you can do is maintain a buffer in your program about the position of the ball.
I have realised that for the movement of the ball, the location of the present state of the ball should be erased before printing the next postion of the ball.
Pls provide me any hint to do so, as with the following code:-
{cursorxy(i,k);
writedata(0b10000000);
_delay_ms(10);
cursorxy(i,k);
writedata(0b00000000);
}
it doesn't seem to work.
But there is no need to delete the ball after 10ms
Before putting the new location , delete the old location.Also , Nokia 3310 doesnt have reading feature. so maintain a buffer in your program to know the previous locations of the ball.
re:Blaster Game
Hi
This Nokia 3310 LCD doesn't have reading feature. You can only write to it. What you can do is maintain a buffer in your program about the position of the ball.
Nehul
Blaster Game
I have realised that for the movement of the ball, the location of the present state of the ball should be erased before printing the next postion of the ball.
Pls provide me any hint to do so, as with the following code:-
{cursorxy(i,k);
writedata(0b10000000);
_delay_ms(10);
cursorxy(i,k);
writedata(0b00000000);
}
it doesn't seem to work.
reply
I think siddi 10 ms delay is too less for ur code..
increase it somewat..
@siddi
You are bang on target.
But there is no need to delete the ball after 10ms
Before putting the new location , delete the old location.Also , Nokia 3310 doesnt have reading feature. so maintain a buffer in your program to know the previous locations of the ball.