Solved: 2 errors compiling Arduino Sketch in Studio 7

Go To Last Post
24 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello everybody

First of all, excuse-me for my english but I am French-speaking.

 

I use Windows 10 and the IDE Arduino 1.6.10

I wrote a simple program whitch runs correctly from the Arduino IDE. I thought it would be interesting to try Atmel Studio and take advantage of the debug possibilities.

So I install Atmel Studio (build 1645)  and choose 'New Project'

I created project from Arduino Sketch and gave the name . I browsed to the Arduino Sketch  and the Sketch appeared in the main window with the name Sketch.cpp

When I try to compile, I have two errors:

1. recipe for target Sketch.o failed

2. Wire : no such file or directory

 

Probably this is simple to resolve but I am new to Studio and I dont find what to do.

 

Thank you to help me.

Last Edited: Tue. Jan 2, 2018 - 10:20 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You need to add the wire library to the project. It's not so simple, actually. First you need to add Wire.cpp and Wire.h to the project.

You can see how I added 2 libraries to an Arduino project:

 

 

You need to create the proper directories inside the project and place the files, then add them to the project by using "Add existing item" (right click on ArduinoCore and a menu will appear).

 

Then, you need to go to the project properties for ArduinoCore and add the path with the include file wire.h to the C++ compiler path, like this:

 

 

This might be tricky if you never used Studio, but if you have any problems, just ask.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello El Tangas

Thank you for replying.

I will try to follow your solution and I will keep you inform of my progress.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello El Tangas,

 

This was not easy but I think I have done what you have said. However, I have now 4 errors after compiling.

 

 

 

Attachment(s): 

Last Edited: Tue. Dec 19, 2017 - 04:08 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok. So what are the errors?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The photos are added to my message.

 

Y don't know how to include the photos within the text.

Last Edited: Tue. Dec 19, 2017 - 04:13 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Jean-Marie,

the best way to tell about error messages you have is to switch to the output tab, mark everything there, copy it and paste in a post here. It might look like rubbish to you, but for us it is the most complete source of information about what went into a build (which files and with which commands) and what came out of it (what result, and what errors).

 

Using screenshots for this is completely useless.

 

But if you sometime  want to insert a picture into a post, rather than have it as an attachement then use the icon/button (on the tool bar just above where you type text for your posts) with a mountain.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In the pictures I see an error about liquidcrystal_i2c.h not being found. That needs fixing first. If necessary setup header search paths so that can be found (assuming you have the file?)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Like you added the wire library, you also need to add the other required libraries until the compiler stops complaining of missing header files.

 

edit: So, you need the twi library, because wire has a dependency on it, and the liquidcrystal_i2c library. Then, if there are more errors, it's because these libs have more dependencies. Add these dependencies also, repeat until no more "file not found" errors appear.

Last Edited: Tue. Dec 19, 2017 - 10:04 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello JohanEcdahl, Clowson and El Tangas

Thank you very much for your reply.

I will try do follow your advices and then post the results but a large part of my time is devoted to the preparation of Christmas, so be patient!

 

By the way, why do I not receive any advise of the replies, although I marked it at the bottom of the page ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Jean-Marie wrote:
By the way, why do I not receive any advise of the replies, although I marked it at the bottom of the page ?

Probably because the notification functionality is broken, as so many other things on this website.

 

[sarcasm]Hang in there and it will be fixed any decade now... [/sarcasm]

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello JohanEkdahl

I was afraid I had forgotten to do something.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello El Tangas,

I suddenly realize that you work on ArduinoCore.

I tried do do the same thing but I don't find what to do to work on ArduinoCore.

Could you help me ?

Last Edited: Tue. Dec 26, 2017 - 05:21 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sure. As you know, when the Arduino sketch is imported, a "solution" containing 2 "projects" is created.

 

You can select the options for each project by right clicking on the project name (ArduinoCore in this case) in the solution explorer:

 

 

A menu will appear, where you can select the "properties" menu item.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you El Tangas for helping me but I was unable to make the errors disappear.

 

I read somewhere that  the Arduino IDE 1.6 caused errors with Atmel Studio 7, so I upgrated it to Arduino IDE 1.8.4 (the last version).

I checked the "Solution Explorer". This time, everything seemed correct.

 

 

I also checked the ArduinoCore ToolChain Directories for AVR/GNU C++ Compiler: This time, The Libraries "Wire" and "NewLiquidCrystal" where included.

 

So, Everything seemd beter than with the Arduino IDE 1.6

 

However, when I ask to build the program, I had 135 errors and 85 messages !!!!

 

This is the output file (I am sorry for the length):

 

------ Build started: Project: ArduinoCore, Configuration: Debug AVR ------

Build started.

Project "ArduinoCore.cppproj" (default targets):

Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').

Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\ArduinoCore.cppproj" (target "Build" depends on it):

Using "RunCompilerTask" task from assembly "C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll".

Task "RunCompilerTask"

Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils

C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 4 --output-sync 

Building file: ../src/libraries/newliquidcrystal/thirdparty0libraries/SoftI2CMaster_/SoftI2CMaster.cpp

Invoking: AVR8/GNU C Compiler : 5.4.0

"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-g++.exe" -funsigned-char -funsigned-bitfields -DDEBUG -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x0043 -DUSB_MANUFACTURER="\"Arduino LLC\""  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.150\include" -I"..\include\libraries\Wire" -I"..\include\libraries\Wire\utility" -I"..\include\libraries\newliquidcrystal" -I"..\include\libraries\newliquidcrystal\.hg\strip-backup" -I"..\include\libraries\newliquidcrystal\thirdparty libraries\SoftI2CMaster" -I"..\include\libraries\newliquidcrystal\thirdparty libraries\SoftI2CMaster\examples\TSL2561Soft" -I"..\include\libraries\newliquidcrystal\thirdparty libraries\SoftI2CMaster_" -I"..\include\core" -I"..\include\variants\standard"  -Os -fno-threadsafe-statics -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -w -mmcu=atmega328p -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.150\gcc\dev\atmega328p" -c -std=gnu++11 -MD -MP -MF "src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.d" -MT"src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.d" -MT"src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.o"   -o "src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.o" "../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp" 

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\Debug\Makefile(392,1): error: recipe for target 'src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.o' failed

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

..\include\libraries\newliquidcrystal/SoftI2CMaster.h: In function 'void i2c_wait_scl_high()':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(172,31): error: 'SCL_PORT' was not declared in this scope

#define SCL_IN  (_SFR_IO_ADDR(SCL_PORT) - 2)

                               ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(210,23): info: in expansion of macro 'SCL_IN'

      : : [SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN));

                       ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(210,46): error: 'SCL_PIN' was not declared in this scope

      : : [SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN));

                                              ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

..\include\libraries\newliquidcrystal/SoftI2CMaster.h: In function 'boolean i2c_init()':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(168,38): error: 'SCL_PORT' was not declared in this scope

#define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(264,23): info: in expansion of macro 'SCL_DDR'

        [SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), 

                       ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(264,47): error: 'SCL_PIN' was not declared in this scope

        [SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), 

                                               ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(167,38): error: 'SDA_PORT' was not declared in this scope

#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(266,23): info: in expansion of macro 'SDA_DDR'

        [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN), 

                       ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(266,47): error: 'SDA_PIN' was not declared in this scope

        [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN), 

                                               ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

..\include\libraries\newliquidcrystal/SoftI2CMaster.h: In function 'bool i2c_start(uint8_t)':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(167,38): error: 'SDA_PORT' was not declared in this scope

#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(284,25): info: in expansion of macro 'SDA_DDR'

      : : [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN),

                         ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(284,49): error: 'SDA_PIN' was not declared in this scope

      : : [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN),

                                                 ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(172,31): error: 'SCL_PORT' was not declared in this scope

#define SCL_IN  (_SFR_IO_ADDR(SCL_PORT) - 2)

                               ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(285,21): info: in expansion of macro 'SCL_IN'

        [SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN)); 

                     ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(285,43): error: 'SCL_PIN' was not declared in this scope

        [SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN)); 

                                           ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

..\include\libraries\newliquidcrystal/SoftI2CMaster.h: In function 'bool i2c_rep_start(uint8_t)':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(168,38): error: 'SCL_PORT' was not declared in this scope

#define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(309,25): info: in expansion of macro 'SCL_DDR'

      : : [SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN),[SCLIN] "I" (SCL_IN),

                         ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(309,49): error: 'SCL_PIN' was not declared in this scope

      : : [SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN),[SCLIN] "I" (SCL_IN),

                                                 ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(167,38): error: 'SDA_PORT' was not declared in this scope

#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(310,25): info: in expansion of macro 'SDA_DDR'

 

          [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN)); 

                         ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(310,49): error: 'SDA_PIN' was not declared in this scope

          [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN)); 

                                                 ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

..\include\libraries\newliquidcrystal/SoftI2CMaster.h: In function 'void i2c_start_wait(uint8_t)':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(167,38): error: 'SDA_PORT' was not declared in this scope

#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(337,24): info: in expansion of macro 'SDA_DDR'

     : : [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN),

                        ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(337,48): error: 'SDA_PIN' was not declared in this scope

     : : [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN),

                                                ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(172,31): error: 'SCL_PORT' was not declared in this scope

#define SCL_IN  (_SFR_IO_ADDR(SCL_PORT) - 2)

                               ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(338,20): info: in expansion of macro 'SCL_IN'

       [SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN)); 

                    ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(338,42): error: 'SCL_PIN' was not declared in this scope

       [SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN)); 

                                          ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

..\include\libraries\newliquidcrystal/SoftI2CMaster.h: In function 'void i2c_stop()':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(168,38): error: 'SCL_PORT' was not declared in this scope

#define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(357,25): info: in expansion of macro 'SCL_DDR'

      : : [SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),

                         ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(357,49): error: 'SCL_PIN' was not declared in this scope

      : : [SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),

                                                 ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(167,38): error: 'SDA_PORT' was not declared in this scope

#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(358,25): info: in expansion of macro 'SDA_DDR'

          [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN)); 

                         ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(358,49): error: 'SDA_PIN' was not declared in this scope

          [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN)); 

                                                 ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

..\include\libraries\newliquidcrystal/SoftI2CMaster.h: In function 'bool i2c_write(uint8_t)':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(168,38): error: 'SCL_PORT' was not declared in this scope

#define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(433,22): info: in expansion of macro 'SCL_DDR'

       [SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),

                      ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(433,46): error: 'SCL_PIN' was not declared in this scope

       [SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),

                                              ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(167,38): error: 'SDA_PORT' was not declared in this scope

#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(434,22): info: in expansion of macro 'SDA_DDR'

       [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN)); 

                      ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(434,46): error: 'SDA_PIN' was not declared in this scope

       [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN)); 

                                              ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

..\include\libraries\newliquidcrystal/SoftI2CMaster.h: In function 'uint8_t i2c_read(bool)':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(168,38): error: 'SCL_PORT' was not declared in this scope

#define SCL_DDR        (_SFR_IO_ADDR(SCL_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(502,22): info: in expansion of macro 'SCL_DDR'

       [SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),

                      ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(502,46): error: 'SCL_PIN' was not declared in this scope

       [SCLDDR] "I"  (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),

                                              ^

In file included from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:99:0,

                 from c:\program files (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\pgmspace.h:90,

                 from ..\include\core/Arduino.h:28,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(167,38): error: 'SDA_PORT' was not declared in this scope

#define SDA_DDR        (_SFR_IO_ADDR(SDA_PORT) - 1)

                                      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(503,22): info: in expansion of macro 'SDA_DDR'

       [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN) 

                      ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(503,46): error: 'SDA_PIN' was not declared in this scope

       [SDADDR] "I"  (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN) 

                                              ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(60,1): error: 'SoftI2CMaster' does not name a type

SoftI2CMaster::SoftI2CMaster()

^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(65,1): error: 'SoftI2CMaster' does not name a type

SoftI2CMaster::SoftI2CMaster(uint8_t sclPin, uint8_t sdaPin) 

^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(72,1): error: 'SoftI2CMaster' does not name a type

SoftI2CMaster::SoftI2CMaster(uint8_t sclPin, uint8_t sdaPin, uint8_t pullups)

^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(81,6): error: 'SoftI2CMaster' has not been declared

void SoftI2CMaster::setPins(uint8_t sclPin, uint8_t sdaPin, uint8_t pullups)

      ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'void setPins(uint8_t, uint8_t, uint8_t)':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(85,5): error: 'usePullups' was not declared in this scope

     usePullups = pullups;

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(87,5): error: '_sclPin' was not declared in this scope

     _sclPin = sclPin;

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(88,5): error: '_sdaPin' was not declared in this scope

     _sdaPin = sdaPin;

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(90,5): error: '_sclBitMask' was not declared in this scope

     _sclBitMask = digitalPinToBitMask(sclPin);

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(91,5): error: '_sdaBitMask' was not declared in this scope

     _sdaBitMask = digitalPinToBitMask(sdaPin);

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(94,5): error: '_sclPortReg' was not declared in this scope

     _sclPortReg  = portOutputRegister(port);

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(95,5): error: '_sclDirReg' was not declared in this scope

     _sclDirReg   = portModeRegister(port);

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(98,5): error: '_sdaPortReg' was not declared in this scope

     _sdaPortReg  = portOutputRegister(port);

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(99,5): error: '_sdaDirReg' was not declared in this scope

     _sdaDirReg   = portModeRegister(port);

     ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(106,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::beginTransmission(uint8_t address)

         ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'uint8_t beginTransmission(uint8_t)':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(108,15): error: too few arguments to function 'bool i2c_start(uint8_t)'

     i2c_start();

               ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(271,7): info: declared here

bool  i2c_start(uint8_t addr)

       ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(114,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::requestFrom(uint8_t address)

         ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'uint8_t requestFrom(uint8_t)':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(116,15): error: too few arguments to function 'bool i2c_start(uint8_t)'

     i2c_start();

               ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(271,7): info: declared here

bool  i2c_start(uint8_t addr)

       ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(121,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::requestFrom(int address)

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(127,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::beginTransmission(int address)

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(135,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::endTransmission(void)

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(145,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::write(uint8_t data)

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(153,6): error: 'SoftI2CMaster' has not been declared

void SoftI2CMaster::write(uint8_t* data, uint8_t quantity)

      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(163,6): error: 'SoftI2CMaster' has not been declared

void SoftI2CMaster::write(char* data)

      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(171,6): error: 'SoftI2CMaster' has not been declared

void SoftI2CMaster::write(int data)

      ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(179,6): error: 'SoftI2CMaster' has not been declared

void SoftI2CMaster::i2c_writebit( uint8_t c )

      ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'void i2c_writebit(uint8_t)':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,23): error: '_sdaDirReg' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(182,9): info: in expansion of macro 'i2c_sda_hi'

         i2c_sda_hi();

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,40): error: '_sdaBitMask' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(182,9): info: in expansion of macro 'i2c_sda_hi'

         i2c_sda_hi();

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(182,9): info: in expansion of macro 'i2c_sda_hi'

         i2c_sda_hi();

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,23): error: '_sdaPortReg' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(182,9): info: in expansion of macro 'i2c_sda_hi'

         i2c_sda_hi();

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(43,23): error: '_sdaPortReg' was not declared in this scope

                      *_sdaPortReg  &=~ _sdaBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(184,9): info: in expansion of macro 'i2c_sda_lo'

         i2c_sda_lo();

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(43,40): error: '_sdaBitMask' was not declared in this scope

                      *_sdaPortReg  &=~ _sdaBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(184,9): info: in expansion of macro 'i2c_sda_lo'

         i2c_sda_lo();

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(44,23): error: '_sdaDirReg' was not declared in this scope

                      *_sdaDirReg   |=  _sdaBitMask;  

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(184,9): info: in expansion of macro 'i2c_sda_lo'

         i2c_sda_lo();

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,23): error: '_sclDirReg' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(187,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,40): error: '_sclBitMask' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(187,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(187,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,23): error: '_sclPortReg' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(187,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(38,23): error: '_sclPortReg' was not declared in this scope

                      *_sclPortReg  &=~ _sclBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(190,5): info: in expansion of macro 'i2c_scl_lo'

     i2c_scl_lo();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(43,23): error: '_sdaPortReg' was not declared in this scope

                      *_sdaPortReg  &=~ _sdaBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(194,9): info: in expansion of macro 'i2c_sda_lo'

         i2c_sda_lo();

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(43,40): error: '_sdaBitMask' was not declared in this scope

                      *_sdaPortReg  &=~ _sdaBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(194,9): info: in expansion of macro 'i2c_sda_lo'

         i2c_sda_lo();

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(44,23): error: '_sdaDirReg' was not declared in this scope

                      *_sdaDirReg   |=  _sdaBitMask;  

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(194,9): info: in expansion of macro 'i2c_sda_lo'

         i2c_sda_lo();

         ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(200,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::i2c_readbit(void)

         ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'uint8_t i2c_readbit()':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,23): error: '_sdaDirReg' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(202,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,40): error: '_sdaBitMask' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(202,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(202,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,23): error: '_sdaPortReg' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(202,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,23): error: '_sclDirReg' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(203,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,40): error: '_sclBitMask' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(203,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(203,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,23): error: '_sclPortReg' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(203,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

In file included from ..\include\core/Arduino.h:28:0,

                 from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:15:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(206,37): error: '_sdaPin' was not declared in this scope

     uint8_t port = digitalPinToPort(_sdaPin);

                                     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(206,20): info: in expansion of macro 'digitalPinToPort'

     uint8_t port = digitalPinToPort(_sdaPin);

                    ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(38,23): error: '_sclPortReg' was not declared in this scope

                      *_sclPortReg  &=~ _sclBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(210,5): info: in expansion of macro 'i2c_scl_lo'

     i2c_scl_lo();

     ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(218,6): error: 'SoftI2CMaster' has not been declared

void SoftI2CMaster::i2c_init(void)

      ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'void i2c_init()':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(218,34): error: ambiguating new declaration of 'void i2c_init()'

void SoftI2CMaster::i2c_init(void)

                                  ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(248,9): info: old declaration 'boolean i2c_init()'

boolean i2c_init(void)

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,23): error: '_sdaDirReg' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(222,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,40): error: '_sdaBitMask' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(222,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(222,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,23): error: '_sdaPortReg' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(222,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,23): error: '_sclDirReg' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(223,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,40): error: '_sclBitMask' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(223,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(223,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,23): error: '_sclPortReg' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(223,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(230,6): error: 'SoftI2CMaster' has not been declared

void SoftI2CMaster::i2c_start(void)

      ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'void i2c_start()':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,23): error: '_sdaDirReg' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(235,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,40): error: '_sdaBitMask' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(235,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(235,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,23): error: '_sdaPortReg' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(235,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,23): error: '_sclDirReg' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(236,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,40): error: '_sclBitMask' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(236,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(236,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,23): error: '_sclPortReg' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(236,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(43,23): error: '_sdaPortReg' was not declared in this scope

                      *_sdaPortReg  &=~ _sdaBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(240,5): info: in expansion of macro 'i2c_sda_lo'

     i2c_sda_lo();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(38,23): error: '_sclPortReg' was not declared in this scope

                      *_sclPortReg  &=~ _sclBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(243,5): info: in expansion of macro 'i2c_scl_lo'

     i2c_scl_lo();

     ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(247,6): error: 'SoftI2CMaster' has not been declared

void SoftI2CMaster::i2c_repstart(void)

      ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'void i2c_repstart()':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,23): error: '_sdaDirReg' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(252,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,40): error: '_sdaBitMask' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(252,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(252,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,23): error: '_sdaPortReg' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(252,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,23): error: '_sclDirReg' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(253,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,40): error: '_sclBitMask' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(253,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(253,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,23): error: '_sclPortReg' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(253,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(38,23): error: '_sclPortReg' was not declared in this scope

                      *_sclPortReg  &=~ _sclBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(255,5): info: in expansion of macro 'i2c_scl_lo'

     i2c_scl_lo();                           // force SCL low

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(43,23): error: '_sdaPortReg' was not declared in this scope

                      *_sdaPortReg  &=~ _sdaBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(264,5): info: in expansion of macro 'i2c_sda_lo'

     i2c_sda_lo();                           // force SDA low

     ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(270,6): error: 'SoftI2CMaster' has not been declared

void SoftI2CMaster::i2c_stop(void)

      ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'void i2c_stop()':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(270,6): error: redefinition of 'void i2c_stop()'

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(341,7): info: 'void i2c_stop()' previously defined here

void  i2c_stop(void)

       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,23): error: '_sclDirReg' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(272,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(48,40): error: '_sclBitMask' was not declared in this scope

                      *_sclDirReg   &=~ _sclBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(272,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(272,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(49,23): error: '_sclPortReg' was not declared in this scope

     if(usePullups) { *_sclPortReg  |=  _sclBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(272,5): info: in expansion of macro 'i2c_scl_hi'

     i2c_scl_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,23): error: '_sdaDirReg' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(275,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(53,40): error: '_sdaBitMask' was not declared in this scope

                      *_sdaDirReg   &=~ _sdaBitMask;  \

                                        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(275,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,8): error: 'usePullups' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

        ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(275,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(54,23): error: '_sdaPortReg' was not declared in this scope

     if(usePullups) { *_sdaPortReg  |=  _sdaBitMask; } 

                       ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(275,5): info: in expansion of macro 'i2c_sda_hi'

     i2c_sda_hi();

     ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(281,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::i2c_write( uint8_t c )

         ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'uint8_t i2c_write(uint8_t)':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(281,45): error: ambiguating new declaration of 'uint8_t i2c_write(uint8_t)'

uint8_t SoftI2CMaster::i2c_write( uint8_t c )

                                             ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(361,6): info: old declaration 'bool i2c_write(uint8_t)'

bool i2c_write(uint8_t value)

      ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(293,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::i2c_read( uint8_t ack )

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(313,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::read( uint8_t ack )

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(319,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::read()

         ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'uint8_t read()':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(321,30): error: call of overloaded 'i2c_read(int)' is ambiguous

     return i2c_read( I2C_ACK );

                              ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(438,9): info: candidate: uint8_t i2c_read(bool)

uint8_t i2c_read(bool last)

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(293,9): info: candidate: uint8_t i2c_read(uint8_t)

uint8_t SoftI2CMaster::i2c_read( uint8_t ack )

         ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: At global scope:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(325,9): error: 'SoftI2CMaster' has not been declared

uint8_t SoftI2CMaster::readLast()

         ^

../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp: In function 'uint8_t readLast()':

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(327,30): error: call of overloaded 'i2c_read(int)' is ambiguous

     return i2c_read( I2C_NAK );

                              ^

In file included from ../src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.cpp:20:0:

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\include\libraries\newliquidcrystal\SoftI2CMaster.h(438,9): info: candidate: uint8_t i2c_read(bool)

uint8_t i2c_read(bool last)

         ^

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\src\libraries\newliquidcrystal\thirdparty%20libraries\SoftI2CMaster_\SoftI2CMaster.cpp(293,9): info: candidate: uint8_t i2c_read(uint8_t)

uint8_t SoftI2CMaster::i2c_read( uint8_t ack )

         ^

make: *** [src/libraries/newliquidcrystal/thirdparty%20libraries/SoftI2CMaster_/SoftI2CMaster.o] Error 1

Done executing task "RunCompilerTask" -- FAILED.

Done building target "CoreBuild" in project "ArduinoCore.cppproj" -- FAILED.

Done building project "ArduinoCore.cppproj" -- FAILED.

 

Build FAILED.

------ Build started: Project: Niveau_eau, Configuration: Debug AVR ------

Build started.

Project "Niveau_eau.cppproj" (default targets):

Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').

Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\Niveau_eau\Niveau_eau.cppproj" (target "Build" depends on it):

Task "RunCompilerTask"

Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils

C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 4 --output-sync 

Building target: Niveau_eau.elf

Invoking: AVR8/GNU Linker : 5.4.0

"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-g++.exe" -o Niveau_eau.elf  Sketch.o   -Wl,-Map="Niveau_eau.map" -Wl,--start-group -Wl,-lm -Wl,-lArduinoCore  -Wl,--end-group -Wl,-L"C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\ArduinoCore\Debug"  -Wl,--gc-sections -mmcu=atmega328p -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.150\gcc\dev\atmega328p" -Os  

C:\Users\JMCo\Documents\Atmel Studio\7.0\ArduinoNiveaud'Eau\ArduinoNiveaud'Eau\Niveau_eau\Debug\Makefile(108,1): error: recipe for target 'Niveau_eau.elf' failed

cannot find -lArduinoCorecollect2.exe(0,0): error: ld returned 1 exit status

make: *** [Niveau_eau.elf] Error 1

The command exited with code 2.

Done executing task "RunCompilerTask" -- FAILED.

Done building target "CoreBuild" in project "Niveau_eau.cppproj" -- FAILED.

Done building project "Niveau_eau.cppproj" -- FAILED.

 

Build FAILED.

========== Build: 0 succeeded or up-to-date, 2 failed, 0 skipped ==========

 

I also tried to copy the errors list but it is impossible, so the only thing I could do is  to take a PrintScreen of the beginning od the errors:

 

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I forgot to post you a picture in the last message.

 

 

 

The libraries "Wie" and "NewLiquidCrystal" are present.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@Jean-Marie,
.
I have not been following this thread. But it looks horrific.
.
Please copy-paste your working Arduino sketch and say which Arduino.
Then I will go through all the steps for you in creating a NEW project in AS7.
.
I suspect that you are using a 16x2 LCD with I2C adapter on a Uno.
Many people can build and test on real hardware. So we can get you running in about one hour. Within minutes when you are familiar with Atmel Studio.
.
David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you David for your help.

 

The Arduino code is following:

 


//Arduino 1.8.4  28/12/2017
///NIVEAU D'EAU
//////////////
#include <Wire.h> // present dans l'IDE Arduino
#include <LiquidCrystal_I2C.h> // Librairie importee disponible ici:
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads

// Fixation des adresses des pin I2C
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
//Autre adresse:  Lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

int Pin_Niveau = 0;     // Pin du Curseur du potentiomètre
int Niveau = 0;         // Valeur du Curseur du potentiomètre
byte Vanne = 0;       // N° de vanne
int PinVanne1 = 4;
int PinVanne2 = 8;
int PinVanne3 = 12;

void setup() {
  pinMode (PinVanne1,OUTPUT);
  pinMode (PinVanne2,OUTPUT);
  pinMode (PinVanne3,OUTPUT);
  Serial.begin(9600);
  Serial.println("Test du niveau d'eau"); 
  Serial.println("program loop");
  lcd.begin(16, 2); //initialise l'ecran de 16 caractères et 2 lignes
  lcd.backlight(); //éclairage de l'ecran
  lcd.clear(); //efface l'ecran
  lcd.setCursor(0,0); //Positionne le curseur 
  lcd.print("Niveau: ");
  lcd.setCursor(0,1);
  lcd.print("Vanne");
}
///////////////////////////////////////////////////////////
void loop() {
  delay(5000); // attend 5 secondes
  Niveau = analogRead(Pin_Niveau);    // lit la Pin de niveau
  Serial.println(Niveau);  // imprime le niveau sur le moniteur
  lcd.setCursor(8,0); //Positionne sur lcd (caract 8 , ligne 0)
  lcd.print(Niveau); //écrit le niveau lu
  lcd.print(" ");
  
  if ((Niveau < 1000) && (Vanne == 0)) {
    digitalWrite (PinVanne1,HIGH);
    Vanne = 1;
    Serial.println (Vanne);
  }
  if ((Vanne == 1) && (Niveau <= 934)) {
    digitalWrite (PinVanne1,LOW);
    digitalWrite (PinVanne2,HIGH);
    Vanne = 2;
    Serial.println(Vanne);    
  }
  if ((Vanne == 2) && (Niveau <= 868)) {
    digitalWrite (PinVanne2,LOW);
    digitalWrite (PinVanne3,HIGH);
    Vanne = 3;
    Serial.println(Vanne);
  }
  if ((Vanne == 3) && (Niveau <= 795)) {
    digitalWrite (PinVanne3,LOW);
    Vanne = 0;
    Serial.println(Vanne);   
    lcd.setCursor (0,1);
    lcd.print("Vannes closes");
    while (Niveau < 795)  {
    delay(5000); 
    Niveau = analogRead(Pin_Niveau);    // lit la Pin de niveau
    lcd.setCursor(8,0); //Positionne sur lcd (caract 8 , ligne 0)
    lcd.print(Niveau); //écrit le niveau lu
    lcd.print(" ");    
    } 
  }
  if (Vanne != 0) { //si Vanne n'est pas 0
  lcd.setCursor(6,1);
  lcd.print(Vanne);
  }
}
///////////////////////////////////////////////////////////

The board of the program is "Arduino Uno", although the program has been dowloaded in an Arduino nano and works as wel.

I effectively use a 16x2 LCD with an I2Cadapter.

5 jear ago, I was working on Studio 4 in assembler but I gave up and started working with the Arduino IDE. Studio 7 is quite different.

Once again, thank you for your intervention.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your project use the Malpartida LiquidCrystal library.   Yes,  it works in the Arduino IDE.   It is NOT supported by the IDE Library Manager.

 

AS7 has problems creating and importing from the Malpartida library.

 

I strongly recommend that you use Bill Perry's hd44780 library.

 

I simply commented out your lines,  added the hd44780 lines:

#include <Wire.h> // present dans l'IDE Arduino

#include <hd44780.h>                       // main hd44780 header
#include <hd44780ioClass/hd44780_I2Cexp.h> // i2c expander i/o class header

hd44780_I2Cexp lcd; // declare lcd object: auto locate & config exapander chip

//#include <LiquidCrystal_I2C.h> // Librairie importee disponible ici:
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads

// Fixation des adresses des pin I2C
//LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
//Autre adresse:  Lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

Then tested in the Arduino IDE.   Imported the sketch into AS7.   Build Solution (with F7 key).   All worked fine.

 

I can go through the steps for you,  but I suspect you have "created project from Arduino sketch" many times.

 

David.

 

Edit.   I looked at the Malpartida "problem".   If you skip the "SoftI2CMaster.cpp" compilation,  it builds ok.

 

Right-Click on ArduinoCore -> src -> libraries -> liquidcrystal -> thirdparty%20libraries -> SoftI2CMaster_ ->SoftI2CMaster.cpp

Select Properties -> Build Action -> None

 

Last Edited: Sun. Dec 31, 2017 - 12:23 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you very much, David.

 

I tried your second solution (no compiling of SoftI2CMaster.cpp). 

When I builded the solution, I had no error nor message. It is simply MARVELLOUS !!!

 

2017 ends very well. I wish you a happy new year.

 

Also thanks to El Tangas, Johan Eckdalh and Clawson who helped me resolving the problem.

Last Edited: Sun. Dec 31, 2017 - 03:40 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes,   the Malpartida library is usable in AS7 with that mod.

 

I still recommend using hd44780 library because it is compatible with the Library Manager.

And it can find and select the I2C slave address automatically.

 

The main lesson is:  Post/Attach your working sketch with your question.

It is far easier for people to reply to a "known" project.    Otherwise we have to guess.

 

Massive pastes (e.g. in #15) are better to attach as a text file

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I will follow your advice and use the hd44780 library in my sketch, post my program and use a text file if the text is too long.

 

Thank you for your recommendation.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello David,

 

I tried  the hd44780 library and everything was OK . I imported the sketch in Studio 7 and the program compiled  without error.

This is my program Arduino:

 

 

//Arduino 1.8.4  28/12/2017
///NIVEAU D'EAU
//////////////



//I strongly recommend that you use Bill Perry's hd44780 library. Recommmendation of David Prentice 
//https://www.avrfreaks.net/forum/2-errors-compiling-arduino-sketch-studio-7#comment-2358381 #19
#include <Wire.h> // present dans l'IDE Arduino
#include <hd44780.h>                       // main hd44780 header
#include <hd44780ioClass/hd44780_I2Cexp.h> // i2c expander i/o class header
hd44780_I2Cexp lcd; // declare lcd object: auto locate & config expander chip


//#include <LiquidCrystal_I2C.h> // Librairie importee disponible ici:
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads

// Fixation des adresses des pin I2C
//LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
//Autre adresse:  Lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

int Pin_Niveau = 0;     // Pin du Curseur du potentiomètre
int Niveau = 0;         // Valeur du Curseur du potentiomètre
byte Vanne = 0;       // N° de vanne
int PinVanne1 = 4;
int PinVanne2 = 8;
int PinVanne3 = 12;

void setup() {
  pinMode (PinVanne1,OUTPUT);
  pinMode (PinVanne2,OUTPUT);
  pinMode (PinVanne3,OUTPUT);
  Serial.begin(9600);
  Serial.println("Test du niveau d'eau"); 
  Serial.println("program loop");
  lcd.begin(16, 2); //initialise l'ecran de 16 caractères et 2 lignes
  lcd.backlight(); //éclairage de l'ecran
  lcd.clear(); //efface l'ecran
  lcd.setCursor(0,0); //Positionne le curseur 
  lcd.print("Niveau: ");
  lcd.setCursor(0,1);
  lcd.print("Vanne");
}
///////////////////////////////////////////////////////////
void loop() {
  delay(5000); // attend 5 secondes
  Niveau = analogRead(Pin_Niveau);    // lit la Pin de niveau
  Serial.println(Niveau);  // imprime le niveau sur le moniteur
  lcd.setCursor(8,0); //Positionne sur lcd (caract 8 , ligne 0)
  lcd.print(Niveau); //écrit le niveau lu
  lcd.print(" ");
  
  if ((Niveau < 1000) && (Vanne == 0)) {
    digitalWrite (PinVanne1,HIGH);
    Vanne = 1;
    Serial.println (Vanne);
  }
  if ((Vanne == 1) && (Niveau <= 934)) {
    digitalWrite (PinVanne1,LOW);
    digitalWrite (PinVanne2,HIGH);
    Vanne = 2;
    Serial.println(Vanne);    
  }
  if ((Vanne == 2) && (Niveau <= 868)) {
    digitalWrite (PinVanne2,LOW);
    digitalWrite (PinVanne3,HIGH);
    Vanne = 3;
    Serial.println(Vanne);
  }
  if ((Vanne == 3) && (Niveau <= 795)) {
    digitalWrite (PinVanne3,LOW);
    Vanne = 0;
    Serial.println(Vanne);   
    lcd.setCursor (0,1);
    lcd.print("Vannes closes");
    while (Niveau < 795)  {
    delay(5000); 
    Niveau = analogRead(Pin_Niveau);    // lit la Pin de niveau
    lcd.setCursor(8,0); //Positionne sur lcd (caract 8 , ligne 0)
    lcd.print(Niveau); //écrit le niveau lu
    lcd.print(" ");    
    } 
  }
  if (Vanne != 0) { //si Vanne n'est pas 0
  lcd.setCursor(6,1);
  lcd.print(Vanne);
  }
}
///////////////////////////////////////////////////////////

Thank you for your advices

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cool. Glad to see the hd44780 library works with Atmel Studio.
Post any questions about it for me over on the Arduino forum as I don't hang out over here much any more.
If you discovery any issues, post them on the github page: https://github.com/duinoWitchery/hd44780

 

BTW, fm's NewLiquidCrystal library has some severe licensing issues. It has combined code with serveral different but incompatible licenses

and also changed some of the licenses on core files from LGPL 2.1+ to  CC BY SA 3.0 which is a violation of LGPL 2.1
CC BY SA 3.0 is not a usable license for software as it is not compatible with any thing but it self.
CC BY SA 4.0 was created to help deal with this, but requires that code be re-licensed GPL 3.0 when used with LGPL or GPL code.
Essentially, CC BY SA is not a valid license for s/w as it either can't link with anything else or must be converted to GPL 3.0 to use GPL code.

I have talked with fm about this. The only solution is to change the NewLiquidCrystal library to be either LGPL 2.1+ or  LGPL 3.0
To change it to LGPL 2.1+ requires removing certain GPL 3.0 files and no longer distributing them.
But either way (LGPL 2.1+ or GPL 3.0) it requires all the existing authors to agree to change their license from CC BY SA 3.0 to either LGPL 2.1+ or GPL 3.0

(I have agreed to change my contributions to GPL 3.0)

The latest from fm (from a few days ago): he said he was going to try to get this to happen by moving the license to GPL 3.0 but if some authors didn't agree he might just remove the library.

 

If anyone is interested in more details on the licensing issues, PM me.

 

 

--- bill