nkorth / arduino-tvout

Automatically exported from code.google.com/p/arduino-tvout
0 stars 0 forks source link

Code defect? #92

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
PC: Linux Mint 17.1 KDE
Arduino IDE 1:1.0.5
Arduino Leonardo
Please provide any additional information below.
When I try to upload DemoPAL program:
/home/szymex/sketchbook/libraries/TVout/TVout.cpp: In member function ‘void 
TVout::tone(unsigned int, long unsigned int)’:
/home/szymex/sketchbook/libraries/TVout/TVout.cpp:825:5: error: ‘DDR_SND’ 
was not declared in this scope
     DDR_SND |= _BV(SND_PIN); //set pb3 (digital pin 11) to output
     ^
In file included from /usr/lib/avr/include/avr/io.h:99:0,
                 from /home/szymex/sketchbook/libraries/TVout/TVout.h:35,
                 from /home/szymex/sketchbook/libraries/TVout/TVout.cpp:35:
/home/szymex/sketchbook/libraries/TVout/TVout.cpp:825:20: error: ‘SND_PIN’ 
was not declared in this scope
     DDR_SND |= _BV(SND_PIN); //set pb3 (digital pin 11) to output
                    ^
/home/szymex/sketchbook/libraries/TVout/TVout.cpp: In member function ‘void 
TVout::noTone()’:
/home/szymex/sketchbook/libraries/TVout/TVout.cpp:876:2: error: ‘PORT_SND’ 
was not declared in this scope
  PORT_SND &= ~(_BV(SND_PIN)); //set pin 11 to 0
  ^
In file included from /usr/lib/avr/include/avr/io.h:99:0,
                 from /home/szymex/sketchbook/libraries/TVout/TVout.h:35,
                 from /home/szymex/sketchbook/libraries/TVout/TVout.cpp:35:
/home/szymex/sketchbook/libraries/TVout/TVout.cpp:876:20: error: ‘SND_PIN’ 
was not declared in this scope
  PORT_SND &= ~(_BV(SND_PIN)); //set pin 11 to 0
                    ^

Original issue reported on code.google.com by szyme...@gmail.com on 2 May 2015 at 3:49