summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2013-05-15 15:32:22 +0300
committerYuval Adam <yuv.adm@gmail.com>2013-05-15 15:32:22 +0300
commit70d551ce7e8bc33d3fe59be05132a9c32f945eec (patch)
tree97ec47b1af2977502f4134654a6afd7f0f665c74
parent79320b514d20a419d046718621bff9bd181ab431 (diff)
A vga version that should show color
-rw-r--r--vga-sync/src/sketch.ino2
1 files changed, 2 insertions, 0 deletions
diff --git a/vga-sync/src/sketch.ino b/vga-sync/src/sketch.ino
index 9bfafa0..438508d 100644
--- a/vga-sync/src/sketch.ino
+++ b/vga-sync/src/sketch.ino
@@ -26,9 +26,11 @@ volatile unsigned int linecount;
void setup()
{
//Serial.begin(9600); // set up Serial library at 9600 bps
+ DDRB |= B00000111;
DDRD |= B11100000; // it sets pins 7, 6 and 5 as output without changing the value of pins 0 & 1, which are RX & TX
// 76543210 <- pin translation
+ PORTB |= B00000111;
PORTD |= B11000000; // sets pins 7 (hSync) and 6 (vSync) HIGH
// 76543210;