Shop OBEX P1 Docs P2 Docs Learn Events
FemtoBasic Color — Parallax Forums

FemtoBasic Color

HumanoidoHumanoido Posts: 5,770
edited 2009-05-07 04:00 in Propeller 1
One thing leads to another, and while viewing the code, I see many statements involving color. Is there a color version FemtoBasic with operating manual and examples?
Mike said...
There's no color version because the existing versions do color. Look again at the list of screen commands. You can set the color palette of each character in the TV version to one of 16 foreground / background pairs and each line in the VGA version. In the TV version, you can change the foreground and background color of any of the 16 palettes. In the VGA version, you set the foreground / background colors for each row of the display. This is a restriction of the VGA driver used. The DISPLAY statement makes it easy to handle these screen command sequences. It's possible to change to a different display driver. I've used Chip's 1024 x 768 pixel tile-based driver for example. It takes a little work to add it because the driver doesn't include much in the way of interface routines. FemtoBasic needs things like .dec / .bin / .hex / .str and ways to position the cursor, backspace, fiddle with color, etc. Post Edited (Mike Green) : 5/3/2009 8:55:39 PM GMT
OBC said...
Are you using a PAL or NTSC display? I did a AiGeneric mod of Femto that does color, etc but currently only works under NTSC. OBC
OBC: I'm using a TV with NTSC standard. I'm very interested in learning about your FemtoBasic version that does color. How is it different from the one Mike is talking about? FemtoBasic.spin version 3.007

Note: Actually, I would be more happy if the Hydra VGA lines were removed because they need to be shut off anyway to work with the FemtoBasic SD card commands etc. as I understand from the manual.

Post Edited (humanoido) : 5/4/2009 11:40:46 AM GMT

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-05-04 11:51
    Mine is a fork from Mike's 2.004 version.

    Here's two different editions. The second uses mpark's editor progrm.
    http://forums.parallax.com/showthread.php?p=690283
    (Grab the second attachment)

    http://forums.parallax.com/showthread.php?p=792542

    Adjust the video/audio/etc lines for the Hydra


    BTW: Here's a collection of toys you might enjoy..
    www.warrantyvoid.us/tiki-index.php?page=Software

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.

    Post Edited (Oldbitcollector) : 5/4/2009 12:10:06 PM GMT
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-05-04 19:37
    OBC, this is more of exactly what I was looking for
    to develop the HYDRA PROPELLER with FEMTOBASIC,
    EDITOR, COLOR, ETC. Thanks!!!

    humanoido
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-05-04 19:45
    Glad you like the mods.. Thank Mike He did the real work.. [noparse]:)[/noparse]

    This was the version of Femto that I wanted.. [noparse]:)[/noparse]

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-05-06 08:26
    I'm trying to get this to run on a tv with ntsc
    but there is nothing on the screen.

    Femto Basic 2.004 COLOR

    Exactly what needs to be changed?
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-05-06 12:16
    Find these lines...

       dspPins   =  12   ' TV                                     
       keyPins   =  26   ' Keyboard
       SoundPin  =  10   ' Sound 
    
    



    Change them to:

       dspPins   =  24   ' TV                                     
       keyPins   =  12   ' Keyboard
       SoundPin  =  7   ' Sound 
    
    



    I don't own a Hydra, but I believe it is correct.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-05-06 14:55
    The tv screen still does not appear.
    Is this because I'm loading it into the 128K Game Card?
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-05-07 01:27
    Did you adjust your speed settings for the 10mhz xtal on the Hydra?

            _CLKMODE                = xtal1 + pll8x
            _XINFREQ                = 10_000_000 + 0000  
    
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • HumanoidoHumanoido Posts: 5,770
    edited 2009-05-07 04:00
    I made those changes and one more with the keyboard at 13.
    It works great! Plus it works fine in the 128K expansion card.
    One version can reside on the main board and the color version
    can fit the card. There should be a soft switch that would give
    a choice of running off the main board or the expansion card,
    to eliminate the need for plugging/unplugging...
Sign In or Register to comment.