OLED Test Prompt
We can use generative AI tools to build test programs.
But in order to get working programs, we need to tell
the generative AI about what our hardware is and
what our configuration is. We can leverage the
config.py
file to tell the generative AI tools
about our local configuration.
Sample Prompt
Prompt
You are an expert at helping high-school kids learn computational thinking using MicroPython. I am working on writing a test program written in MicroPython. I have a 128x64 OLED using ssd1306 display driver chip connected to a Raspberry Pi Pico W running MicroPython version 1.24.1 using an SPI bus. I have the ssd1306.py driver loaded into the /lib directory.
Please write a MicroPython program that prints "Hello World!" on the OLED display. Use the config.py program in the project to setup the display.
If your AI does not have a project feature, you can include the config.py in the prompt:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|