Graphical Displays with PBP3


+ Reply to Thread
Results 1 to 40 of 115

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: Graphical Displays with PBP3

    Richard,
    Received my 5110 display today and have just started to have a play. The nokia demo appears to display perfectly - excellent. I'm a bit stumped on one thing I'm trying to do. The nokia demo draws a circle:

    DRAWCIRCLE 64,15,12

    which I assume is a circle located a x=64, y=15 and radius of 12 yeah?

    so I'm trying to draw a line from the centre of the circle to the top of the circle (or vice versa) so I tried:

    DRAWLINE 64,3,64,15,1

    which I assume is drawing a line from starting point X=64, Y=3 to ending point X=64, Y=15

    And indeed the line starts at the correct point (top centre) but only extends down 7 or 8 pixels ie not to centre of the circle?

    Any ideas?

    Regards,

    Troy

  2. #2
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: Graphical Displays with PBP3

    So, what's happening (for me) is for a line that's wider than it is higher (or equal), it appears from very initial testing to draw correctly. But if it's higher than it is wider, it doesn't?

    Troy

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: Graphical Displays with PBP3

    it appears there was a bug in drawing vertical lines. this now works
    Attached Files Attached Files
    Warning I'm not a teacher

  4. #4
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: Graphical Displays with PBP3

    Excellent! Hats off again Richard. This looked like a lot of work in putting it all together. If we ever meet, the drinks will definitely be on me!

    Troy

  5. #5
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: Graphical Displays with PBP3

    Richard,
    Another question: can we pass variables as parameters to these geometric routines?

    Like:

    DRAWLINE My_x1, My_y1, My_x2, My_y2, 1

    So far I'm trying to pass byte size variables but getting illegal opcode messages at compile?

    Troy

  6. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: Graphical Displays with PBP3

    Another question: can we pass variables as parameters to these geometric routines?
    EASY , Just add the needed macro's to the include file, you can dial up whatever you like

    http://www.picbasic.co.uk/forum/show...hlight=ssd1306
    http://www.picbasic.co.uk/forum/show...hlight=usercmd
    http://support.melabs.com/forum/picb...er/usercommand
    Last edited by richard; - 3rd April 2021 at 14:03.
    Warning I'm not a teacher

  7. #7
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: Graphical Displays with PBP3

    EASY , Just add the needed macro's to the include file, you can dial up whatever you like
    oookay

Similar Threads

  1. Replies: 3
    Last Post: - 1st January 2021, 22:28
  2. problem using Graphical LCD
    By Mostafa in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2007, 19:15
  3. Graphical LCDs
    By T.Jackson in forum General
    Replies: 5
    Last Post: - 14th May 2007, 07:29
  4. Vb 6.0 Graphical plug in
    By rocky79 in forum Serial
    Replies: 0
    Last Post: - 8th March 2006, 19:42
  5. Graphical user interface
    By rocky79 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th October 2005, 13:25

Members who have read this thread : 15

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts