Git Product home page Git Product logo

hagl_pico_vgaboard_example's Introduction

HAGL Pico VGA Board Example

BIG FAT WARNING
THIS PROJECT IS NOT PRODUCTION READY!

Introduction

This is an example of using HAGL Pico VGA Board project.

As of March 2024, included demos are:

  • Specifications: mainly text demo with Pico's & VGA properties
  • Palettes: grid display of current palette
  • Scroller: 3 line scrollers from right to left with text from specifications, english and french texts somewhat inspired by 80's demos on Atari ST
  • Images: 3 pictures (cat, cow & dog) slideshow (16 and 256 colors)
  • Hollow figures: random hollow graphic primitives: rectangles, ellipses & so on
  • Filled figures: same with filled primitives
  • Bars: sliding bars at different speeds
  • Fonts: sample text for every HAGL font (from 5x7 to 8x13) and 8x8 BIOS type one
  • Scrolling 16 colors tiles & sprites: "Cosmic Battle" screen with tiles, aliens, ship & score

Status

WIP

  • Many other things ;-)

Bugs

  • Partially resolved: CMake woes after splitting project in library and example:
    • how to handle "developer" (all libraries are in upper directoriess) and "user" (GIT submodules) modes?
    • make serial console options part of hagl_pico_vgaboard, not hagl_pico_vgaboard_example

Build instructions

Build with real hardware

To start with the project, do:

git clone https://github.com/CHiPs44/hagl_pico_vgaboard.git
cd hagl_pico_vgaboard
git submodule init
cd example
mkdir build
cd build
cmake ..
# or
cmake .. -D CMAKE_BUILD_TYPE=RelWithDebInfo
# or
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPICO_DEOPTIMIZED_DEBUG=1

After adapting CMakeLists.txt, put your Pico in USB mode with bootsel and reset button of VGA board:

make -j$(nproc)
cp -pv hagl_pico_vgaboard_example.uf2 /media/[username]/RPI-RP2/

If you use a Picoprobe or another SWD device, you should know how to upload ELF file to your Pico, or try to create/adapt your launch.json from https://chips44.github.io/20231230-PicoDebugProbeHowto.html to use OpenOCD & GDB. [F5] will then be your best friend!

Build with pico-host-sdl

mkdir build2
cd build2
# change to location of pico-host-sdl
reset && cmake -DPICO_PLATFORM=host -DPICO_SDK_PRE_LIST_DIRS=/home/<user>/src/pico-host-sdl -DCMAKE_BUILD_TYPE=Debug ..
reset && make -j$(nproc) && ./hagl_pico_vgaboard_example

License

The MIT No Attribution License (MIT-0).

See LICENSE for more information.

CHiPs44.

EOF

hagl_pico_vgaboard_example's People

Contributors

chips44 avatar

Watchers

 avatar  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.