HelTecAutomation / CubeCell-Arduino

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

Sensirion SCD41 integration issue! #253

Open tusharvb19 opened 1 year ago

tusharvb19 commented 1 year ago

Hello, Trying to read SCD41 using Sensirion I2C SCD4x library, but compilations give below error:

. . . C:\Users\DELL\Documents\Arduino\libraries\Sensirion_I2C_SCD4x\src/SensirionI2CScd4x.h:399:24: error: 'nullptr' was not declared in this scope

 TwoWire* _i2cBus = nullptr;

Need help to compile this code successfully!

sheggy012 commented 1 year ago

Add #define nullptr NULL to AppData\Local\Arduino15\packages\CubeCell\hardware\CubeCell\1.5.0\cores\asr650x\Arduino.h