mrrwa / LocoNet

An embedded Loconet interface library for Arduino family microcontrollers
Other
68 stars 32 forks source link

Arduino Leonardo ICP3 #47

Open g0935260205 opened 3 weeks ago

g0935260205 commented 3 weeks ago

can i use ICP3 for the LNRX input?when i update the library the code inside always be replaced

kiwi64ajs commented 2 weeks ago

Hi,

We can probably use the “__has_include” compiler directive to conditionally include a user-defined header file with the necessary #defines to allow you to override the existing code.

See: https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005finclude.html for details. The DCC-EX project uses this for the myAutomation.h and other files. 

Can you send me an example of the changes you need to make to the existing files so I can try this as a test case?

Regards

Alex Shepherd

m: +64-21-777764 e: @.***

On 8 Sep 2024, at 10:16 PM, g0935260205 @.***> wrote:

can i use ICP3 for the LNRX input?when i update the library the code inside always be replaced

— Reply to this email directly, view it on GitHub https://github.com/mrrwa/LocoNet/issues/47, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5Y53MOVCB6GSDJHWGRRDLZVQPXZAVCNFSM6AAAAABN23GRL2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYTEMZQGYZTANI. You are receiving this because you are subscribed to this thread.