Replacing array member on the fly (big LCD characters idea)


Closed Thread
Results 1 to 38 of 38

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,177


    Did you find this post helpful? Yes | No

    Default Re: Replacing array member on the fly (big LCD characters idea)

    Quote Originally Posted by CuriousOne View Post
    But I have issue with statement for dividing bit variable into two. Say I have %10101010. How should I divide it into two variables, one which has 5 bits from left, and another having 3 bits from right?
    Something like this?

    Code:
    byte_var    var byte
    a_left         var byte
    b_left         var byte
    
    byte_var=%10101010
    a_left=byte_var & %11111000
    b_left=byte_var & %00000111
    Ioannis

  2. #2
    Join Date
    Feb 2013
    Posts
    1,163


    Did you find this post helpful? Yes | No

    Default Re: Replacing array member on the fly (big LCD characters idea)

    Yes, but I was thinking about either <<, >> or DIG() operators...

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,177


    Did you find this post helpful? Yes | No

    Default Re: Replacing array member on the fly (big LCD characters idea)

    then combine accordingly like that:

    Code:
    a_left=(byte_var & %11111000)>>3
    to make it right justified if needed.

    Ioannis

  4. #4
    Join Date
    Feb 2013
    Posts
    1,163


    Did you find this post helpful? Yes | No

    Default Re: Replacing array member on the fly (big LCD characters idea)

    Found interesting thing. On power up, custom character area in normal LCD are empty, but on WS0010 OLED displays, they are filled with random numbers on power up.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,177


    Did you find this post helpful? Yes | No

    Default Re: Replacing array member on the fly (big LCD characters idea)

    On the custom character, unless explicitly stated, you should consider it full of rubbish.

    Ioannis

  6. #6
    Join Date
    Feb 2013
    Posts
    1,163


    Did you find this post helpful? Yes | No

    Default Re: Replacing array member on the fly (big LCD characters idea)

    Yes, but on LCD it is usually empty. On OLED - it is filled with different garbage on each power up.
    Anyways, problem solved, also did some nice animation, will post code and video later.

  7. #7
    Join Date
    Feb 2013
    Posts
    1,163


    Did you find this post helpful? Yes | No

    Default Re: Replacing array member on the fly (big LCD characters idea)


Similar Threads

  1. String of characters(array) to decimal value
    By tacbanon in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 20th June 2012, 14:30
  2. write big text to lcd
    By isaac in forum General
    Replies: 3
    Last Post: - 8th October 2008, 01:45
  3. Big big big memory or tiny SDs!
    By Ron Marcus in forum Off Topic
    Replies: 9
    Last Post: - 25th May 2007, 18:02
  4. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  5. Replacing an ARRAY with EEPROM write to save space?
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th March 2005, 18:31

Members who have read this thread : 0

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