Go Down

Topic: how to install patches? (Read 1 time) previous topic - next topic

shareefm

I'm trying to get both DAC0 and DAC1 to output sin waves at the same time. I found this link which I think may prove helpful however I'm not sure where the "patch" file goes or what to do with it.
http://forum.arduino.cc/index.php?PHPSESSID=7fih8eh0hg5id1me6rm2pm9aq6&topic=129765.msg979701#msg979701

this was tested by someone else and he showed it to work.
http://forum.arduino.cc/index.php?topic=129765.msg980889#msg980889

How do I apply this patch?

Thanks for any help given.


Coding Badly


That patch was merged about a year ago...
https://github.com/arduino/Arduino/commit/a72cfc30878969b4feee065f22456e547375a132

shareefm

so replacing the old wiring_analog.c with the new one would fix the problem in your opinion?

Coding Badly


Using an IDE that was released within that last year should solve the problem.

shareefm

can you explain how I could do that. I'm a newbie

spycatcher2k

What IDE version are you currently running?
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.


spycatcher2k

Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

shareefm

early december.

When I try to use the code from the poster that I liked to, I can get a decent output from DAC1, however I can't get any output form DAC0. Even when I edit out DAC1, DAC0 doesn't work. I tried the sample blink program and had DAC1 as the output instead of pin 13 and it worked flawlessly. When I tried it with DAC0, it continued to work flawlessly. However when I try out this program it refuses to work.

My project is due in a month and this first step is already driving me up the wall.

Go Up