Skip to content

Instantly share code, notes, and snippets.

View EdwinFairchild's full-sized avatar
🎯
Focusing

Eddie EdwinFairchild

🎯
Focusing
View GitHub Profile
/***** Includes *****/
#include <stdio.h>
#include <stdint.h>
#include "mxc_device.h"
#include "led.h"
#include "board.h"
#include "mxc_delay.h"
#include <stdint.h>
#ifndef CL_nrf24l01p_H_
#define CL_nrf24l01p_H_
#include <stdint.h>
#include <stdbool.h>
//-----------| NRF COMMANDS |----------
#define R_REGISTER 0x00 //must be ORed with a registr address to get correct command value / but since its zero then it really does nothing
#define W_REGISTER 0x20 //must be ORed with a register address to get correct command value
#ifndef CL_nrf24l01p_H_
#define CL_nrf24l01p_H_
#include <stdint.h>
#include <stdbool.h>
//-----------| NRF COMMANDS |----------
#define R_REGISTER 0x00 //must be ANDed with a registr address to get correct command value / but since its zero then it really does nothing
#define W_REGISTER 0x20 //must be ORed with a register address to get correct command value