Search found 24 matches

by ZephaniahNoah
Thu Sep 10, 2015 12:00 pm
Forum: DigiPixel - The Arduino and Digispark Compatible Shield
Topic: Set pixel in the world, not on the screen.
Replies: 41
Views: 108967

Re: Set World pixel function.

Shrinking community? Awe... That's disappointing :( Anyways I got my method to work! I can get hurt by my bad guy if touched by the side, and I can kill it by jumping on top of it. And for the whole reason I'm doing this, can make the bad guy move around in the world too! I'm just having trouble mak...
by ZephaniahNoah
Mon Sep 07, 2015 3:57 pm
Forum: DigiPixel - The Arduino and Digispark Compatible Shield
Topic: Set pixel in the world, not on the screen.
Replies: 41
Views: 108967

Re: Set World pixel function.

Alright, thanks. I'll use the SRAM to store my map if I can't get my method to work. I would just go for the SRAM method right away but my map is 700 pixels wide and I don't want to remake it. Thank you for the help!

P.S. Can Swordfish Basic write code to an Arduino, or would I need a pic?
by ZephaniahNoah
Fri Sep 04, 2015 12:54 pm
Forum: DigiPixel - The Arduino and Digispark Compatible Shield
Topic: Set pixel in the world, not on the screen.
Replies: 41
Views: 108967

Re: Set World pixel function.

Yes. You are correct. That's what I was trying to do. Man that sucks PROGMEM is read only. I kinda guessed that was the case because it wasn't letting me change it. Sorry if I was being too vague about the setPixelWorld thingy I was talking about. Let me go into more detail... What if you could crea...
by ZephaniahNoah
Tue Sep 01, 2015 6:03 am
Forum: DigiPixel - The Arduino and Digispark Compatible Shield
Topic: Set pixel in the world, not on the screen.
Replies: 41
Views: 108967

Re: Set World pixel function.

I made two pictures. One with the pixel I wanted, And one without it. When I wanted the pixel I would activate setMyPixel() void setMyPixel(){ long MyDataRed[700]PROGMEM={X} long MyDataGreen[700]PROGMEM={X} long MyDataBlue[700]PROGMEM={X} } X = My picture with the pixel I want to add. I got no error...
by ZephaniahNoah
Fri Aug 28, 2015 12:46 pm
Forum: DigiPixel - The Arduino and Digispark Compatible Shield
Topic: Set pixel in the world, not on the screen.
Replies: 41
Views: 108967

Set pixel in the world, not on the screen.

I'm having a hard time creating npc's and things that move in the world without inhibiting the players movement so that I can use the setPixel function. But what would make this a whole lot easier, and more interactive, would be a set pixel world function. For example: When you set a pixel in the wo...
by ZephaniahNoah
Sat Jan 10, 2015 6:36 am
Forum: DigiPixel - The Arduino and Digispark Compatible Shield
Topic: Digipixel Piezo
Replies: 7
Views: 17863

Re: Digipixel Piezo

brad wrote:What you could do is look into using interrupts. You can set the interrupt for a certain amount of time (like your delays) but your code still runs and then when that certain amount of time has ticked over, the interrupt will trigger your audio code.
Ok, I'll look into that.
by ZephaniahNoah
Wed Jan 07, 2015 9:32 am
Forum: DigiPixel - The Arduino and Digispark Compatible Shield
Topic: Digipixel Piezo
Replies: 7
Views: 17863

Re: Digipixel Piezo

I was going to say isn't that the wrong way around for the piezo connections? but I see you have now updated your post :) How did you get on with this ZephaniahNoah? I was hoping to try out this too :) It went well. Any time I wanted my game to play a sound I just added: tone(9, frequency , duratio...
by ZephaniahNoah
Thu Jan 01, 2015 10:36 am
Forum: DigiPixel - The Arduino and Digispark Compatible Shield
Topic: Digipixel Piezo
Replies: 7
Views: 17863

Re: Digipixel Piezo

The piezo speaker connection was a bit of a late requested addition and as such I didn't write any code for it myself however the main thing you need to know is that it is connected to the Arduino pin 9. So if you have a look on google for 'arduino sound' or something to that effect, you should get...
by ZephaniahNoah
Wed Dec 31, 2014 8:28 am
Forum: DigiPixel - The Arduino and Digispark Compatible Shield
Topic: Digipixel Piezo
Replies: 7
Views: 17863

Digipixel Piezo

I was just wondering how to use the Piezo buzzer on the DigiPixel. It goes here right? I soldered the negative lead to the square hole and positive to the circle. http://s18.postimg.org/v970asxex/Digi_Pixel_Piezo.jpg How would I figure out which pins to send the sound to? I'm a complete newbie to th...