Go Down

Topic: Secons Microvga dumb terminal. (Read 2 times) previous topic - next topic

Royal

Apr 01, 2012, 01:57 am Last Edit: Apr 01, 2012, 09:39 pm by Royal Reason: 1
I am new to Ardunio and would like some code for a Secons Microvga to display text on a monitor.

Nick Gammon

Please edit your post and get rid of the all caps (subject line too).

robtillaart

(Upper case is considered shouting)

Have you searched the homepage of the microVGA?  - http://www.microvga.com/ -
There is sample code there, I recall that connecting the shield was less trivial

found this code in my basement, might get you started ...
Code: [Select]

//
//    FILE: test3.pde
//  AUTHOR: Rob Tillaart
// VERSION: 0.1.00
// PURPOSE: test microVGA
//
// HISTORY:
// 0.1.00 - 2011-06-13  initial version
//
// Released to the public domain
//

#define OFF         "\033[0m"
#define BOLD        "\033[1m"
#define LOWINTENS   "\033[2m"
#define UNDERLINE   "\033[4m"
#define BLINK       "\033[5m"
#define REVERSE     "\033[7m"

#define GOTOXY( x,y) "\033[x;yH"   // Esc[Line;ColumnH

#define CLS          "\033[2J"     // Esc[2J Clear entire screen

void setup()
{
  Serial.begin(38400);
  Serial.println("START");
  pinMode(13, OUTPUT);
}

void loop()
{

  Serial.print(BOLD);
  Serial.println("bold - Hello World");
  Serial.print(OFF);
  Serial.println("Goodbye");

  Serial.print(LOWINTENS);
  Serial.println("lowintense - Hello World");
  Serial.print(OFF);
  Serial.println("Goodbye");

  Serial.print(UNDERLINE);
  Serial.println("underline - Hello World");
  Serial.print(OFF);
  Serial.println("Goodbye");

  Serial.print(BLINK);
  Serial.println("blink - Hello World");
  Serial.print(OFF);
  Serial.println("Goodbye");

  Serial.print(REVERSE);
  Serial.println("reverse - Hello World");
  Serial.print(OFF);
  Serial.println("Goodbye");

  Serial.print(GOTOXY(3,3));
  Serial.println("gotoxy 3,3 - Hello World");
  Serial.print(OFF);
  Serial.println("Goodbye"); 

  Serial.print(CLS);
  Serial.println("Hello World");
  Serial.print(OFF);
  Serial.println("Goodbye");

  digitalWrite(13, HIGH);
  delay(2000);
  for (int i =0; i< 100; i++)
  {
    Serial.println(i,DEC);
  }
  digitalWrite(13, LOW);

  delay(1000);
}

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Royal

The sample code from the microvga web site works fine but only puts a "U" on the screen.  I would like to put text on the screen.  I gave your code a try and nothing worked. , Thanks

robtillaart


I connected through the serial interface, not the SPI interface ... Which one are you using?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up