[riot-devel] Event Driven Button

2016-02-05 Thread Sugang Li
Dear all,

I notice that button function has been added to the latest version of RIOT.
  Basically, it gives 0 on pressing and 1 on releasing. Is there an event
driven implementation for this button such onClick() or onPress()?

Thanks,

Sugang

-- 

*WINLAB, Department of Electrical and Computer Engineering*

*Rutgers,the State University of New Jersey*
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] Event Driven Button

2016-02-05 Thread Hauke Petersen

Hi,

I am not quite sure which button function you are referring to. If you 
mean the buttons mapped via SAUL, then there is no event drive API, yet. 
Though this is being worked on and will hopefully be introduced to RIOT 
soon...


Cheers,
Hauke


On 05.02.2016 17:37, Sugang Li wrote:

Dear all,

I notice that button function has been added to the latest version of 
RIOT.   Basically, it gives 0 on pressing and 1 on releasing. Is there 
an event driven implementation for this button such onClick() or 
onPress()?


Thanks,

Sugang

--

*/WINLAB, Department of Electrical and Computer Engineering/*
*/Rutgers,the State University of New Jersey
/*


___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] Event Driven Button

2016-02-05 Thread Sugang Li
Thanks Hauke!  That explanation helps.

On Fri, Feb 5, 2016 at 12:36 PM, Hauke Petersen  wrote:

> Hi,
>
> I am not quite sure which button function you are referring to. If you
> mean the buttons mapped via SAUL, then there is no event drive API, yet.
> Though this is being worked on and will hopefully be introduced to RIOT
> soon...
>
> Cheers,
> Hauke
>
>
>
> On 05.02.2016 17:37, Sugang Li wrote:
>
> Dear all,
>
> I notice that button function has been added to the latest version of
> RIOT.   Basically, it gives 0 on pressing and 1 on releasing. Is there an
> event driven implementation for this button such onClick() or onPress()?
>
> Thanks,
>
> Sugang
>
> --
>
> *WINLAB, Department of Electrical and Computer Engineering*
>
> *Rutgers,the State University of New Jersey *
>
>
> ___
> devel mailing 
> listdevel@riot-os.orghttps://lists.riot-os.org/mailman/listinfo/devel
>
>
>
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
>


-- 

*WINLAB, Department of Electrical and Computer Engineering*

*Rutgers,the State University of New Jersey*
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel