I am using the ELEGOO NANO (ATmega328P & CH340 chip - I installed the latest drivers on it)
I tried to add the 2.4 GHz Band Scanner & Jammer With NRF24L01 code to the nano via Arduino and I am getting multiple errors.
Errors
——————
C:\Users\Gram\Desktop\Inventions\NRF Wifi Jam\RF_Box\RF_Box.ino:1:32: error: stray '#' in program
#include <SPI.h>
^
C:\Users\Gram\Desktop\Inventions\NRF Wifi Jam\RF_Box\RF_Box.ino:1:1: error: expected unqualified-id before '<' token
#include <SPI.h>
^
In file included from C:\Users\Gram\Desktop\Inventions\NRF Wifi Jam\RF_Box\RF_Box.ino:3:0:
C:\Users\Gram\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src/Wire.h:86:8: error: 'TwoWire' does not name a type; did you mean 'TwoWire_h'?
extern TwoWire Wire;
^~~~~~~
TwoWire_h
In file included from C:\Users\Gram\Documents\Arduino\libraries\Adafruit_GFX_Library/Adafruit_GFX.h:12:0,
from C:\Users\Gram\Desktop\Inventions\NRF Wifi Jam\RF_Box\RF_Box.ino:4:
C:\Users\Gram\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_I2CDevice.h:10:36: error: 'TwoWire' has not been declared
Adafruit_I2CDevice(uint8_t addr, TwoWire *theWire = &Wire);
^~~~~~~
C:\Users\Gram\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_I2CDevice.h:30:3: error: 'TwoWire' does not name a type; did you mean 'TwoWire_h'?
TwoWire *_wire;
^~~~~~~
TwoWire_h
C:\Users\Gram\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_I2CDevice.h:10:56: error: 'Wire' was not declared in this scope
Adafruit_I2CDevice(uint8_t addr, TwoWire *theWire = &Wire);
^~~~
In file included from C:\Users\Gram\Desktop\Inventions\NRF Wifi Jam\RF_Box\RF_Box.ino:5:0:
C:\Users\Gram\Documents\Arduino\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:132:42: error: 'TwoWire' has not been declared
Adafruit_SSD1306(uint8_t w, uint8_t h, TwoWire *twi = &Wire,
^~~~~~~
C:\Users\Gram\Documents\Arduino\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:175:3: error: 'TwoWire' does not name a type; did you mean 'TwoWire_h'?
TwoWire *wire; ///< Initialized during construction when using I2C. See
^~~~~~~
TwoWire_h
C:\Users\Gram\Documents\Arduino\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:132:58: error: 'Wire' was not declared in this scope
Adafruit_SSD1306(uint8_t w, uint8_t h, TwoWire *twi = &Wire,
^~~~
C:\Users\Gram\Desktop\Inventions\NRF Wifi Jam\RF_Box\RF_Box.ino:23:55: error: 'Wire' was not declared in this scope
Adafruit_SSD1306 display = Adafruit_SSD1306(128, 32, &Wire);
^~~~
C:\Users\Gram\Desktop\Inventions\NRF Wifi Jam\RF_Box\RF_Box.ino:23:55: note: suggested alternative: 'line'
Adafruit_SSD1306 display = Adafruit_SSD1306(128, 32, &Wire);
^~~~
line
C:\Users\Gram\Desktop\Inventions\NRF Wifi Jam\RF_Box\RF_Box.ino:270:1: error: expected unqualified-id before '<' token
^
exit status 1
Compilation error: stray '#' in program