Friday, September 3, 2010

LCD code and sumo-bots

Lately I have been working on a code library for the Color LCD Shield I designed. I finished it and wrote a manual for it, you can download them here. The library now supports line drawing, square drawing, and string drawing.

In other news, I have been working on setting up sumo-bot workshops with the Tacoma Robotics Society. Check it out here.

6 comments:

  1. Dear Peter,
    Thanks for your great work, but I have a question. How can I show on the screen my float serail data?
    I mean, I am reading a serail data and I want to put it on lcd, but it just accept char values.
    If you could help, I will really apreciate it.
    Best regards.
    kaan

    ReplyDelete
  2. Thanks very much for the library. I have one question though. The font table seems to take up a lot of ram. Would it be possible to implement that in progmem? I spent a number of hours trying to implement this myself to no avail. I was also wondering what would be necessary to be able to call {code}LCDPutStr(" Init", 2, 2, GREEN, BLACK);{/code{ like this {code}elm_command(str, PSTR("ATDPN\r"));{/code} with PSTR("something") as the string input?
    All of this stems from not having enough ram.

    ReplyDelete
  3. I just wrote a function called LCDPutStr_P that takes strings from PSTR() {the PROGMEM} and prinsts them. It gave me just enough ram to boot part way up. The font still takes up a massive amount of ram. The lcd clock demo code has a font code that stores in PROGMEM but it has some bugs. I have a lab report to finish but I will update you if I make it work.

    ReplyDelete
  4. @BUTECH - Sadly I myself have not been able to find out how to do that. The problem is in changing from the string from the serial monitor to the char text to be displayed screen.
    @Dan - The font is definitely big, I am not sure about putting the font in the progmem but if you get it working send me the code .

    Both of you, extremely sorry about taking an eternity to reply, the blog did not notify me of comments. And sorry that I was not really able to answer either of your questions. I wish you luck on your projects.

    ReplyDelete
  5. Here's your code with the font in progmem:
    http://wa5znu.org/2011/05/arduino-sparkfun-lcd/

    ReplyDelete
  6. Was wondering myself if u managed to figure out how to make the LCD display a float value read from a sensor for example, thanks

    ReplyDelete