import sys
from machine import Pin, SoftI2C, I2C
import ssd1306

class bleMain:
    def __init__(self):

        # using default address 0x3C
        sdaPin = 21
        sclPin = 22

        if(sys.platform == 'esp8266'):
            sdaPin = 4
            sclPin = 5
        
        self.i2c = SoftI2C(sda=Pin(sdaPin), scl=Pin(sclPin))

    def main(self):
        '''Start het app'''
        print(f'main start')
        self.display = ssd1306.SSD1306_I2C(128, 64, self.i2c)
        self.display.text('Hello, World!', 0, 0, 1)
        self.display.show()


print(f'__name__ = {__name__}')

if (__name__ == "__main__"):
    print(f"App start op {sys.platform}")
    main1 = bleMain()
    main1.main()
    print(f"App eind")
$abcdeabcde151015202530fghijfghij
D0D1D2D3D4D5D6D7GNDLOGIC