I have setup Kali Linux on my raspberry Pi 4 and would like to get my i2c OLED Display (128x64) working.
Appreciate any help, thanks
IMG_4435.JPG


This worked okay on raspberry pi os using the following commands

sudo raspi-config
Interface Options
i2c
Enable

sudo apt-get install python-smbus
sudo apt-get install python3-pip
sudo apt install python-pip
sudo apt-get install i2c-tools
sudo pip3 install Adafruit_BBIO

sudo i2cdetect -y 1
(Should see 3c in the table)

sudo python -m pip install --upgrade pip setuptools wheel
git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git
cd Adafruit_Python_SSD1306
sudo python3 setup.py install
pip3 install pillow
sudo apt install -y python3-rpi.gpio

To display stats on the OLED Display used the following command

python3 /home/pi/Adafruit_Python_SSD1306/examples/stats.py