Closed ardianet closed 2 years ago
Could this be done with Arduino Pro Micro? Already changed the SPI Output as mentioned in datasheet, but still no connection/binding.
// ############ Wiring ################
//SPI Comm.pins with nRF24L01
//#define ledPin 13 // LED - D13
//pro micro attempt // SPI outputs
// SPI input
Don't know if this would be useful, but I managed to get it working on Pro Micro :
//Arduino Pro Micro //SPI Comm.pins with nRF24L01
// SPI outputs
Could this be done with Arduino Pro Micro? Already changed the SPI Output as mentioned in datasheet, but still no connection/binding.
// ############ Wiring ################
define PPM_pin 2 // PPM in
//SPI Comm.pins with nRF24L01
define MOSI_pin 16 // MOSI - D16 PB2
define SCK_pin 15 // SCK - D15 PB1
define CE_pin 10 // CE - D10 PB6
define MISO_pin 14 // MISO - D14 PB3
define CS_pin A1 // CS - A1 F6
//#define ledPin 13 // LED - D13
//pro micro attempt // SPI outputs
define MOSI_on PORTB |= _BV(2) // PB2
define MOSI_off PORTB &= ~_BV(2)// PB2
define SCK_on PORTB |= _BV(1) // PB1
define SCK_off PORTB &= ~_BV(1) // PB1
define CE_on PORTB |= _BV(6) // PB6
define CE_off PORTB &= ~_BV(6) // PB6
define CS_on PORTF |= _BV(6) // PF6
define CS_off PORTF &= ~_BV(6) // PF6
// SPI input
define MISO_on (PINB & _BV(3)) // PB3