Inky Pack C++ programming problem

I have an Inky Pack with a Pico W. I wish to program them in C++, as a start I am trying to get the inky_pack_demo.cpp program working. The program is as basic as it gets, just putting 2 lines of text on the screen. Unfortunately all I get a reverse video, ie. a black screen with two lines of what looks like braille, just dots with no resemblance to the correct characters.
I am using the program unaltered with this CMakeLists.txt

cmake_minimum_required(VERSION 3.13)

include(pico_sdk_import.cmake)
include(pimoroni_pico_import.cmake)

set(PICO_BOARD pico_w)

# rename your project
project(inky C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)

# Initialize the SDK
pico_sdk_init() 

# Add your source files
add_executable(${PROJECT_NAME}
    inky_pack_demo.cpp # <-- Add source files here!
)

add_subdirectory(pimoroni-pico/common)
add_subdirectory(pimoroni-pico/drivers/uc8151)
add_subdirectory(pimoroni-pico/drivers/button)
add_subdirectory(pimoroni-pico/libraries/pico_graphics)
add_subdirectory(pimoroni-pico/libraries/bitmap_fonts)
add_subdirectory(pimoroni-pico/libraries/hershey_fonts)

# set pico specific options
pico_set_program_name(${PROJECT_NAME} "${PROJECT_NAME}")
pico_set_program_version(${PROJECT_NAME} "0.1")

pico_enable_stdio_uart(${PROJECT_NAME} 0)
pico_enable_stdio_usb(${PROJECT_NAME} 1)

# Don't forget to link the libraries you need!
target_link_libraries(${PROJECT_NAME}
 #   pimoroni_common
    pico_stdlib
    hardware_spi
    pico_graphics
    bitmap_fonts
    hershey_fonts
    uc8151
    button # <-- List libraries here!
)

# create map/bin/hex file etc.

pico_add_extra_outputs(${PROJECT_NAME})

Everything compiles without error and I get an inky.uf2 file.
Any ideas?

I have tried using the Pimoroni supplied cmake files and compiled all the example. The resultant inky_pack.uf2 file gets exactly the same results. It would appear that this example simply doesn’t work.

If I compile the Badger2040_fonts example, I get the correct display, but I cannot get the buttons to work.

It’s getting very frustrating.