Usually when the include file is in "quotes" like that then the file must reside in the same directory as the source file which references it. Either that, or you can specify the full path to the file.
When the include file is in <brackets> created by the greater/lesser than symbols the file should reside in the include directory specified by the compiler configuration.
What compiler are you using?
I really want to do this as a module but I might find it easier to just copy n paste?
I put the module in same directory as the ISRtimer figuring it should load.
strike 2!
will play with it as it is a learning experience.
first code was MODULE
I tried doing same on my module but it didn't like it??
something missing when creating a module. What I havn't found out as yet.
been trying different things.
next thing I need is to have a way to make an OR statment.
have pin 9 (connected to PIR, triggers on LOW) then another pin that changes state. both pins trigger the PIC but pin 9 is disabled during daylight.
plan is a photo transistor connected to pin 9.
see schematic.
idea is the photo transistor disables the pin 9 during daylight and at night the PIR takes over and the timer is disabled.
Mike your right on all three that is if it's a module. One file he is trying to use is not it's the
sample code. Can't use it as module.
The timermodule4.bas was the name I think of the sample I posted. It used sordfish timer
module.
it still came up with not a valid module.
How does one make a module??
I tried putting MODULE at the beginning but it still did not reconize as a module.