Menu

GCBASIC Help misprint

2023-02-21
2023-02-25
  • Clint Koehn

    Clint Koehn - 2023-02-21

    This is incorrect in the help file:

    Example:
    
      #DEFINE LCD_IO 4
      #DEFINE LCD_SPEED OPTIMAL
    
      #DEFINE LCD_DB7 PORTB.5
      #DEFINE LCD_DB6 PORTB.4
      #DEFINE LCD_DB7 PORTB.3
      #DEFINE LCD_DB6 PORTB.2
    
      #DEFINE LCD_RW PORTA.3    'Must be defined for RW Mode
      #DEFINE LCD_RS PORTA,2
      #DEFINE LCD_ENABLE PORTA.1
    

    It should be more like:

    Example:
    
      #DEFINE LCD_IO 4
      #DEFINE LCD_SPEED OPTIMAL
    
      #DEFINE LCD_DB7 PORTB.5
      #DEFINE LCD_DB6 PORTB.4
      #DEFINE LCD_DB5 PORTB.3
      #DEFINE LCD_DB4 PORTB.2
    
      #DEFINE LCD_RW PORTA.3    'Must be defined for RW Mode
      #DEFINE LCD_RS PORTA,2
      #DEFINE LCD_ENABLE PORTA.1
    

    Later,
    Clint

     
  • Anobium

    Anobium - 2023-02-21

    @ckoehn

    Help me spot the different.... there is a typo! Which page in the Help ?

     
  • Clint Koehn

    Clint Koehn - 2023-02-21

    LCD_DB6 and LCD_DB7 are duplicated, and there is no LCD_DB4 or LCD_DB5.

      #DEFINE **LCD_DB7** PORTB.5
      #DEFINE LCD_DB6 PORTB.4
      #DEFINE **LCD_DB7** PORTB.3
      #DEFINE LCD_DB6 PORTB.2
    

    Later,
    Clint

     
  • Anobium

    Anobium - 2023-02-21

    Thank you.

    Sorted. Update on in all versions.

     
  • Chris Roper

    Chris Roper - 2023-02-24

    Whilst you are at it this also looks wrong:

    #DEFINE LCD_RS PORTA,2
    

    shouldn't that , be a . ?

     
    • Anobium

      Anobium - 2023-02-25

      Good spot. I found other ocurrances of the same error. All sorted.

      Thank you.

       

Log in to post a comment.