Hi everyone,
I encountered a problem while I was programming a mock-up of a soon-to-be motorcycle LCD dashboard. I'm using a generic E-bay in-car dashboard mount TFT (lots of words), 4.3 inch with a composite connection. I hooked it up to my arduino duemilanove using the TV-out library. The screen works, and it displays what I want to BUT it doesn't use the whole screen. I attached a photo; the dots in the corners should be in the very corners of the screen, but as you can see, they aren't.
I've tested the program with another screen (a 3.5" car tft) and it did the same thing. I tested the screen with a raspberry pi and a TV receiver, and those did use the whole screen.
My question is: has anyone encountered this problem as well and/or does anyone know what's causing this (and, if at all possible, how to solve it)?
I've added my code as well.
#include <TM1638.h>
#include <TVout.h>
#include <fontALL.h>
#include "oili.h"
// define a module on data pin 8, clock pin 9 and strobe pin 7
TM1638 module(3, 2, 4);
TVout TV;
int oil=0;
int neutral=0;
int speedd=0;
void setup() {
// display a hexadecimal number and set the left 4 dots
TV.begin(PAL,128,96);
}
void loop() {
TV.clear_screen();
TV.draw_circle(40,40,40,1);
TV.draw_circle(100,20,15,1);
TV.set_pixel(0,0,1);
TV.set_pixel(127,0,1);
TV.set_pixel(127,95,1);
TV.set_pixel(0,95,1);
if( module.getButtons() == 0b00000001) //links
oil=!oil;
if (module.getButtons() == 0b10000000) //rechts
speedd++;
if(oil==1)
TV.bitmap(10,30,oili);
TV.select_font(font8x8ext);
TV.print(20,50,speedd);
TV.select_font(font4x6);
TV.print(50,46,"KMH");
delay(50);
}