Package: pibooth-oled-display
pibooth-oled-displayis a plugin for thepiboothapplication.Add 1 or 2 small OLED display (Monochrome or Color) throughI2corSPI.(parallel mode will not be suported).FeaturesIt can show up to 3 lines ofText, with or withoutCounters, with numbers ofPhotos Taken,Printed Photos,Forgotten Photos,Remaining Duplicates. OrDate-Time,Text_Onlyor anEmptyline.There is also an option for showing your own or default pibooth state images for eachStatesAnd it is able of showing Image or Animated Gif with your ownLogo, likePibooth Logo,NoteText / Counters can beSized,Centered, or movedRightorDown, to match the display. Changes can be made in thePibooth Menuor in theconfig.cfgfile.Don’t be scared by this long manual, it´s there to cover all the different OLED displays on the marked. If you only have an 3v3 I2c
OLED display all you need is 4 wires to your Pi, and installing the plugin.ContentsRequirementsHardwareTested OLED DisplaysInstallI2c ConfigurationEnabling I2c interface on the Raspberry PiHow to find your I2c addresssHow to change I2c addressSPI ConfigurationI2c Circuit diagram and wiring - (ONLY with 3v3 displays)I2c Circuit diagram - (ONLY with 3v3 displays)I2c Wire - (ONLY with 3v3 displays)I2c Circuit diagram - (5v displays) with an Logic Level ConverterI2C circuit diagram - (5v displays)I2c wire - (5v displays)SPI Circuit diagram and WiringSPI circuit diagram (ONLY with 3v3 displays)SPI wire setup - (ONLY with 3v3 displays)SPI wire - (5v display) with a Logic Level ConverterStatesStates imagesStates descriptionSetup in Pibooth MenuOLED Display - (SETUP) - Pibooth MenuOLED Display - (MODIFY) - Pibooth MenuSetup in config.cfgOLED DISPLAY - (SETUP) - config.cfgOLED DISPLAY - (MODIFY) - config.cfgHow to use Date-Time / Logo / Animated GifHow to change the Date-Time formatHow to show your own LogoHow to show your own Animated GifHow to show your own States imagesHow to add your own FontsTips & TricksHow to use 2 x OLED displays at the same timeHow to install the second display plugin “pibooth_oled_display_2.py”Setup 2 x I2c OLED displays - (Showing seperate things on each display)Setup 2 x SPI OLED displays - (Showing seperate things on each display)Can i use SPI1 ? (e.g.SPI and SPI1 together on the pi)Setup 2 x OLED displays - (Showing the same things on each display)How to use a OLED displays with only 6 pins I2c/SPIRequirementsHardware1 x Raspberry Pi 3 Model B (or higher).1 x I2c safe Logic Level Converter (If you are using 5v displays).1 x OLED-display, withI2corSPI(See the list ofTested OLED Displays).Tested OLED DisplaysHere is the list of supported displays by the luma.oled driverOLED displaysDisplay ResolutionsTESTEDSPII2Csh1106128x64WorkingXXssd1306128x32, 128x64WorkingXXssd1309not testedssd1322not testedssd1325not testedssd1327not testedssd1331not testedssd1362not testedSPIare a little faster thanI2c, but also uses more wires to the raspberry pi.Personally I useI2c3v3 displays, since it is only 4 wires to the Pi.Most common OLED displays are these 3 (I prefer size 0.96, 1.3 or higher″)ssd1306 128x320.91″ 128X32 white Displayssd1306 128x640.96″ 128X64 white Displaysh1106  128x641.3″  128X64 white DisplayInstall$ pip3 install pibooth-oled-displayI2c ConfigurationEnabling I2c interface on the Raspberry PiThe I2C peripheral is not turned on by default.There are two methods to enable I2c.(Be aware that newer Raspberry PI OS systems can have a different way to turn on I2c).I recommend checking theofficial Raspberry Pi documentationor the latest resources provided by the Raspberry Pi community. They will provide the most accurate instructions for configuring the I2C interface on your specific version of the Raspberry Pi.Raspberry Pi Configuration via Desktop GUIYou can use the Desktop GUI by heading to the PiStart Menu > Preferences > Raspberry Pi Configuration.A window will pop up with different tabs to adjust settings. What we are interested is theInterfacestab.Click on the tab and selectEnablefor I2C. Click on theOKbutton tosave.We recommend restarting your Pi to ensure that the changes to take effect.Click on the Pi Start Menu > Preferences > Shutdown. Since we just need to restart, click on the Restart button.raspi-config Tool via TerminalAgain, we can use raspi-config to enable it.Runsudo raspi-configUse the down arrow to select5 Interfacing OptionsArrow down toP5 I2CSelectyeswhen it asks you to enableI2CAlso selectyesif it asks about automatically loading the kernel module.Use the right arrow to select the<Finish>button.Selectyeswhen it asks to reboot.The system will reboot. when it comes back up, log in and enter the following command in terminalls/dev/*i2c*The Pi should respond with/dev/i2c-1Which represents the user-mode I2C interface.How to find your I2c addresssYou need to know the address of your I2c.You can find it writing this command in the command line:sudo i2cdetect-y1In this case the address of the display is0x3C.How to change I2c addressOnly if needed:On most displays you can solder a (short circuit) on the back of the OLED display, to change the address.(check the manual of your display, or search the internet)SPI ConfigurationEnabling SPI interface on the Raspberry PiThe SPI peripheral is not turned on by default.There are two methods to adjust the settings.(Be aware that newer Raspberry PI OS systems can have a different way to turn on SPI).I recommend checking theofficial Raspberry Pi documentationor the latest resources provided by the Raspberry Pi community. They will provide the most accurate instructions for configuring the SPI interface on your specific version of the Raspberry Pi.Raspberry Pi Configuration via Desktop GUIYou can use the Desktop GUI by heading to the PiStart Menu > Preferences > Raspberry Pi Configuration.A window will pop up with different tabs to adjust settings. What we are interested is theInterfaces tab.Click on the tab and selectEnableforSPI. Click on theOKbutton to save.We recommend restarting your Pi to ensure that the changes to take effect.Click on the PiStart Menu > Preferences > Shutdown. Since we just need torestart, click on the Restart button.raspi-config Tool via TerminalAgain, we can use raspi-config to enable it.Runsudo raspi-configUse the down arrow to select3 Interfacing OptionsArrow down toP4 SPISelect yes when it asks you to enableSPIAlso selectyesif it asks about automatically loading the kernel module.Use the right arrow to select the<Finish>button.Selectyeswhen it asks to reboot.The system will reboot. when it comes back up, log in and enter the following command in terminal.ls /dev/spidev*This command lists the SPI devices available in the /dev directory.If SPI is enabled, you should see output similar to/dev/spidev0.0/dev/spidev0.1If SPI is not enabled, you will see an error message or no output.I2c Circuit diagram and wiring - (ONLY with 3v3 displays)I2c Circuit diagram - (ONLY with 3v3 displays)Here is the diagram for hardware connectionswithoutan Logic Level Converter.IMPORTANTuse ONLY 3v3The Vcc and GND on the OLED displays are not always the same, so it is verry important that you check Vcc and GND is set correctly.I2c Wire - (ONLY with 3v3 displays)3v3 only.IMPORTANT CHECK YOUR DISPLAY FOR THE RIGHT CONNECTIONDisplay PinsRPi-PINsInfoVCC 3v3PIN 13v3 ONLYGND (Ground)PIN 6Ground pin of the moduleSCL (Clock)PIN 5Acts as the clock pin.SDA (Data)PIN 3Data pin of the module.I2c Circuit diagram - (5v displays) with an Logic Level ConverterI2C circuit diagram - (5v displays)Here is the diagram for hardware connectionswithand Logic Level Converter.IMPORTANTThe Vcc and GND on the OLED display are not always the same, so it is verry important that you check Vcc and GND is set correctly.I2c wire - (5v displays)IMPORTENT: If you use 5v to power the OLED displaymost OLEDs can also run on 3v3, check your manual.Since the Raspberry Pi GPIO only handle 3.3v, it will therefore be a good idea to use aLogic Level Converterwhen using 5v to power the display, so you don’t fryed your pi.IMPORTANT CHECK YOUR DISPLAY FOR THE RIGHT CONNECTIONOLED-I2c to theHV(High Level) side, on the Level Converter HV.(Display >> level converter HV side)Display PinsLevel converterInfoGNDGNDDsplay GND to the level converter GNDVCCHV  (HV )Display VC to the level converter HVSCL (Clock)HV2 (HV2)SCL <> HV2  on the Level ConverterSDA (Data)HV1 (HV1)SDA <> HV1 on the Level ConverterRPi (BOARD numbering scheme) toLV(Low Level) side, on the Level Converter.(Raspberry Pi >> Level converter LV side)RPiPinsLevel converterInfoGNDPin 6GNDRPi GND to GND on the level converter3.3vPin 1LV  (LV )RPi (3v3) to LV on the Level Converter5vPin 2HV  (HV )RPi (5v) to HV on the Level ConverterSCLPin 5LV2 (LV2)SCL <> LV2 on the Level ConverterSDAPin 3LV1 (LV1)SDA <> LV1 on the Level ConverterSPI Circuit diagram and WiringSPI circuit diagram (ONLY with 3v3 displays)Here is the diagram for hardware connectionswithoutandLogic Level Converter.If your OLED display use 5v instead of 3v3, it demands an 8 Channel Logic Level Converter, you should get one or you risk frye your pi.IMPORTANTThe Vcc and GND on an OLED display are not always the same, so it isverry importantthat you check Vcc and GND is set correctly.SPI wire setup - (ONLY with 3v3 displays)7 PinsRemarksRPi-PINRPi GPIOInfoVCCPower PinPIN 13V33V3 ONLY - CHECK YOUR DISPLAYGNDGroundPIN 6GNDGround pin of the moduleD0, SCLClockPIN 23GPIO 11 (SCLK)Acts as the clock pin.D1, SDAMOSIPIN 19GPIO 10 (MOSI)Data pin of the module.RSTResetPIN 22GPIO 25Resets the module, useful during SPIDC, A0Data/CommandPIN 18GPIO 24Data Command pin. Used for SPI protocolCSChip SelectPIN 24
PIN 26GPIO 8 (CE0)
GPIO 7 (CE1)Useful when more than one module is used under SPI protocol
Useful when more than one module is used under SPI protocolIf you have a 8 pins OLED display with “Vin” connect 3v3 to Vin and leave VCC empty.(or check the internet for more info on how to setup your display)SPI wire - (5v display) with a Logic Level ConverterYou will need a 8 channel Logic Level Converter to use SPI with 5v. Or you can use 2 x 4 channels Logic Level Converters.Same princip asI2c Circuit diagram - (5v displays) with an Logic Level ConverterYou take the needed GPIO PINs from the Raspberry Pi, and wire them to the LV side of the Logic Level Converters.The same goes for 3v3 wire, that goes to the LV side of the level converters.You also need to wire the 5v from the Raspberry Pi to the HV side of the level converter.And last you need GND (Ground) from the Raspberry Pi to GND one or both sides of the level converters.StatesStates imagesIf you need to change states images or add missing resolutions to fit your displayLook atHow to show your own States images.These states are showing on the display, ifShow state picturesis activated´choose´´chosen´´preview´´capture´´processing´´print´´finish´´failsafe´States descriptionSetup in Pibooth MenuOLED Display - (SETUP) - Pibooth MenuYou enter the menu by using Esc on your keyboard.Be aware that this plugin can sometimes make the reaction to enter the menu slow (2-3 sec).At the first time you make changes in the Menu, a configuration file is generated in'~/.config/pibooth/pibooth.cfg'which permits to configure the behavior of the plugin.OLED Display - (MODIFY) - Pibooth MenuYou enter the menu by using Esc on you keyboard.Be aware that this plugin can sometimes make the reaction to enter the menu slow (2-3 sec).At the first time you make changes in the Menu, a configuration file is generated in'~/.config/pibooth/pibooth.cfg'which permits to configure the behavior of the plugin.Setup in config.cfgOptions are also available by editing the configuration file.But it is easier toSetup in Pibooth MenuunderOled display - (setup)andOled display - (modify)Edit config.cfg by using the command line or a text editor$ pibooth --configOLED DISPLAY - (SETUP) - config.cfgconfig.cfg[OLED DISPLAY - (SETUP)]# Choose OLED device -'ssd1306(Default)','ssd1309', 'ssd1322', 'ssd1325', 'ssd1327', 'ssd1331', 'ssd1362', 'sh1106'# Required by ‘oled_display’ pluginoled_devices =ssd1306# Display connection'I2c' or 'SPI'# Required by ‘oled_display’ pluginoled_i2c_or_spi =I2c# I2c address(Default=0x3c)# Required by ‘oled_display’ pluginoled_port_address =0x3c# Change SPI device number'0', '1' or '2' (Default = 0)# Required by ‘oled_display’ pluginoled_spi_device_number =0# Change the I2c or SPI port number -(I2c = '1' - SPI = '0', '1', '2')# Required by ‘oled_display’ pluginoled_port =1# SPI only GPIO DC PIN(Default=24)# Required by ‘oled_display’ pluginoled_spi_gpio_dc_pin =24# SPI only GPIO RST PIN(Default=25)# Required by ‘oled_display’ pluginoled_spi_gpio_rst_pin =25# Change screen WIDTH -'32', '48', '64', '80', '96','128(Default)','160', '240', '256', '320'# Required by ‘oled_display’ pluginoled_width =128# Change screen HEIGHT -'32', '48','64(Default)','80', '96', '128', '160', '240', '256', '320'# Required by ‘oled_display’ pluginoled_height =64# Color mode -'1 = Monochrome(Default)','RGB', 'RGBA'# Required by ‘oled_display’ pluginoled_color_mode =1# Rotate screen -'0(Default)','1', '2', '3'# Required by ‘oled_display’ pluginoled_rotate =0OLED DISPLAY - (MODIFY) - config.cfg[OLED DISPLAY - (MODIFY)]# Show state pictures -'Yes' or 'No'# Required by ‘oled_display’ plugin - (SeeStatesfor more info on how it works)oled_states_pictures =Yes# Show Logo or Animated Gif (instead of text) -'Yes' or 'No'# Required by ‘oled_display’ plugin# SeeHow to show your own LogoandHow to show your own Animated Gifoled_showlogo =No# Logo or Animated Gif in the folder'~/.config/pibooth/oled_display/logo/'# Required by ‘oled_display’ pluginoled_logos =128x64_Pibooth_2.gif# FPS (Frames Per Second) speed for Animated Gif# Required by ‘oled_display’ pluginoled_animated_fps =15# Text-1 - Counters, Text, Date-Time - Could be either'Taken_Photo', 'Printed', 'Forgotten', 'Remaining_Duplicates','Date-Time','Empty', 'Text_Only'# Required by ‘oled_display’ plugin - (Also seeHow to change the Date-Time format, when usingDate-Time)oled_counter_type1 =Taken_Photo# Text-1 Font - You can add more fonts ‘Truetype(.ttf)’ or ‘Opentype(.otf)’, in the folder'~/.config/pibooth/oled_display/fonts/'# Required by ‘oled_display’ pluginoled_font_1 =DejaVuSerif-Bold.ttf# Text-1 Color - uses HTML color names. E.g.'White', 'Red', 'Cyan', 'Silver', 'Blue', 'Grey', 'DarkBlue', 'Black', 'LightBlue', 'Orange', 'Purple', 'Brown', 'Yellow', 'Maroon', 'Lime', 'Green', 'Magenta', 'Olive'.(On Monochrome displays colors will be converted to ‘White’)# Required by ‘oled_display’ pluginoled_text1_color =white# Text-1 - Text with space after to use with counter, or leave empty for counter only# Required by ‘oled_display’ pluginoled_text_1 ="Photos  "# Text-1 - Center text on display'Yes' or 'No'# Required by ‘oled_display’ pluginoled_text_1_center =No# Text-1 Size - 19 is default if 3 x text/counters are used on the display at the same time# Required by ‘oled_display’ pluginoled_size_1 =19# Text-1 - Move text ‘Right’ on display# Required by ‘oled_display’ pluginoled_text1_right =0# Text-1 - Move text ‘Down’ on display# Required by ‘oled_display’ pluginoled_text1_down =0# Text-2 - Counters, Text, Date-Time - Could be either'Taken_Photo', 'Printed', 'Forgotten', 'Remaining_Duplicates','Date-Time','Empty', 'Text_Only'# Required by ‘oled_display’ plugin - (Also seeHow to change the Date-Time format, when usingDate-Time)oled_counter_type2 =Printed# Text-2 Font - You can add more fonts ‘Truetype(.ttf)’ or ‘Opentype(.otf)’, in the folder'~/.config/pibooth/oled_display/fonts/'# Required by ‘oled_display’ pluginoled_font_2 =DejaVuSerif-Bold.ttf# Text-2 Color - uses HTML color names. E.g.'White', 'Red', 'Cyan', 'Silver', 'Blue', 'Grey', 'DarkBlue', 'Black', 'LightBlue', 'Orange', 'Purple', 'Brown', 'Yellow', 'Maroon', 'Lime', 'Green', 'Magenta', 'Olive'.(On Monochrome displays colors will be converted to ‘White’)# Required by ‘oled_display’ pluginoled_text2_color =white# Text-2 - Text with space after to use with counter, or leave empty for counter only# Required by ‘oled_display’ pluginoled_text_2 ="Printed "# Text-2 - Center text on display'Yes' or 'No'# Required by ‘oled_display’ pluginoled_text_2_center =No# Text-2 Size - 19 is default if 3 x text/counters are used on the display at the same time# Required by ‘oled_display’ pluginoled_size_2 =19# Text-2 - Move text ‘Right’ on display# Required by ‘oled_display’ pluginoled_text2_right =0# Text-2 - Move text ‘Down’ on display# Required by ‘oled_display’ pluginoled_text2_down =23# Text-3, Counter, Date-Time - Could be either'Taken_Photo', 'Printed', 'Forgotten', 'Remaining_Duplicates','Date-Time','Empty', 'Text_Only'# Required by ‘oled_display’ plugin - (Also seeHow to change the Date-Time format, when usingDate-Time)oled_counter_type3 =Remaining_Duplicates# Text-3 Font - You can add more fonts ‘Truetype(.ttf)’ or ‘Opentype(.otf)’, in the folder'~/.config/pibooth/oled_display/fonts/'# Required by ‘oled_display’ pluginoled_font_3 =DejaVuSerif-Bold.ttf# Text-3 Color - uses HTML color names. E.g.'White', 'Red', 'Cyan', 'Silver', 'Blue', 'Grey', 'DarkBlue', 'Black', 'LightBlue', 'Orange', 'Purple', 'Brown', 'Yellow', 'Maroon', 'Lime', 'Green', 'Magenta', 'Olive'.(On Monochrome displays colors will be converted to ‘White’)# Required by ‘oled_display’ pluginoled_text3_color =white# Text-3 - Text with space after to use with counter, or leave empty for counter only# Required by ‘oled_display’ pluginoled_text_3 ="Remain "# Text-3 - Center text on display'Yes' or 'No'# Required by ‘oled_display’ pluginoled_text_3_center =No# Text-3 Size - 19 is default if 3 x text/counters are used on the display at the same time# Required by ‘oled_display’ pluginoled_size_3 =19# Text-3 - Move text ‘Right’ on display# Required by ‘oled_display’ pluginoled_text3_right =0# Text-3 - Move text ‘Down’ on display# Required by ‘oled_display’ pluginoled_text3_down =46How to use Date-Time / Logo / Animated GifHow to change the Date-Time formatSee all the Date-Time format codes in the following fileDate-Time_Format_Codes.rstYou can also find the fileDate-Time_Format_Codes.rstin your local pibooth config folder~/.config/pibooth/oled_display/after you run the plugin the first time.Choose Date_Time in the menu - (If you leave the text field empty, the Default will be used =%H:%M:%S).Or use semething like this%d/%m - %H:%M:%Sin the text field to display the date and time.Remember to set the size of the text to match the display, after you set your Date-Time format codes.How to show your own LogoLOGO- chooseYesin the Pibooth Menu underLogo instead of text(Default Logo is the Pibooth logo in resolutions 128x32 or 128x64).Also look atHow to show your own Animated Gifas logo.Add a new Logo or Animated gif, same resolution as your display ( or lower).Logo path =~/.config/pibooth/oled_display/logo/(pibooth-oled-display support many different image type extensions)If you add an images with the same name and File extension(s) as some of the default images, only the user images will be showing.When adding new Logo, you need to restart Pibooth to load it into the logo database. If you delete a user logo that is still in the configuration a default Pibooth Logo will be showing on the displayHow to show your own Animated GifYou can add Animated Gif in the folder~/.config/pibooth/oled_display/logo/An chooseYesinLogo instead of textin the Pibooth MenuOn Monochrome displays (black & white) you need the Animated Gif to have a Black bagground. The reason for that is that the luma.oled drivers converts transperent to white color, when usingcolor mode 1.Some Animated Gifs with transperent bagground work, but in general they don´t.So do some test with Animated Gif´s in the same resolution or less as your display.All images will be centered automatic on the display.?. Can i use an Animated Gif with colors on an Monochrome display =YesBut they are not always showing correct, as they will be converted to Black and White or grayscale.When adding new Animated Gif, you need to restart Pibooth to load them into the Logo database. If you delete a user Animated that is still in the configuration a default Pibooth Logo will be showing on the displayHow to show your own States imagesSTATES- chooseYesin the Pibooth Menu underShow state pictures(Default States images are already provided with these display resolutions):128 x 32 pixels128 x 64 pixels128 x 128 pixels160 x 128 pixels192 x 64 pixels256 x 64 pixels256 x 128 pixels256 x 256 pixels320 x 240 pixelsAdd new.pngStates images, same resolution as your display, to each folders.States path =~/.config/pibooth/oled_display/states/When adding a new states images, it will automatic be used instead of default.There are 8 folders, and you need 11.pngimages with the static names “folder and resolution”.
Here is an examble on how you should name your states images if you have an display with resolution 128 x 64.
You should make images with the same resolution as you display and use the static names with resolution as below, and put them in every folder under each states.Examples : 128x32 =processing_128x32.png128x64 =processing_128x64.pngList of file names for a display with 128x64 resolutionstates/capture/capture_128x64.pngstates/choose/choose_128x128.pngstates/failure/failure_128x64.pngstates/finished/finished_128x64.pnglayout needs 4 ``.png`` images named like thisstates/layout/layout1_128x64.png,layout2_128x64.png,layout3_128x64.png,layout4_128x64.pngstates/preview/preview_128x64.pngstates/printer/printer_128x64.pngstates/processing/processing_128x64.pngYou can see the origial gimp files in theoriginfolderHereunder each folder.states/capture/origin/capture_128x64.xcfstates/choose/origin/choose_128x64.xcfstates/failure/origin/failure_128x64.xcfstates/finished/origin/finished_128x64.xcfLayout has 4 ``.xcf`` files, inside each folder for your resolutionstates/layout/origin/layout1_128x64.xcflayout2_128x64.xcflayout3_128x64.xcflayout4_128x64.xcfstates/preview/origin/preview_128x64.xcfstates/printer/origin/printer_128x64.xcfstates/processing/origin/processing_128x64.xcfIf you are using an OLED display with other resolution than already supplied,you need to make a new images and put it in each states folder or display will be empty if states is activated.You can convert images with the freeGIMPor online services like (this page).If you have an monochrome display with the resolution 128x64, you can convert or make an image to that resolution (in 8-bit mode).When adding new States images, you need to restart Pibooth to load them into the States database. If you delete a user State image the default Pibooth States images will be showing on the displayHow to add your own FontsYou can add new Fonts to your local oled_display Fonts folder.~/.config/pibooth/oled_display/fonts/Supported font types are ´´.ttf´´ or ´´otf´´Fonts will be added as extra font in the Fonts database automatic.If you add fonts that has the same name as some of the default fonts,only the user Fonts will be showing in the menu.You can download free fonts online, on sites likefontspace.comWhen adding new fonts, you need to restart Pibooth to load them into the fonts database. If you delete a user Font that is still in the configuration the default Font ‘DejaVuSerif-Bold.ttf’ will be used on the displayTips & TricksHow to use 2 x OLED displays at the same timeHow to install the second display plugin “pibooth_oled_display_2.py”The extra plugin for display 2“pibooth_oled_display_2.py”is automatic in the folder~/.config/pibooth/oled_display/after you run the plugin the first time.You can activate the plugin by adding path to the file, to custom plugins in the config.cfg file under [GENERAL].Open the config.cfg with this command, and find the line “plugins =”$ pibooth --config# Path to custom plugin(s) not installed with pip (list of quoted paths accepted)plugins ='~/.config/pibooth/oled_display/pibooth_oled_display_2.py'Now you will have an extra plugin option in pibooth settings, withOled display 2 - (Setup)andOled display 2 - (modify)Go to the menu and setup your new second display. If you are using I2c, you new display 2 need its own I2c addresses (standard 0x3d).If you use SPI, you need to have 2 displays with the CS (Chip Select) option (this funktion has not yet been tested, but should work).Setup 2 x I2c OLED displays - (Showing seperate things on each display)You will need 2 x I2c OLED displays with different I2c addresses. defaults are0x3con display 1, and0x3don display 2.On most displays you can change the I2c address on the back of your OLED display with some soldering.Or you can get an8 Channel I2C Muti-Channel Expansion Development Boardto convert the default address to an new address and then use up 8 x I2c displays at the same time.Setup 2 x SPI OLED displays - (Showing seperate things on each display)I dont know if it work, as i have not testet it yet. But it should work.And if it work, it will only work if you have the CS PIN on the displays.Both the displays uses the same PINs/GPIOs, except the CS (Chip Select) PINOn display 1. Put a wire from the CS PIN to GPIO 8 (pin24) to choose CE0.On display 2. Put a wire from the CS PIN to GPIO 7 (pin26) to choose CS1.Check online for more info about your displays on how to set them up.According to LUMA.oled driver documentation, you should chooseport 0for display 1 andport 1for display 2.You can do that in the pibooth menu. An maybe also try change the SPI device number to 0,1 or 2 to make it work.Can i use SPI1 ? (e.g.SPI and SPI1 together on the pi)The short answer is no. I tryed, but with no luckI dont think it is suported by the luma.oled drivers.So only SPI (SPI0) can be used.Setup 2 x OLED displays - (Showing the same things on each display)If you want to show the exact same things on 2 or more displays, you dont need the second plugin.On the I2c displays, you just use the same port address (0x3c etc.), and wire them to the same GPIO PINs.On the SPI displays, you just use the same CS port address (CE0 etc.), and wire them to the same GPIO PINs.How to use a OLED displays with only 6 pins I2c/SPISPIMost 6 PINs displays works out of the box with SPI.but unfortunately you can only use one display in pibooth, as there is no CS pin on the display.I2cCan be used with some soldering tricks on the back of the displays, and some extra component.It also works when using 2 displays in pibooth.To choose I2c port address, you need to solder a wire fromDC >> VCC = for I2C address 0x3cDC >> GND = for I2C address 0x3dYou will also need to make a “pull-up and reset circuit” or “reset pull-up circuit.”So you need a 10k resistor, and a 47nf or 100nf capacitor (Ceramic or Electrolytic)Reset pin >> 10k resistor >> VCCReset pin >> 47nF or 100nF capacitor (condensator) >> GND (Ground)The purpose of this circuit is to provide a stable voltage level and proper reset functionality for the Reset pin of the OLED display. The 10k resistor connected between the Reset pin and VCC is the pull-up resistor, which ensures that the Reset pin remains at a high logic level when it is not actively driven low.The 47nF or 100nF capacitor connected between the Reset pin and ground serves to stabilize the reset signal by filtering out any noise or voltage fluctuations. It helps ensure that the reset signal is clean and reliable, preventing false triggering or erratic behavior.By using this pull-up and reset circuit, you are ensuring that the OLED display receives a proper reset signal and is able to turn on reliably. It is a common practice to include these components to ensure the correct functioning of cheap displays with reset pins.