Search found 28 matches

by captalex
Thu Jun 16, 2011 5:07 pm
Forum: Your projects
Topic: Microcontroller based Graphical lcd game
Replies: 35
Views: 44827

Re: Microcontroller based Graphical lcd game

bitfogav wrote:There you go :)

thank you bitfogav!!, :D
by captalex
Wed Jun 15, 2011 7:38 am
Forum: Your projects
Topic: Microcontroller based Graphical lcd game
Replies: 35
Views: 44827

Re: Microcontroller based Graphical lcd game

Thats a strange result? the code works perfect on my KS0108 GLCD. Ive made two more Hex files you could try, I have increased the delay warm up time of the GLCD on both Hex files, the only difference is the CS lines, ive changed one to inverted and one to non inverted.. thats the only thing I can s...
by captalex
Tue Jun 14, 2011 9:06 am
Forum: Your projects
Topic: Microcontroller based Graphical lcd game
Replies: 35
Views: 44827

Re: Microcontroller based Graphical lcd game

Hi Captalex, Ive made up a breadboard with a GLCD using a 18f4550, I have a 4mhz Ext crystal and two buttons connected up to the microchip, Ive connected up the GLCD and the rest of the circuit as you have in your project, changed my code to suit (datalines, etc) and the code runs fine :) Can I jus...
by captalex
Mon Jun 13, 2011 9:56 am
Forum: Your projects
Topic: Microcontroller based Graphical lcd game
Replies: 35
Views: 44827

Re: Microcontroller based Graphical lcd game

Ive had another look over your code but still can't see why your getting that error? TRISA Identifier redefined message means that the same identifier already exists in some unit in your project? but I cant find it in any other unit and also you've got the ; colons in the correct places. errormikro...
by captalex
Mon Jun 13, 2011 3:49 am
Forum: Your projects
Topic: Microcontroller based Graphical lcd game
Replies: 35
Views: 44827

Re: Microcontroller based Graphical lcd game

Im not sure if that ported code will work or not with mikroC? :roll: the GLCD functions in swordfish are more than likely different to that in the GLCD functions in miKroC. When I call the GLCD.Square function in swordfish I know that inside the swordfish square function it also calls the Rectangle...
by captalex
Mon Jun 13, 2011 12:30 am
Forum: Your projects
Topic: Microcontroller based Graphical lcd game
Replies: 35
Views: 44827

Re: Microcontroller based Graphical lcd game

hey bitfogav, i ported your code to mikro c but for the ball prototype your created in swordfish with the GLCD.square function takes only 3 parameters, x1,y1 and size of the square, in mikro C the square function takes 4 parameters so i just added the x and y parameters again since it's a square. th...
by captalex
Sun Jun 12, 2011 9:02 am
Forum: PIC Tutorials
Topic: Button Interfacing
Replies: 14
Views: 30515

Re: Button Interfacing

now guys, i want to make a switch statement loop, that checks what button was pressed and returns a specified action for it. e.g if up is presses move pixel up 2 pixels. this is my code int Button=1; switch (Button) { case Switch_up: head_y--; break; case Switch_right: head_x++; break; case Switch_...
by captalex
Sun Jun 12, 2011 1:26 am
Forum: PIC Tutorials
Topic: Button Interfacing
Replies: 14
Views: 30515

Re: Button Interfacing

now guys, i want to make a switch statement loop, that checks what button was pressed and returns a specified action for it. e.g if up is presses move pixel up 2 pixels. this is my code int Button=1; switch (Button) { case Switch_up: head_y--; break; case Switch_right: head_x++; break; case Switch_d...
by captalex
Sat Jun 11, 2011 8:04 pm
Forum: PIC Tutorials
Topic: Button Interfacing
Replies: 14
Views: 30515

Re: Button Interfacing

Yay guys, i did it!! , i connected one leg of the button to ground as you suggested, i then connected the other leg to PORT A + a 10k resistor on this leg goes to +5v , i'm just happy:D i wrote new code, and scrapped the mikroc Button function altogether. thanks guys for your help. this is the code....
by captalex
Sat Jun 11, 2011 8:16 am
Forum: PIC Tutorials
Topic: Button Interfacing
Replies: 14
Views: 30515

Re: Button Interfacing

no brad, i dont have access to a logical probe, any other methods.?. yes bitfogav, i have tried that it displays the ON text that i sent to it but when i push the button it doesnt execute the next statement. :roll: /* when button is pressed led comes on and text is written to the lcd screen*/ int ol...
by captalex
Fri Jun 10, 2011 9:34 am
Forum: PIC Tutorials
Topic: Button Interfacing
Replies: 14
Views: 30515

Re: Button Interfacing

cheers guys, i really want to learn swordfish, but my programming background was started in C, and time wouldnt let me combine both at the moment, when i am done with my current lcd pong game project. i will try and see what swordfish has to offer. hey bitfogav!. i have this code written in mikro c,...
by captalex
Wed Jun 08, 2011 6:36 pm
Forum: PIC Tutorials
Topic: Button Interfacing
Replies: 14
Views: 30515

Button Interfacing

hello guys, i've hooked up the button to the PIC18F4550 as instructed in tutorial 4, but i just can't get my head around assembly. i have a single led on port RC4 and a push button attached to port RA0. can any one provide me with the code in Mikro C or similar, or with the HEX file. thanks.
by captalex
Fri May 27, 2011 6:16 am
Forum: Your projects
Topic: Microcontroller based Graphical lcd game
Replies: 35
Views: 44827

Re: Microcontroller based Graphical lcd game

thanks bitfogav, you used a similar approach to what i tried to do in allegro, here's my very scary code. i have yet to setup interrupts, initialize buttons(PORTA) and so on... i'm also using this link http://www.ritrivi.1free.ws/index.php?option=com_content&view=article&id=69 i'll use your code gra...
by captalex
Thu May 26, 2011 7:57 am
Forum: Your projects
Topic: Microcontroller based Graphical lcd game
Replies: 35
Views: 44827

Re: Microcontroller based Graphical lcd game

NxMGafP_mWI finally man!!, bitfogav this is what i have been looking for /trying to do using the mikro C glcd libraries , but i didnt know how. i hope you could help me with porting your code to mikro C using a pic18f4550 and a wg12864b ks0108 based lcd display. and also adding an additional paddle...
by captalex
Thu May 26, 2011 5:45 am
Forum: Your projects
Topic: Microcontroller based Graphical lcd game
Replies: 35
Views: 44827

Re: Microcontroller based Graphical lcd game

Hi, It works fine in the test code using your Bitmap instead of the truck There isn't anything in the code you posted there to draw the bitmap Jay i've included the whole array into the source file because the compiler wouldnt let me use the #include<eva.c> header. here is a sample of my code, with...