amcchord / arduino-tvout

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

the library doesnt work in arduino 1.0.1 environment or with the leonardo #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. update library

What is the expected output? What do you see instead?
library working with leonardo

What version of the product are you using? On what operating system?
windows 7, arduino environt 1.0.1

Please provide any additional information below.
the example wouldnt compile showed this error http://i.imgur.com/PzzYc.png when 
i tried.

it compiles just fine for uno

Original issue reported on code.google.com by fahimabr...@gmail.com on 29 Jul 2012 at 3:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
In the hardware_setup.h I tried adding the following:

[code]
#elif defined(__AVR_ATmega32U4__)
//video
#define PORT_VID    PORTE
#define DDR_VID     DDRE
#define VID_PIN     6
//sync
#define PORT_SYNC   PORTB
#define DDR_SYNC    DDRB
#define SYNC_PIN    5
//sound
#define PORT_SND    PORTB
#define DDR_SND     DDRB
#define SND_PIN     7

[/code]

Although it will compile it is not displaying as stable of a display as the 
Uno.  

I have been trying to translate the pin mapping from the details I have found 
online for the Leonardo.  It looks like Pin 7 is tied to E6, Pin 9 is tied to 
B5, and Pin 11 is tied to B7, so it looks like it should work.

Original comment by trod...@hotmail.com on 16 Oct 2012 at 1:53

GoogleCodeExporter commented 8 years ago
Hey I just wanted to say thank you! Your work is fantastic.

Original comment by fahimabr...@gmail.com on 16 Oct 2012 at 1:56

GoogleCodeExporter commented 8 years ago
after consulting this post and supplementing it with this post here 
http://arduino.ru/forum/programmirovanie/tv-out-leonardo

The hardware_setup.h should contain
[code]
#elif defined(__AVR_ATmega32U4__)
//video
#define _VID_PORT   PORTE
#define _VID_DDR    DDRE
#define _VID_PIN    6
//sync
#define _SYNC_PORT  PORTB
#define _SYNC_DDR   DDRB
#define _SYNC_PIN   5
//sound
#define _SND_PORT PORTB
#define _SND_DDR DDRB
#define _PIN_SND 7
#define _ANDI_HWS   "andi   r16,0xBF\n"
#define _BLD_HWS    "bld    r16,6\n\t"
[/code]

I found that when the leonardo is connected to usb the video doesn't look good, 
but when it is connected to external power it looks fine and works very well.

Good luck 

Original comment by rbals...@gmail.com on 26 Aug 2013 at 2:51

GoogleCodeExporter commented 8 years ago
Thanks for this effort to get it running on a Leonardo.

I've added the above text to the hardware_setup.h file but now am getting the 
following compile errors…

/Users/me/Documents/Arduino/libraries/TVout/TVout.cpp: In member function 'void 
TVout::tone(unsigned int, long unsigned int)':
/Users/me/Documents/Arduino/libraries/TVout/TVout.cpp:825: error: 'DDR_SND' was 
not declared in this scope
/Users/me/Documents/Arduino/libraries/TVout/TVout.cpp:825: error: 'SND_PIN' was 
not declared in this scope
/Users/me/Documents/Arduino/libraries/TVout/TVout.cpp: In member function 'void 
TVout::noTone()':
/Users/me/Documents/Arduino/libraries/TVout/TVout.cpp:876: error: 'PORT_SND' 
was not declared in this scope
/Users/me/Documents/Arduino/libraries/TVout/TVout.cpp:876: error: 'SND_PIN' was 
not declared in this scope

Hacking about with variable names hasn't solved the problem — #outofmydepth

Original comment by marcel.l...@gmail.com on 22 Sep 2013 at 12:03

GoogleCodeExporter commented 8 years ago
More larking about with this and other libraries has got my head melting.

I've also tried it on a Seeeduino 1.1 board (168) to no avail.  Learning loads 
in the process though!

I can do without sound output so even if I can get past these DDR_SND, SND_PIN 
errors it would be hugely helpful.

Simultaneously encouraged and frustrated that others have it working.  What am 
I missing??

Original comment by marcel.l...@gmail.com on 23 Sep 2013 at 1:07

GoogleCodeExporter commented 8 years ago
I tried with response #4, it compile (I put as the second elif), but doesn't 
show anything.

Let me know if someone did it, thanks!

Original comment by jepser...@gmail.com on 9 Oct 2013 at 12:20

GoogleCodeExporter commented 8 years ago
no one actually got this to successfully display on the Leonardo

the original article in a foreign language had shown that the original thread 
poster killed his Leonardo attempting to do this, and the few people with 
solutions on *this* google issues thread don't have much to show for their 
success in making it work

this issue hasn't been resolved

Original comment by stxbfran...@gmail.com on 16 Nov 2013 at 9:04

GoogleCodeExporter commented 8 years ago
With the above changes and WALL CHARGER usb power, I got the display on an old 
CRT working. This library WILL NOT function on a Leonardo running off a 
computer's power supply.

Original comment by MassiveD...@gmail.com on 24 Feb 2014 at 8:57