[riot-users] How to use gpio (Arduino Uno)

Peter Kietzmann peter.kietzmann at haw-hamburg.de
Mon Jul 4 11:57:16 CEST 2016

Hi Shovon,

first of all: welcome to the RIOT community! The arduino-uno support in 
RIOT is WIP [1] and currently not part of the RIOT master. Did you use 
that pull request?

What do you mean by the "native program"? "native" in RIOT is a hardware 
emulation running in a linux process on your PC and it has no real 
GPIOs. Basically every program can be built for the native board but I'm 
not aware of any "native program".

[2] demonstrates how to use GPIOs. It comes with a small shell and 
allows to initialize, set and read pins during runtime.

Best regards

[1] https://github.com/RIOT-OS/RIOT/pull/5451
[2] https://github.com/RIOT-OS/RIOT/tree/master/tests/periph_gpio

Am 03.07.2016 um 20:08 schrieb Nazmul Alam:
> Hello,
> I am new to riot-os and was trying to run a native application which
> toggles a led on pin 13 (arduino-uno), I was able to use arduino sketch
> but it seems it is not working properly. So I though I will give native
> program a try.
> But I am not sure how to initialize gpio and use it (e,g USEMODULE?) so
> is there any sample on how to use the gpio in riot-os?
> Thanks in advance,
> Shovon.
> _______________________________________________
> users mailing list
> users at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/users

Peter Kietzmann

Hamburg University of Applied Sciences
Dept. Informatik, Internet Technologies Group
Berliner Tor 7, 20099 Hamburg, Germany
Fon: +49-40-42875-8426
Web: http://www.haw-hamburg.de/inet

More information about the users mailing list