-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request for Examples in Micropython #4
Comments
I am trying to get the LCD working with Micropython and machine.SoftSPI. But would love some examples as well, as I still have a blank screen. |
I am not using the default machine.SoftSPI and am instead using this https://github.com/russhughes/st7789_mpy custom build of micro python. However you could try setting phase to 1 in machine.SoftSPI, as that seemed to work for me. |
You can refer to this project, the LCD pins are the same for both of them |
A simple link to the firmware and hello world script would help very much. Especially with the pins and steps to get everything displayed. |
I'd like to re-open the issue. Please provide some examples in this repo that demonstrate the use of:
Some super simple example that at least gives us the module, and pins used.. The request is a simple example in MicroPython for the two main features of this board. Thank you. |
Screen stays blank, it lights up but nothing is projected on the screen. I used this firmware T-DISPLAY-RP2040 trying to display the hello.py example. |
I will update the LCD with WIFI connection example shortly, the update is done with MicroPython and I will reply the link here |
With the firmware from: code:
gives no errors, but also doesnt display anything. I've also tried it with the same russhuges firmware. Same.. No errors, but nothing displayed. |
Sucess! The tft_config_py needs to have phase = 1!:
Then do a reset of the board using the on-board reset switch. |
I have integrated the ST7789 driver in this warehouse and will update it later |
Using WIFI, you can try to communicate with ESP32-C3. The pin definitions are described in detail in the schematic diagram on the home page. The esp-at directive is used by default. You can refer to this documentation on how to drive it https://docs.espressif.com/projects/esp-at/en/latest/esp32/index.html |
Is there a recommended micropython library on the Pico side like the ones for circuitpython? |
That worked, Great work |
Here's the link to a youtube video of me getting it to work: |
Thanks @mperino - that gets it working.
|
Adding a solution for the LCD display to this thread.
5. Finally, here is my example main.py program to display text on 4 lines in 4 different colors:
I have more examples of using the display whilst flashing the led with multithreading. Let me know if you're interested. |
@mperino here is a solution for connecting to Wifi via the oboard ESP C3 chip with example code:
|
I'm a beginner and I'm having difficulties because I don't have the examples with Display and with Wi-fi too, can someone help me please I tried to use the examples given above but there seems to be a lack of code in the lib esp |
@jimemo |
@jimemo: an now it works. |
I suggest you read the factory example, there will be the simplest way to use tft and wifi. You should create an issue. |
Thank you, I forgot to edit my Post. I used it also in the descripton of my solution. |
Can you provide some examples in Micropython that show using the wifi, and the LCD display?
The text was updated successfully, but these errors were encountered: