[riot-devel] RIOT and Peripherals
peter.kietzmann at haw-hamburg.de
Fri Oct 7 15:49:12 CEST 2016
if you are on a samr21-xpro the pwm.c driver implementation can be found
The pin configurations on an Atmel samr21-xpro board are defined here:
As Laurent already said, an example lies here:
I didn't really understand the question about the "variable dev" but
probably the example will explain everything.
There is no *need* to open a separate thread for the PIR but probably
you want to. Did you already have a look at the PIR example under "tests":
Am 07.10.2016 um 12:58 schrieb Ilias Seitanidis:
> Thanks Peter, The idea is if the pir detects something, then the speaker
> will produce a sound, for example for 2 minutes, then a udp message will be
> sent. I have some questions(as a newbie :) ) :
> - I didn't find the pwm.c file, maybe someone erased it during a clean up
> -Is there any example of using the pwm lib? (mostly on the sequence of the
> function call)
> - There is a variable dev that points to the speaker device(as mentioned
> this lib was used with virtual devices), is there a specific integer for
> one device or it doesn't matter? (
> void pwm_set(pwm_t dev, uint8_t channel, uint16_t value);
> -For the pir Library is it mandatory to register as a thread(?), it will be
> my main thread.
> I've seen the project of Mr. Nhat Pham, but the main idea is to use the
> RIOT OS as it is.
> Thank you in advance!
> Best regards,
> devel mailing list
> devel at riot-os.org
Hamburg University of Applied Sciences
Dept. Informatik, Internet Technologies Group
Berliner Tor 7, 20099 Hamburg, Germany
More information about the devel