General

Laser distance sensor SEN0590 build in PlatformIO

userHead Torp 2025-11-21 22:41:23 275 Views1 Replies

Hi
has anyone tried to Build this in VS Code PlatformIO
getting this error..

error: 'writeReg' cannot be used as a function
error: 'writeReg' cannot be used as a function

 

works fine to compile this sketch in Arduino IDE

 

Laser distance sensor SKU: SEN0590
https://wiki.dfrobot.com/Laser_Ranging_Sensor_4m_SKU_SEN0590
 

Any Idea ?

2025-11-22 00:00:21

Maybe the PlatformIO installed the wrong library or PlatformIO found another library that has a writeReg variable/macro, causing a conflict.

userHeadPic ahsrab.rifat