fork download
  1. #include <avr/io.h> //standard AVR header
  2. int main(void)
  3. {
  4. unsigned char z;
  5. DDRB = 0xFF; //PORTB is output
  6. for(z = 0; z <= 255; z++)
  7. PORTB = z;
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0.03s 25568KB
stdin
Standard input is empty
stdout
#include <avr/io.h> //standard AVR header
int main(void)
{
unsigned char z;
DDRB = 0xFF; //PORTB is output
for(z = 0; z <= 255; z++)
PORTB = z;
return 0;
}