Welcome, Guest. Please login or register.

Author Topic: using those tiny little LCD screens as monitors...  (Read 4797 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« on: January 09, 2011, 10:33:55 AM »
I've used a Sony PSOne screen with the Amiga's composite output, and also with a C64.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #1 on: January 09, 2011, 12:35:20 PM »
Quote from: JJ;605022
love sig moto :)


Ta :) Hope you managed to break out of the infinite loop.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #2 on: January 09, 2011, 01:03:09 PM »
@Sam
If you're just using it for trackers, do you really need to use VGA through a scandoubler? Just seems to me like you're making life harder for yourself :) Any composite monitor should work I would have thought.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #3 on: January 09, 2011, 01:10:44 PM »
Quote from: JJ;605028
there is a coding error in your sig though :)

you have got fro c = and then you next ct ?

Oh yeah! Fixed :)

Quote from: JJ;605028
I prefer just to use next without the varaible anyway as long as code nested properly not an issue and you can make mistakes like yours then :)


Wouldn't lines 30 and 40 repeat infinitely then? I used the count variable so they would only repeat twice.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #4 on: January 09, 2011, 01:22:16 PM »
Quote from: SamOS39;605031
@motorollin

its a long story. the board inside my A1200 used to be inside a EZ tower which i had to sell at the time..

i never fitted the scan doubler and i didnt want to attept to remove it .. i dont even know if it can be removed ..

besides i got it plugged into a VGA tube at the moment and the picture is crystal clear!


Fair enough. It certainly would look better on VGA than composite.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #5 on: January 09, 2011, 01:24:04 PM »
Quote from: JJ;605032
no what i meant is

FOR C = 1 TO 2
  code
NEXT

usually in basic you dont have to say next c


Oh right. Presumably if you had a for..next loop embedded within another for..next loop you would have to specify which variable you were incrementing. Or would the BASIC interpreter just assume the NEXT corresponded to the preceding IF?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #6 on: January 09, 2011, 01:32:59 PM »
Quote from: nicholas;605035
My eyes!!!! It burns it burns!!!!

BASIC is t3h evil!!!!!


I love the fact that it's the language, not the song, which irritates you so much :lol:

Would The Final Countdown be more tolerable in C?

Code: [Select]

while(true)
{
   itsthefinalcountdown();
   for( int i=0; i<2; i++ )
   {
      da-na-naaaa-naaa();
      da-na-na-na-naaa();
      da-na-naaaa-naaa();
      da-na-na-na-na-na-naaaaa();
   }
   na-na-naaa();
   na-na_na-na-na-na_naaaaa();
   naaa-naaaaaaaa();
}


--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #7 on: January 09, 2011, 01:48:49 PM »
Quote from: Karlos;605037
Is it even the same loop?

"FOR C = 1 TO 2" looks like it would iterate once, whereas "for (int i=0; i<2; i++)" would iterate twice.


"FOR C = 1 TO 2" iterates twice - once when the value of C is 1, and again when the value is 2.

Edit - evidence attached ;)

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #8 on: January 09, 2011, 02:32:22 PM »
Quote from: tone007;605047
All this BASIC talk reminded me of the lame ASCII Pacman I wrote back in the 90s in QBasic.


/looks for qbasic interpreter

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #9 on: January 09, 2011, 02:34:13 PM »
Quote from: Karlos;605048
Inclusive counting?!



Everything you need to know about what's wrong with BASIC is right there!


Surely it doesn't matter as long as you know? :)

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #10 on: January 09, 2011, 02:38:27 PM »
Quote from: Karlos;605057
I guess I am just too used to the 0...N-1 method of counting ;)


It never made much sense to me TBH. The inclusive method feels more logical to me. I sometimes still wonder why my loops don't iterate as many times as I expect them to :lol:

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #11 on: January 09, 2011, 02:53:39 PM »
Quote from: Karlos;605060
Well, if you want to use the "inclusive" BASIC style looping, it's easy. Just change the < test for <= ;)


Is x<=1 less efficient than x<2, both in interpreted and compiled code?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: using those tiny little LCD screens as monitors...
« Reply #12 on: January 09, 2011, 02:55:38 PM »
Quote from: AlfaRomeo;605065
Hi people,
I have a broken iPaq h5550 and love to make a monitor for my A600 from it´s LCD, I think it may have input lines for rgb.
Wonder to know if it´s possible to connect it..


If you can find the lines for video input and the refresh rate is compatible then I don't see why not.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10