Open th4ruka opened 1 month ago
Can someone help with this failing checks,
Run ruff check --output-format=github .
Error: micropython/drivers/display/ssd1306/examples/example_ssd1306_i2c.py:31:9: F821 Undefined name `const`
Error: micropython/drivers/display/ssd1306/examples/example_ssd1306_i2c.py:32:10: F821 Undefined name `const`
Error: Process completed with exit code 1.
Can someone help with this failing checks,
Run ruff check --output-format=github . Error: micropython/drivers/display/ssd1306/examples/example_ssd1306_i2c.py:31:9: F821 Undefined name `const` Error: micropython/drivers/display/ssd1306/examples/example_ssd1306_i2c.py:32:10: F821 Undefined name `const` Error: Process completed with exit code 1.
Try adding the import:
from micropython import const
Try adding the import:
from micropython import const
Now it works! Thank you @mattytrentini
Description:
This is an example for
ssd1306
package usingI2C
protocol. It displays current date and time unpacked fromtime.localtime()
function on thessd1306
OLED display.The output will look like,Usage:
1. Install ssd1306 package in your microcontroller.
2. Copy the
example_ssd1306_i2c.py
file to your device. 3. Connect the SDA, SCL pins as given in the code,4. Run the example & see results.
Tests: