HelTecAutomation / CubeCell-Arduino

Heltec CubeCell Series (based on ASR6501, ASR6502 chip) Arduino support.
247 stars 138 forks source link

Missing ARDUINO definition #25

Closed joergkeller closed 4 years ago

joergkeller commented 4 years ago

Several libraries (HX711, OneWire, DallasTemperature) check the installed Arduino version before including Arduino.h:

#if ARDUINO >= 100
#include <Arduino.h>       // for delayMicroseconds, digitalPinToBitMask, etc
#else
#include "WProgram.h"      // for delayMicroseconds
#include "pins_arduino.h"  // for digitalPinToBitMask, etc
#endif

I did not find out where this definition is set, but it seems to be missing when I compile for the CubeCell board. I know that it is the version of the Arduino (IDE or compiler?) and has nothing to do with CubeCell, but it might be related with you tooling. I am using version 0.0.3, installed by the board manager on Arduino IDE 1.8.10.

joergkeller commented 4 years ago

I've also tested with the current master version, same result. This relates to a pull request.

wasn-eu commented 4 years ago

hi

i have merged your pull request.