Arduino UNO Schematic

auto format what and where ?

As I am new to this, I saw auto format in arduino IDE....so asked..even I do not know this

Since I amusing 2 diiferent chips i,e
ATmega328P in arduino &
Atmega168PA in my board.....only once I am able to to bootload and program.

If I try next time I am unable to do both the operation.

Auto Format reformats the sketch that is open in the IDE to do things like indenting code blocks to make the program structure more obvious and you can also add more formatting options if you like

For instance, starting with

void setup() {
Serial.begin(115200);
while(!Serial);
Serial.println("hello");
}

void loop() 
{
for(int x=0;x<8;x++)
{
Serial.print("x is : ");Serial.println(x);
}
}

after Auto Format with my settings it looks like this

void setup()
{
  Serial.begin(115200);
  while (!Serial);
  Serial.println("hello");
}

void loop()
{
  for (int x = 0; x < 8; x++)
  {
    Serial.print("x is : ");
    Serial.println(x);
  }
}

THank you.

Understood the autoformat.

Hi
I was able to upload programs into UNO and all were working fine.

But suddenly the led L on the board is not blinking but I can see the arduino port in the device manager. When I try to upload program the error I am getting

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xf8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xf8
avrdude: ser_recv(): read error: The I/O operation has been aborted because of either a thread exit or an application request.

Not able to understand the issue.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.