close
obr
« Back

View source: C07-RX.c

 // *********************************************************************
 #include "../includes/template-basic.h"
 // *********************************************************************
 void APPLICATION()
 {
     uns8 VoltageLevel;      // Supply voltage level
     while (1)
 {
         clrwdt();      // Clear watchdog
         
         if (RFRXpacket())      // If anything received
   {
             pulseLEDG();      // Green LED indication
             VoltageLevel = bufferRF[2];      // Measured value
             W = bufferRF[1];      // To identify debug cause
             debug();      // Stop and watch
                   // Continue after Skip debug
         }
     }
 }
 // *********************************************************************

Download: C07-RX.c
© MICRORISC s.r.o.