File > Preferences, add the Realtek AmebaD board URL: https://github.com/ambiot/ambd_micropython/raw/main/Arduino/package_realtek.com_amebad_index.json. Then, in Tools > Board > Boards Manager, install AmebaD by Realtek (version 3.1.8).Sketch > Include Library > Manage Libraries, install:
Adafruit_GFXAdafruit_SSD1306wifi_conf.h, wifi_cust_tx.h, wifi_util.h, wifi_structures.h) in your project folder or library path.
Ameba RTL8720DN (BW16) in Tools > Board. Set port to your BW16’s USB port.Copy the project code into Arduino IDE, save as oled_deauther.ino, and click Upload. Monitor progress in the Serial Monitor (115200 baud).
If the OLED is blank, verify I2C wiring and address (0x3C). For compilation errors, ensure libraries are installed and board package is up-to-date. The SPI_MODE0 warning is harmless but can be suppressed by commenting out #define SPI_MODE0 in Adafruit_SPIDevice.h.