Skip to content

Commit

Permalink
Generate and check-in icons
Browse files Browse the repository at this point in the history
Checking in icons is not super pretty git practice, but when rendering
through GitHub, that's the easiest option
  • Loading branch information
chrysn committed Sep 12, 2024
1 parent 1ec1db7 commit 65f8edd
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 4 deletions.
Binary file added .icons/app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .icons/app.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-License-Identifier: CC-BY-3.0
SPDX-License-CopyrightText: delapouite
Original file from https://game-icons.net/1x1/delapouite/keyboard.html
Binary file added .icons/board.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .icons/board.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-License-Identifier: CC-BY-3.0
SPDX-License-CopyrightText: lorc
Original file from https://game-icons.net/1x1/lorc/circuitry.html
Binary file added .icons/module.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .icons/module.png.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-License-Identifier: CC-BY-3.0
SPDX-FileCopyrightText: lorc
Original file from https://game-icons.net/1x1/lorc/jigsaw-piece.html
24 changes: 24 additions & 0 deletions .icons/rebuild.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: chrysn <[email protected]>
# /// script
# dependencies = ["cairosvg"]
# ///

import urllib.request
import cairosvg

game_icons = {
"board": ("lorc", "circuitry"),
"app": ("delapouite", "keyboard"),
"module": ("lorc", "jigsaw-piece"),
}

for (outname, (author, iconname)) in game_icons.items():
svg = urllib.request.urlopen(f"https://game-icons.net/icons/ffffff/000000/1x1/{author}/{iconname}.svg").read()
outname = outname + ".png"
cairosvg.svg2png(bytestring=svg, write_to=outname, output_width=20, output_height=20)
with open(outname + ".license", "w") as licensefile:
print("SPDX-License-Identifier: CC-BY-3.0", file=licensefile)
print(f"SPDX-License-CopyrightText: {author}", file=licensefile)
print(f"Original file from https://game-icons.net/1x1/{author}/{iconname}.html", file=licensefile)
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,23 @@ As part of the RIOT project, the [RIOT code of conduct] applies.
Projects using RIOT OS
----------------------

* RIOT in space: [ThingSat.space](https://github.com/thingsat/) is using RIOT on CubSats to create an open source Low Power Global Area Network (LPGAN)
* [MiniLoon](https://www.hackster.io/386121/miniloon-60a9c9): A RIOT powered balloon with sensors to monitor it's environment and an App that can display these information.
* [Marian's Business Card](https://github.com/maribu/business-card): Hardware description, board support, games and text display software for business card sized board with USB power supply.
* [Marian's demo boards](https://github.com/maribu/boards): Various PCBs, including an RGB Christmas tree board, along with RIOT board support for most boards.
Icons indicate that the project offers
hardware descriptions (![oshw]),
a RIOT board description (![board]),
RIOT modules (![module])
or RIOT applications (![app]).

* ![module] RIOT in space: [ThingSat.space](https://github.com/thingsat/) is using RIOT on CubSats to create an open source Low Power Global Area Network (LPGAN)
* ![board] ![app] [MiniLoon](https://www.hackster.io/386121/miniloon-60a9c9): A RIOT powered balloon with sensors to monitor it's environment and an App that can display these information.
* ![oshw] ![board] ![app] [Marian's Business Card](https://github.com/maribu/business-card): Hardware description, board support, games and text display software for business card sized board with USB power supply.
* ![board] [Marian's demo boards](https://github.com/maribu/boards): Various PCBs, including an RGB Christmas tree board, along with RIOT board support for most boards.

More lists
----------

* [Hackster](https://www.hackster.io/riot-os) has an own list of projects using RIOT

[oshw]: .icons/oshw.svg "PCB available as Open Hardware"
[board]: .icons/board.png "RIOT OS board definition available"
[app]: .icons/app.png "Application available"
[module]: .icons/module.png "RIOT modules available"

0 comments on commit 65f8edd

Please sign in to comment.