PingPong-ClickButtonToWork

Dependents:   Lora_SX1272_Coragem-dev-shared Lora_SX1272_serial

Committer:
afzalsamira
Date:
Mon Feb 01 15:19:40 2021 +0000
Revision:
6:d7c7e731da3a
Parent:
2:a5a72d30cb18
p2p Lora - click on the button of coragem1 to send a packet to the coragem2- during sending packet, ledes of coragem1 are turned on. Then ledes of Coragem 2 would be turned on upon receiving the packet

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cdupaty 2:a5a72d30cb18 1 // added by C.Dupaty
cdupaty 2:a5a72d30cb18 2 // for Arduino compatibility
cdupaty 0:d974bcee4f69 3 #include "mbed.h"
cdupaty 0:d974bcee4f69 4
cdupaty 0:d974bcee4f69 5 unsigned long micros(void)
cdupaty 0:d974bcee4f69 6 {
cdupaty 0:d974bcee4f69 7 return us_ticker_read();
cdupaty 0:d974bcee4f69 8 }
cdupaty 0:d974bcee4f69 9
cdupaty 0:d974bcee4f69 10 unsigned long millis(void)
cdupaty 0:d974bcee4f69 11 {
cdupaty 0:d974bcee4f69 12 return micros()/1000;
cdupaty 0:d974bcee4f69 13 }