Menu

define LCD_RW P0RT errors on compiling

2025-03-01
2025-03-02
  • Roger Jönsson

    Roger Jönsson - 2025-03-01

    I'm testing out LCD_IO 4 and I tried to: #define LCD_RW P0RTE.1
    The GC studio compiler refuses with: "P0RTE.1, or your Defined CONSTANT, is not a valid I/O pin or port (System Include)." (I also tried other ports)
    The documentation on LCD_IO 4 says "LCD_RW Specifies the output pin that is connected to Read/Write on the LCD. The R/W pin can be disabled*"

    Yes, #define LCD_NO_RW (found in an example) works , but why doesn't #define LCD_RW P0RT X.X ?

    Also, the Four Wire LCD Example on the LCD_IO 4 documentation page uses an extra underscore like: _LCD_RS PORTA.7 . This is a bit confusing (leading to multiple error sreported) as the complier just does not accept it.

     

    Last edit: Roger Jönsson 2025-03-01
  • HackInBlack

    HackInBlack - 2025-03-02

    i get LCD_RW PORTx.x to assemble OK in this dummy program so your problem seems to be elsewhere; does your chip actually have the port you are aiming at?

     

    Last edit: HackInBlack 2025-03-02
  • Roger Jönsson

    Roger Jönsson - 2025-03-02

    Sigh. Typo. P0RTE.1 instead of PORTE.1. How did I not see that...

     
  • Angel Mier

    Angel Mier - 2025-03-02

    I was just going to point on that, glad you find out.

    Angel

     
  • HackInBlack

    HackInBlack - 2025-03-02

    glad that's sorted...the sneaky " . "

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.