element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
element14's The Ben Heck Show
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • More
  • Cancel
element14's The Ben Heck Show
Forum Basic pocket computer display modification
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join element14's The Ben Heck Show to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 32 replies
  • Subscribers 35 subscribers
  • Views 5011 views
  • Users 0 members are here
  • pc
  • build
  • code
  • pocket
  • display
  • ben_heck
  • basic
Related

Basic pocket computer display modification

ryan27968
ryan27968 over 12 years ago

Hi ben. I was watching old versions of your show and was wondering what is involved in changing the code for your basic pocket computer to work on a 20 by 4 display instead of a 16 by 4. I have tried messing around with the code but with no luck. Thanks in advance.

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 11 years ago in reply to Former Member +1
    WARNING! I DO NOT HAVE ANY HARDWARE TO TEST THIS WITH! THIS MAY STILL BE BROKEN! tl;dr Now that that's out of the way, here's a (potentially) fixed copy of the script: https://gist.github.com/zanothis…
  • colecago
    colecago over 12 years ago

    I don't see how that would affect it much.  Those displays are pretty universal in terms of driving, and you are just increasing the number of characters per row so I imagine you'd just change whatever code might be in there that wraps characters when reaching the end of a row.

     

    Have you tried running the display as is without code changes?  What problems are you having?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ryan27968
    ryan27968 over 12 years ago in reply to colecago

    the text shows but the line breaks and such are all out of order. here is a pic: . i found the code here: http://www.element14.com/community/message/71219#71219/l/re-80s-pocket-computer. i did try to change all instances of 16 in relation to the screen to 20 but it didnt do much.image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • colecago
    colecago over 12 years ago in reply to ryan27968

    Did you adjust the size of screenMem to be 76 and change lcd.begin to (20,4)?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ryan27968
    ryan27968 over 12 years ago in reply to colecago

    I hadnt tried increasing the screenmem. it has helped but there are a few glitches. first of all the weird characters shown when it boots:image

    next is the way it breaks lines:

    image

    also, why is it putting the place where you type commands there instead of on a new line?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • colecago
    colecago over 12 years ago

    That code is a lot more in depth than I thought :-)  Maybe I can get some insight from the creator this weekend and report back.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ryan27968
    ryan27968 over 12 years ago in reply to colecago

    ok. thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ryan27968
    ryan27968 over 12 years ago in reply to colecago

    i recompiled it on a different pc and uploaded it and somehow it has helped. here are some screenshots. after first boot: .(note where the cursor is and the strange symbol under it). after typing print "hi"(before pressing enter) : . after pressing enter: . and after typing print "hi again" and pressing enter: (note that it is not showing the last " of print "hi again". it is basically working except for the rightmost 4 digits.imageimageimageimage

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • benheck
    benheck over 12 years ago in reply to ryan27968

    So a 2 row LCD is pretty straightforward.

     

    What I found with 4 row ones is it interlaces the rows, for some reason. So they appear like this:

     

    Row 1

    Row 3

    Row 2

    Row 4

     

    Not sure why.

     

    On my code I streamed the data meant for the serial terminal into "screen memory" and this is re-organized to appear correctly on the 20x4 display.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ryan27968
    ryan27968 over 12 years ago in reply to benheck

    thanks. so what do i need to change to make it work?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ryan27968
    ryan27968 over 12 years ago in reply to ryan27968

    i still need help to get this to work on a 20x4 display. it is still behaving strange.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube