Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Keoni29

Pages: 1 ... 109 110 [111] 112 113 ... 168
1651
Other / TI84+ soundchip - arduino SID emulator
« on: January 14, 2013, 01:20:26 pm »


I finally made this! It's a breadboard arduino running a sid emulator and a link protocol. You can write to registers in the emulated SID chip. It's very user friendly. Now it's possible to have ingame music and soundeffects without terrible framerate drops.

I need to clean up the source, so that's up for download tomorrow.

Spoiler For Spoiler:
Code: [Select]
#include <SID.h>

#define SOUND 1
#define MIDI 0

// MACROs
#define PIN2H (PIND & 0B00000100)
#define PIN3L !(PIND & 0B00001000)

#define CLR(x,y) (x&=(~(1<<y)))
#define SET(x,y) (x|=(1<<y))

SID mySid;

void setup()
{
  pinMode(2,INPUT);
  pinMode(3,INPUT);
  mySid.begin();
}

int n=0;
int timer=0;
int count=0;
int dcount=0;
byte get=B00000000;
int addrval[3] = {0,0,0};


    #define CHANNEL1  0
    #define CHANNEL2  7
    #define CHANNEL3  14


void loop()
{
  do{
    do
    {
      if (PIN3L)
      {
        if (PIN2H)
        {
          CLR(get,count);
        }
        else
        {
          SET(get,count);
        }
        count++;
        
        while(PIN3L)
        {
        timer++;
          if (timer==500){
            n=count=0;
            break;
          }
        }
        timer=0;
      }
    }while(count!=8);
    addrval[n]=get;
    n++;
    count=0;
  }while(n!=2);

  mySid.set_register(addrval[0], addrval[1]);
  n=0;
}



1652
Art / Re: Magic Animation Request
« on: January 13, 2013, 09:48:51 am »
Should it overlay the thing that is hit? Should it be inverted?

1653
Minecraft Discussion / Re: Lua minecraft IRC server. (computercraft mod)
« on: January 12, 2013, 01:36:06 pm »
The two lights that make up the cursor actually blink :)

1654
Minecraft Discussion / Re: Lua minecraft IRC server. (computercraft mod)
« on: January 12, 2013, 06:55:10 am »
My epic new server building!

1655
Art / Re: Magic Animation Request
« on: January 12, 2013, 05:57:41 am »
Is it supposed to be a projectile or a hit?

I made these:

1656
Other / Re: Programmable clock project
« on: January 11, 2013, 12:57:22 pm »
Indeed :)

1657
Other / Re: Programmable clock project
« on: January 11, 2013, 11:43:07 am »
You need a keyboard port/dock for it to program.
No. He told me that you can program it in a similar way you program on a calculator. By picking commands from lists.

1658
Art / Re: Propeller animation
« on: January 11, 2013, 07:34:38 am »
Can you make the frequency of the propeller depend on the acceleration in the upward direction of the vehicle?

1659
Other / Re: Programmable clock project
« on: January 11, 2013, 03:56:01 am »
Will it fit behind the lcd module or is or is it gonna be a slightly larger, but still pocket size device? I guess you use DIP components. Can we have a look at the breadboard setup?

1660
Art / Re: General purpose art thread
« on: January 11, 2013, 03:49:12 am »
XD the face was intentional!

1661
Art / Re: General purpose art thread
« on: January 10, 2013, 03:06:07 pm »
Derp ;D
erg leuk. je bent een begaafd schilder!
I used markers, so it's not quite the same as painting, but still thanks.

1662
Other / Re: Programmable clock project
« on: January 10, 2013, 08:12:30 am »
"with 6 buttons, powered by a pic18f46k20 and has 6 buttons"
*writes it down* This is obviously very important :)
How big is it gonna be?

1663
Art / Re: General purpose art thread
« on: January 10, 2013, 06:36:45 am »
Derp ;D

1664
ROM Hacking and Console Homebrew / Re: Hacking multi-game arcade boards
« on: January 10, 2013, 06:36:19 am »
I think other forums have more users that have experience with the arcade boards you're talking about.

1665
Casio Calculators / Re: TI basic converter
« on: January 09, 2013, 03:08:04 pm »
I guess so.

Pages: 1 ... 109 110 [111] 112 113 ... 168