Hello world!

Whenever I start learning (or just playing around) with a new programming language, the first thing I do is type the good oldĀ Hello World! program. This is the one from word press:

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

But my favorite hello world program up to now is the one for the ASURO robot :

#include "asuro.h"

unsigned int led_state = 0;

void toggleLED();

int main ()
while (1){
return 0;

void toggleLED()
if (! led_state) {
led_state = 1 ;
} else {
led_state = 0 ;
PORTD= (PORTD&~(1 << PD6 ) ) | ( led_state << PD6 ) ;
This is how the ASURO robot says “Hello world!”

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.