# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import board
import busio
import adafruit_ssd1306
import displayio
import adafruit_displayio_ssd1306
import time
displayio.release_displays()
# Create the I2C interface.
i2c = busio.I2C(board.GP1, board.GP0)
display_bus = displayio.I2CDisplay(i2c, device_address=0x3c)
display = adafruit_displayio_ssd1306.SSD1306(display_bus, width=128, height=32)
def dothing():
# Create the SSD1306 OLED class.
# The first two parameters are the pixel width and pixel height. Change these
# to the right size for your display!
oled = adafruit_displayio_ssd1306.SSD1306_I2C(128, 32, i2c)
oled2 = adafruit_displayio_ssd1306.SSD1306_I2C(128, 32, i2c)
oled.fill(0)
oled.pixel(0,0, 1)
oled.pixel(20,0, 1)
oled.pixel(20,20, 1)
oled.show()
x=0
while True:
display.fill(1)
x = x + 1
print(x + 1)
#display.root_group = display.CIRCUITPYTHON_TERMINAL