Go Down

Topic: Problem with the library OneWire and BH1750FVI (Read 420 times) previous topic - next topic


I need to solve the problem between libraries and OneWire BH1750FVI. Library OneWire need for TinyRTC DS1307 with DS18B20, library BH1750FVI need for sensor modules to the light intensity.
Code: [Select]
#include <BH1750FVI.h> // light senzor
#include <OneWire.h>            // OneWire
#include <DallasTemperature.h>  // DS18B20

Here is the error message when compiling
Code: [Select]
Arduino: 1.6.3 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from HYDROPONIE.ino:18:0:

C:\Users\Jirka\Documents\Arduino\libraries\BH1750FVI/BH1750FVI.h:35:15: error: expected unqualified-id before numeric constant

 #define reset 0x07


C:\Users\Jirka\Documents\Arduino\libraries\OneWire/OneWire.h:132:13: note: in expansion of macro 'reset'

     uint8_t reset(void);


Error compiling.

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

Advise someone what to do? Sorry for my English.
Hydroponic system on balkony: A.Mega+senzor shield, BH1750FVI,BMP085, TinyRTC+DS18B20,LCD,pH board+probe, EC board,liquit level, MAX44005, 2*DHT11,CO2 senzor,WiFi+mySQL, 8*relay, soil senzor

Go Up