Issue #71 resolved
Anonymous created an issue

I get the following errors on Arduiono Due IDE

Arduino: 1.6.9 (Windows 10), Board: "Arduino Due (Programming Port)"

In file included from C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:35:0:

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp: In member function 'uint8_t LiquidCrystal_SR1W::clearSR()':

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:77:24: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

SR1W_ATOMIC_WRITE_LOW(srRegister, srMask);

                    ^

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.h:293:79: note: in definition of macro 'SR1W_ATOMIC_WRITE_LOW'

#define SR1W_ATOMIC_WRITE_LOW(reg, mask) ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { *reg &= ~mask; }

                                                                           ^

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:86:22: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

fio_bit reg_val = *srRegister;

                  ^

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:95:5: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

*srRegister = bit_high;

 ^

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:96:5: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

*srRegister = bit_low;

 ^

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:101:4: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

*srRegister = bit_high;

^

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp: In member function 'uint8_t LiquidCrystal_SR1W::loadSR(uint8_t)':

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:139:24: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

 fio_bit reg_val = *srRegister;

                    ^

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:144:6: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

 *srRegister = bit_low;

  ^

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:145:6: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

 *srRegister = bit_high;

  ^

In file included from C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:35:0:

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:151:26: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

SR1W_ATOMIC_WRITE_LOW(srRegister, srMask);

                      ^

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.h:293:79: note: in definition of macro 'SR1W_ATOMIC_WRITE_LOW'

#define SR1W_ATOMIC_WRITE_LOW(reg, mask) ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { *reg &= ~mask; }

                                                                           ^

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.cpp:158:27: error: invalid type argument of unary '*' (have 'fio_register {aka unsigned char}')

SR1W_ATOMIC_WRITE_HIGH(srRegister, srMask);

                       ^

C:\Program Files (x86)\Arduino\libraries\NewliquidCrystal\LiquidCrystal_SR1W.h:294:80: note: in definition of macro 'SR1W_ATOMIC_WRITE_HIGH'

#define SR1W_ATOMIC_WRITE_HIGH(reg, mask) ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { *reg |= mask; }

                                                                            ^

exit status 1 Error compiling for board Arduino Due (Programming Port).

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

Comments (7)

  1. Francisco Malpartida repo owner

    Please download the latest branch from the main repo (not the download section). That branch contains a patch to to avoid unsupported libraries on different architectures other than AVRs.

  2. Chamarejc

    Hello, The I2C lcd runs now but the contrast is very low. How can I adjust it ? Here under the code I use.

    include <Wire.h>

    include <LCD.h>

    include <LiquidCrystal_I2C.h>

    define I2C_ADDR 0x27

    define BACKLIGHT_PIN 3

    define En_pin 2

    define Rw_pin 1

    define Rs_pin 0

    define D4_pin 4

    define D5_pin 5

    define D6_pin 6

    define D7_pin 7

    int n = 1;

    LiquidCrystal_I2C lcd(I2C_ADDR,En_pin,Rw_pin,Rs_pin,D4_pin,D5_pin,D6_pin,D7_pin);

    void setup() { lcd.begin (16,2);

    lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE); lcd.setBacklight(HIGH); lcd.home (); lcd.print("---Hello Word---");
    lcd.setCursor (0,1); lcd.print(" Fantastic "); }

    void loop() {

    }

  3. Log in to comment