Xinyuan-LilyGO / T-PicoC3

MIT License
156 stars 41 forks source link

🌟LilyGO T-PicoC3🌟

Quick start:

Notice

In TYPE-C, you can determine whether the current connection is PICO or ESP32C3 through positive and negative access.

When connecting, the onboard LED lamp will be indicated according to the connected chip (due to cable problems, it is possible that the indicator light is opposite to the actual connected chip, or even two LED lights at the same time, please replace another cable when two led lights up at the same time), the main judgment is that the currently connected device is displayed in the serial port name.

RP2040 :

Arduino

  1. Open up the Arduino IDE and go to File->Preferences.

  2. Unofficial libraries are used in the Arduino examples.In the dialog that pops up, enter the following URL in the "Additional Boards Manager URLs" field:

    https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
  3. Go to Tools->Boards->Board Manager in the IDE

  4. Type "pico" in the search box and select "Add":

  5. Copy TFT_eSPI to the <C:\Users\Your User Name\Documents\Arduino\libraries> directory

  6. Open Arduino IDE, find TFT_eSPI in the file and example, the T-Display factory test program is located at TFT_eSPI -> FactoryTest, you can also use other sample programs provided by TFT_eSPI

  7. In the Arduino IDE tool options, select the development board Raspberry Pi Pico, Other keep the default

  8. Hold down the BOOT button, click the reset button, and release the BOOT button after a delay of one second or after waiting for the computer to eject a new disk

  9. Finally, click upload or drag the firmware to the new disk

    MicroPython

  10. install Thonny Python IDE

  11. After the installation is complete, you need to click on the toolbar, click Run -> Select Interpreter, enter the following interface, select Raspberry Pi Pico, you need to configure Pico before configuring the following ports

  12. Press the BOOT button, click RES, then go back to Thonny Python IDE and change the port to the serial port where Pico is located. If you don't find it, click Install or update firmware.

  13. Enter or save as a script to run

    from machine import Pin, Timer
    led = Pin(25,Pin.OUT)
    tim = Timer()
    def tick(timer):
    global led
    led.toggle()
    tim.init(freq=2.5, mode=Timer.PERIODIC, callback=tick)
  14. If you need to save to the chip, you need to click File->Save As->rp2040.

  15. For more usage methods, please refer to the Micro python documentation.


ESP32-C3

Arduino

  1. Open up the Arduino IDE and go to File->Preferences.
  2. In the dialog that pops up, enter the following URL in the "Additional Boards Manager URLs" field:
    • Stable release link:
      https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
    • Development release link:
      https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
  3. Go to Tools->Boards->Board Manager in the IDE
  4. Type "EPS32C3 Dev" in the search box and select "Add":
  5. Click any "file-> example-> all esp32 esamle" and upload the run

âš âš âš  If you have an ESP32C3 upload error, please check this video. If you use a non-standard TYPE-C cable, the blue and green lights of the board will be on. At this time, it is impossible to judge which disconnection is C3. Please replace the data cable. The operation method in the video is to short-circuit the IO09 pad and GND before starting, and then plug it into the USB port. At this time, the ESP32C3 is in the waiting burning mode, and then write.

This video operation method only needs to be used when it cannot be written. If you are using Arduino, you don’t need to follow this method after the second and third times.


ESP32-C3 Upload method

Product Product Link
T-PicoC3 Amazon(USA)
T-PicoC3 Aliexpress
Pins RP2040
TFT Driver ST7789(240*135)
TFT_MISO N/A
TFT_MOSI 3
TFT_SCLK 2
TFT_CS 5
TFT_DC 1
TFT_RST 0
TFT_BL 4
PWR_ON 22
BOTTON1 6
BOTTON2 7
RedLED 25