Skip to content

Icon instructions outdated and examples not updated #108

@djchadderton

Description

@djchadderton

It seems that the code for drawing icons on the menu screen was changed to use a symbols font 5 months ago but the instructions on the Pimoroni web site still say this should be a list of points to create a vector shape and only the example apps that are included in the retail version have been updated in this repository. Adding these to the Presto will prevent it from displaying the menu at all as there is no error checking to enable it to either work with the old system or fail gracefully.

The apps in the examples file that fail in this way are agile_pricing_display.py, auto_backlight.py, backlight_slider.py and indoor-outdoor-temp.py.

I assume from reading the code that rather than simply adding an app to the root directory as before (and as the instructions still state), to add an app to the menu, it has to be added to the icons dictionary in main.py with the icon name given in the file as a key and the unicode value as value.

A list of icons included with their unicode values would be very useful. I've tried some values I've found elsewhere that seem to relate to the included font, but none of them have worked, but at least they just leave the icon blank rather than crashing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions