Coder Social home page Coder Social logo

my_lcd12864_st7565_pi_pico's Introduction

LCD12864 - ST7565 - SPI - Pi Pico example

References:

Getting Started with Pi Pico

Original Adafruit/Arduino code found here

Adafruit/ST7565-LCD

Install Vscode extensions for debug

Once the install has completed, install the extensions needed to debug a Raspberry Pi Pico:

$ code --install-extension marus25.cortex-debug
$ code --install-extension ms-vscode.cmake-tools
$ code --install-extension ms-vscode.cpptools

Export Pi Pico SDK

Finally, start Visual Studio Code from a Terminal window:

$ export PICO_SDK_PATH=/home/pi/pico/pico-sdk
$ code

Add Vscode settings.

The pico-examples repo contains an example debug configuration that will start OpenOCD, attach GDB, and finally launch the application CMake is configured to build. Go ahead and copy this file (launch-raspberrypi-swd.json) into the picoexamples/.vscode directory as launch.json. We also provide a settings.json file that we recommend you also copy. This settings.json removes some potentially confusing options from the CMake plugin (including broken Debug and Run buttons that attempt to run a Pico binary on the host).

$ cd ~/pico/pico-examples
$ mkdir .vscode
$ cp ide/vscode/launch-raspberrypi-swd.json .vscode/launch.json
$ cp ide/vscode/settings.json .vscode/settings.json

Note:

You may have to amend the gdbPath in launch.json if your gdb is called arm-none-eabi-gdb instead of gdb-multiarch. PLEASE NOTE: Launch the debugger from the Debug Launcher and NOT from the Cmake build tools.

Tip:

If you switch to the "Terminal" tab in the bottom right-hand pane, you can use this to open minicom inside VSCode to see the UART output from the "Hello USB" example by typing,

$ minicom -b 115200 -o -D /dev/cu.usbmodem143202

my_lcd12864_st7565_pi_pico's People

Contributors

brucebotes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.