Photon connected to NCD1 Relay board Issues

#1

I tried to flash the code for single relay board to my Photon but keep getting these error codes
Tried on two different Photon’s same result.
New to this, any assistance appreciated
thanks

lib/NCD1Relay/NCD1Relay.h:5:7: redefinition of ‘class NCD1Relay’ error

lib/NCD1Relay/NCD1Relay.h:5:7: previous definition of ‘class NCD1Relay’ error

lib/NCD1Relay/NCD1Relay.h:5:7: redefinition of ‘class NCD1Relay’ error

lib/NCD1Relay/NCD1Relay.h:5:7: previous definition of ‘class NCD1Relay’ error

cloudcontrol.ino:10:1: expected unqualified-id before ‘/’ token

Flash Unsuccessful

0 Likes

#2

It looks like perhaps the library containing NCD1Relay is being included multiple times.

0 Likes

#3

Thank You, I did do that but I found the issue. I did not click at the bottom (cloudcontrol.cpp use this example)

0 Likes