Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set(PICO_BOARD "pico" CACHE STRING "" FORCE)

include(pico_sdk_import.cmake)

project(pico-composite-PAL-colour_project C CXX ASM)
project(pico-composite-PAL-colour C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
pico_sdk_init()
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ The way the code is set up, it will run through a collection of numbered demos,
9. A portion of Weebl's Badger Badger Badger flash animation, rendered as run length encoded video
10. Bad Apple overlayed with the classic [plasma effect](https://en.wikipedia.org/wiki/Plasma_effect)

### Build in VS Code ###

Open this repository folder in VS Code
Install [Raspberry Pi Pico extension](https://marketplace.visualstudio.com/items?itemName=raspberry-pi.raspberry-pi-pico). It will automatically install Cmake extension, Cmake Tools extension.

1. Go to Pi Pico extension -> Import Project, select this repository folder again, pres Import
2. Pi Pico extension -> Compile Project

Then have multiple options to upload compiled firmware:
1. Connect Pi in BOOTSEL mode
2. Copy build/pico-composite-PAL-colour.elf to Removable drive that appears

Or
1. Connect Pi in BOOTSEL mode
2. Pi Pico extension -> Run Project(USB)
3. If fails on Windows, you may need to install "WinUSB" driver to RP2 Boot (Interface **1**) via [Zadig tool](http://zadig.akeo.ie/), and try again. See [Getting started with Pico](https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf) for more info on this.

## Resources ##

A bit of research was needed to understand how composite video and colour composite video work, and how I could make it work on the Pico. I found these resources quite helpful.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pico-composite-PAL-colour.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int8_t buf0[BUF_SIZE];
int8_t buf1[BUF_SIZE];

#include "random.h"
#include "time.h"
#include "time_utils.h"
#include "font.h"
#include "testcardf.h"
#include "raspberrypi.h"
Expand Down