OLED ile BH1750FVI.h kütüphane çakışması

In file included from 
D:\Dropbox\My Education\Arduino\Projects\05 Greenhouse\Greenhouse_01\__MERGES\_02ve03ve12ve18ve14ve14L_ve16ve18ve20PumpSoilLogOled01\_02ve03ve12ve18ve14ve14L_ve16ve18ve20PumpSoilLogOled01.ino:142:0:

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

#define reset 0x07

^

C:\Users\turgan\Documents\Arduino\libraries\SSD1306Ascii\src/SSD1306Ascii.h:149:15: note: in expansion of macro 'reset'

static void reset(uint8_t rst);

 

 

şu kodu:

/////////////////////////////////////////////////*21* OLED GREIGMAN
// pin definitions
#define OLED_DC 33
#define OLED_CS 31
#define OLED_CLK 39
#define OLED_DATA 37
#include "SSD1306Ascii.h"
#include "SSD1306AsciiSoftSpi.h"
SSD1306AsciiSoftSpi oled;
/////////////////////////////////////////////////*21* OLED GREIGMAN ///////////////////////////////////////////////////////////////////////

 

nedense şundan önceye almam lazım oldu:

 

#include <BH1750FVI.h>

 

 

Leave a Reply