4-bit GUI (testing) Now with WS2812B RGB LED test example

1235»

Comments

  • Updated to garryj's 0.8c USB code and fixed up some things.
    Added user long to each object so that common code can handle multiple similar items.

    Anyway, this one does something mildly amusing... Shows the state of several of the I/O pins that are tied to green LEDs on P123.

    1632 x 1224 - 692K
    Prop Info and Apps: http://www.rayslogic.com/
  • Used the GUI to construct a basic serial terminal.
    It is very limited, but think it will work for something I need...

    Uses 8 cogs now, not all very efficiently...
    Added one each for serial transmit and receive.
    Last one processes incoming characters and turns into text array.
    1632 x 1224 - 535K
    Prop Info and Apps: http://www.rayslogic.com/
  • Rayman wrote: »
    Used the GUI to construct a basic serial terminal.
    It is very limited, but think it will work for something I need...

    Uses 8 cogs now, not all very efficiently...
    Added one each for serial transmit and receive.
    Last one processes incoming characters and turns into text array.

    Very nice! I bet you could get it down to two cogs: one for video and one for serial I/O and screen updating. And, if you had to... one cog, where you'd handle the video and serial on interrupts.
  • It'd be a lot more efficient with a text based display driver instead of a graphical one...
    In that case, I bet one or two cogs would be enough...
    Prop Info and Apps: http://www.rayslogic.com/
  • potatoheadpotatohead Posts: 8,773
    edited January 21 Vote Up0Vote Down
    If you rearranged your draw code to something like the original P1 graphics.spin, you would have to store a tile map to reproduce your current bitmap, but it's not that big.

    What you get in return is optional character mode windows and partial buffering. The mouse would have to get processed last and added in as a single sprite. Being only one, that may be pretty easy. Do it last, in blank, just before live pixels.

    Users could choose. Bitmap draw everything, or redirect tiles, character mode style.

    P1 TV text is an example of this.


    Do not taunt Happy Fun Ball! @opengeekorg ---> Be Excellent To One Another SKYPE = acuity_doug
    Parallax colors simplified: http://forums.parallax.com/showthread.php?123709-Commented-Graphics_Demo.spin<br>
  • P1 text graphics is incredibly efficient, but it has to be...

    A text window is a bad example for a graphical GUI.
    But, I just happened to need one and this was the easiest way for me...
    Prop Info and Apps: http://www.rayslogic.com/
  • Oh, no worries. You mentioned efficiency and it just made sense to mention the tile map as bit map idea.

    Do not taunt Happy Fun Ball! @opengeekorg ---> Be Excellent To One Another SKYPE = acuity_doug
    Parallax colors simplified: http://forums.parallax.com/showthread.php?123709-Commented-Graphics_Demo.spin<br>
  • Here's a test example that's more fun: WS2812B RGB Controller

    You can use the mouse to push buttons or click on color in the bitmap.

    My USB test board happened to have a servo connector that made it easy to hook up the WS2812B RGB Led.

    1632 x 1224 - 793K
    1632 x 1224 - 632K
    Prop Info and Apps: http://www.rayslogic.com/
Sign In or Register to comment.