How can I use the compiled code and not the C/C++ code in Arduino

Is there any way if I want to share my C/C++ Arduino code but not be copied.

Are you selling it?

yes you can intercept and copy the binary file that is uploaded. but it can only run on one type of Arduino board then

1 Like

How? What should I google to find more information?

Maybe you should investigate the rules of open source also.

No, I am not selling it.

Why do you care if the code is copied? If people appreciate your work enough to copy the code, take that as a compliment!

In just about any case, given an adequate description of program operation, a skilled programmer familiar with Arduino would need very little time to produce the same result, writing code from scratch.

1 Like

@jremington: You are right! How am I sure that the person who will copy my code from my github account will maintain my name from the initial work? Just wondering.. :wink:
@Whandall: Yes, I will check that...

You can be reasonably sure that some people will not obey that common courtesy.

My favorite example of outright, utterly shameless code theft is Elegoo: who copied the entire Adafruit_GFX library and renamed it Elegoo_GFX.

To hide their "crime", Elegoo very cleverly used an editor to replace "Adafruit" with "Elegoo" everywhere in the source code. So, the header comments become:

Elegoo invests time and resources providing this open source code, please
support Elegoo & open-source hardware by purchasing products from Elegoo!
Copyright (c) 2013 Elegoo Industries. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

Compare to Adafruit_GFX:

Adafruit invests time and resources providing this open source code, please
support Adafruit & open-source hardware by purchasing products from Adafruit!
Copyright (c) 2013 Adafruit Industries. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

Conclusion: avoid Elegoo.

WOW! That is brazen chutzpah! I'll never buy anything from them, for sure (luckily, I haven't yet).

First you have to say which board you are compiling for.

Also if this is for the same "temperature sensor with Arduino MEGA 2560" that you asked about patenting in this thread
https://forum.arduino.cc/t/using-code-for-patent/1029144
but where you "use the company's code for the temperature sensor in order to make it work with my own code for the rest parts of the machine"
you would be wise to consider the licensing requirements of that software.

You shouldn't seek concealment advice for software that requires full licence disclosure (if that is the case).

What temperature sensor software is it, then?

@jremington: !!!!!!!!

The current topic has nothing to do with my previous topic...Please do not mix them! Thanks! :slight_smile:

Okay, then can you drop the veil of secrecy on this one, please?

I am using an Arduino UNO with servo motor, and I want to upload the code to my github account, but everyone who copies the code to maintain my name as author.

For UNO, look at the AVR-GCC docs, also enable full output on compilation and you can see where the binary file is located.

1 Like

However this is unenforceable. When you go fully commercial, you lose the voluntary adherence to licences out of mutual respect part of open source.

Also, as pointed out earlier on, unless there is some really amazing magic in your work, it's ridiculously easy to reverse engineer the device by building one and observing the behaviour.

The best you can hope for, is to "watermark" your code by embedding your name or company name in the code.

1 Like

First of all I am just a computer enthusiast/hobbyist! Not a company! :slight_smile: Secondly, I do not know how watermarking works in Arduino code, never heard of that....

Perfect reason to be 100% open source. But I guess that is beating a dead horse.

What do you mean by that?