Post Created date
Need help explaining some functions - PONG GAME CODE
Got it. Will do so. Is the display function correct also (idk if you looked at the software part)? I am having trouble understsnding the use of a display function instead of a...
Tuesday, 7 January 2020 - 11:52
Need help explaining some functions - PONG GAME CODE
Will try out the said additions! The unused pins were left floating yes (mostly PORTC since It only set PC0 and PC1 as outputs).
Tuesday, 7 January 2020 - 11:49
Creating an Arcade gaming console from scratch (AVR / C & C++)
So, if you want to set a point (x,y) you can do array[y] |= 1 << x; and if you want to clear a point, you can do array[y] &= ~(1 << x); but it'...
Tuesday, 31 December 2019 - 16:22
Creating an Arcade gaming console from scratch (AVR / C & C++)
You should see a point moving back and forth.  Yes, exactly.   So how is this happening, if the ISR function is unchanged? While the ISR function is only reading the...
Tuesday, 31 December 2019 - 15:58
Creating an Arcade gaming console from scratch (AVR / C & C++)
My mind is blowing right now. I understand what you mean but I'm struggling hard to make anything out of it. I have no idea how to code set_pixel / clear_pixel while still...
Tuesday, 31 December 2019 - 14:00
Creating an Arcade gaming console from scratch (AVR / C & C++)
I tweaked the code a bit and managed to make a simple code in which, by pressing a switch (PINB4), the ball would move back and forth:    #include <avr/io....
Tuesday, 31 December 2019 - 11:04
Creating an Arcade gaming console from scratch (AVR / C & C++)
Alright, nice to know since I'll have to talk about it on my presentation! One doubt:   Should I code the buttons (i.e., sw1 equals to the ball moving right, sw2 equals to...
Tuesday, 31 December 2019 - 00:56
Creating an Arcade gaming console from scratch (AVR / C & C++)
Ok. I guess I have to demonstrate with code since words are not working. Here, see if this works, it's just a small change from your code: Oh... This simple lol. I'm sorry......
Monday, 30 December 2019 - 23:52
Creating an Arcade gaming console from scratch (AVR / C & C++)
Oh alright. My bad I wasn't understanding, sorry.   Thing is, If I'm going to use that ISR (1ms interrupt), the matrix just stays the same (the refresh time is so...
Monday, 30 December 2019 - 21:53
Creating an Arcade gaming console from scratch (AVR / C & C++)
Oh right. Totally forgot about interrupt flags. In order to do so, should I create an external interrupt in order to read button state, etc.?   While waiting for a reply, I...
Monday, 30 December 2019 - 20:26
Creating an Arcade gaming console from scratch (AVR / C & C++)
How is your button wired? The button was broken (somehow). I replaced it with another one and it's working properly. I'm connecting it by wiring one side of the button to VCC and...
Monday, 30 December 2019 - 19:50
Creating an Arcade gaming console from scratch (AVR / C & C++)
Now you can offload button detection to an ISR also, that then sets some variables depending on the button states, if it was pressed or released, etc. and handles debouncing...
Monday, 30 December 2019 - 17:58

Pages