Loading...
Pages: [1]   Go Down
Author Topic: Arduino VGAout  (Read 666 times)
0 Members and 1 Guest are viewing this topic.
Japan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I watched this video.
http://www.youtube.com/watch?v=_xTTg-i0Ak8&feature=youtu.be

Nice Hack!
http://www.reddit.com/r/HSL/comments/168zwo/arduino_vga/

So, I came back on the making of Arduino program.
First, I made easy sample sketch for text display.


Code:
#include "SYSdef.h"
#include "CRTdef.h"
#include "INTdef.h"
#include "CSLdef.h"

/*==========================================================================*/
/*  Program                                                                 */
/*==========================================================================*/
CSYS objSYS;
CCRT objCRT;
CCSL objCSL;
CINT objINT;

void setup()
{
    objSYS.Ini();               /* re-initialize after Arduini IDE init()   */
    objCRT.ChangeMode( CRT_TEXT );
    sei();                      /* interrupt enable                         */
}

void loop()
{
    vram_data[8*0+0] = 'H';     /* line 1   */
    vram_data[8*0+1] = 'a';
    vram_data[8*0+2] = 'p';
    vram_data[8*0+3] = 'p';
    vram_data[8*0+4] = 'y';
   
    vram_data[8*1+0] = 'N';     /* line 2   */
    vram_data[8*1+1] = 'e';
    vram_data[8*1+2] = 'w';
   
    vram_data[8*2+0] = 'y';     /* line 3   */
    vram_data[8*2+1] = 'e';
    vram_data[8*2+2] = 'a';
    vram_data[8*2+3] = 'r';
    vram_data[8*2+4] = '!';
   
    LineColor[0] = COL_RED;
    LineColor[1] = COL_GRN;
    LineColor[2] = COL_BLU;
}

GoogleCode
http://code.google.com/p/arduino-vgaout/

1 year ago
http://arduino.cc/forum/index.php/topic,76020.45.html

I will enjyoy with Arduino again.
Thanks!
Logged

Japan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all!
I programmed some functions.
  put_char(x,y,c)
  set_line_color(line,color)
  delay66(n)

http://code.google.com/p/arduino-vgaout/wiki/Welcome

And I wrote a simple skrtch.


You can download the code "VGA13_20130202.zip".
http://code.google.com/p/arduino-vgaout/downloads/list

http://code.google.com/p/arduino-vgaout/

Thanks!
Logged

Japan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all!

I have added a few functions.
And write simple example sketch.



64-color VGA with Arduino and 8 register
http://code.google.com/p/arduino-vgaout/

functions
http://code.google.com/p/arduino-vgaout/wiki/Welcome

sketch
http://code.google.com/p/arduino-vgaout/wiki/Example2

code : VGA13_0216.zip
http://code.google.com/p/arduino-vgaout/downloads/list

Thanks!
Logged

Japan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all!
I have added draw line function.
And write an example sketch.



64-color VGA with Arduino and 8 register
http://code.google.com/p/arduino-vgaout/

schematic and pictures : VGAout_Schematic.pdf
code : VGA13_0315.zip
http://code.google.com/p/arduino-vgaout/downloads/list

Thanks!
Logged

Pages: [1]   Go Up
Print
 
Jump to: