Actually am new to this world and want to make embedded systems as my hobby kindly excuse me if it's a silly clarification,
Let me brief you about the question i asked, I have an Arduino board where I am using some of the peripherals like LCD with i2c.
Now I want to convert this Arduino-based circuit to atmega328p based circuit. i.e atmega328p with LCD and i2c
Here is my actual question, Can I use the same sketch(binary) that I have compiled and uploaded for the Arduino board for atmega328p also does it work? Or do I need to write atmega328p based c code all together.