Skip to content

Commit

Permalink
ci: add xbm's
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Dec 1, 2023
1 parent e4e39e3 commit f917daa
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 4 deletions.
6 changes: 6 additions & 0 deletions icons/bluetooth.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define bluetooth_width 16
#define bluetooth_height 16
static char bluetooth_bits[] = {
0x00, 0x00, 0x80, 0x01, 0x80, 0x03, 0x80, 0x06, 0x90, 0x0C, 0xB0, 0x0C,
0xE0, 0x06, 0xC0, 0x03, 0x80, 0x01, 0xC0, 0x03, 0xE0, 0x06, 0xB0, 0x0C,
0x90, 0x0C, 0x80, 0x06, 0x80, 0x03, 0x80, 0x01, };
6 changes: 6 additions & 0 deletions icons/check.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define check_width 16
#define check_height 16
static char check_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x00, 0xF0,
0x00, 0xF8, 0x0E, 0x7C, 0x1E, 0x3E, 0x3E, 0x1F, 0xF8, 0x0F, 0xF0, 0x07,
0xE0, 0x03, 0xC0, 0x01, 0x00, 0x00, 0x00, 0x00, };
6 changes: 6 additions & 0 deletions icons/no_con.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define no_con_width 16
#define no_con_height 16
static char no_con_bits[] = {
0x00, 0x00, 0xC0, 0x07, 0xF0, 0x1F, 0xF8, 0x3F, 0x7C, 0x7C, 0x1C, 0x7E,
0x0E, 0xFF, 0x8E, 0xEF, 0xCE, 0xE3, 0xEE, 0xE1, 0xFC, 0x70, 0x7C, 0x78,
0xF8, 0x3F, 0xF0, 0x1F, 0xC0, 0x07, 0x00, 0x00, };
6 changes: 6 additions & 0 deletions icons/signal_1.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define signal_1_width 16
#define signal_1_height 16
static char signal_1_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x02, 0x00, 0x03, 0x00, 0x03, 0x00, };
6 changes: 6 additions & 0 deletions icons/signal_2.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define signal_2_width 16
#define signal_2_height 16
static char signal_2_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x30, 0x00, 0x38, 0x00,
0x38, 0x00, 0x3A, 0x00, 0x3B, 0x00, 0x3B, 0x00, };
6 changes: 6 additions & 0 deletions icons/signal_3.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define signal_3_width 16
#define signal_3_height 16
static char signal_3_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
0x00, 0x03, 0x80, 0x03, 0x80, 0x03, 0xA0, 0x03, 0xB0, 0x03, 0xB8, 0x03,
0xB8, 0x03, 0xBA, 0x03, 0xBB, 0x03, 0xBB, 0x03, };
6 changes: 6 additions & 0 deletions icons/signal_4.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define signal_4_width 16
#define signal_4_height 16
static char signal_4_bits[] = {
0x00, 0x00, 0x00, 0x20, 0x00, 0x30, 0x00, 0x38, 0x00, 0x38, 0x00, 0x3A,
0x00, 0x3B, 0x80, 0x3B, 0x80, 0x3B, 0xA0, 0x3B, 0xB0, 0x3B, 0xB8, 0x3B,
0xB8, 0x3B, 0xBA, 0x3B, 0xBB, 0x3B, 0xBB, 0x3B, };
6 changes: 6 additions & 0 deletions icons/talk.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define talk_width 16
#define talk_height 16
static char talk_bits[] = {
0xFC, 0x3F, 0xFE, 0x7F, 0xFF, 0xFF, 0x0F, 0xF0, 0x07, 0xE0, 0x07, 0xE0,
0x07, 0xE0, 0x07, 0xE0, 0x07, 0xE0, 0x07, 0xE0, 0x0F, 0xF0, 0x8F, 0x7F,
0xDE, 0x3F, 0xFC, 0x1F, 0x78, 0x00, 0x30, 0x00, };
6 changes: 6 additions & 0 deletions icons/temperature.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define temperature_width 16
#define temperature_height 16
static char temperature_bits[] = {
0x80, 0x03, 0xC0, 0x07, 0xE0, 0x04, 0xE0, 0x07, 0xE0, 0x04, 0xE0, 0x07,
0xE0, 0x04, 0xE0, 0x07, 0xE0, 0x04, 0xF0, 0x0F, 0xF8, 0x1F, 0xF8, 0x1F,
0xF8, 0x1F, 0xF8, 0x1F, 0xF0, 0x0F, 0xE0, 0x07, };
6 changes: 6 additions & 0 deletions icons/warning.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define warning_width 16
#define warning_height 16
static char warning_bits[] = {
0x00, 0x01, 0x80, 0x03, 0x80, 0x03, 0xC0, 0x07, 0xC0, 0x06, 0xE0, 0x0E,
0x60, 0x0C, 0x70, 0x1D, 0x30, 0x19, 0x38, 0x39, 0x18, 0x31, 0x1C, 0x70,
0x0C, 0x61, 0xFE, 0xFF, 0xFE, 0xFF, 0x00, 0x00, };
6 changes: 6 additions & 0 deletions icons/wifi1.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define wifi1_width 16
#define wifi1_height 16
static char wifi1_bits[] = {
0x00, 0x00, 0xE0, 0x07, 0xF8, 0x1F, 0xFC, 0x3F, 0x0E, 0x70, 0xE6, 0x67,
0xF0, 0x0F, 0x18, 0x18, 0xC0, 0x03, 0xE0, 0x07, 0x20, 0x04, 0x80, 0x01,
0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, };
6 changes: 6 additions & 0 deletions icons/wifi2.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define wifi2_width 16
#define wifi2_height 16
static char wifi2_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x07,
0xF0, 0x0F, 0x18, 0x18, 0xC0, 0x03, 0xE0, 0x07, 0x20, 0x04, 0x80, 0x01,
0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, };
12 changes: 8 additions & 4 deletions make_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-

import argparse
import os
import pathlib
import re
import subprocess
Expand All @@ -23,9 +24,12 @@
args = parser.parse_args()


git_desc = (
subprocess.check_output(["git", "describe", "--dirty"]).decode("utf-8").strip()
)
if os.getenv("CI"):
git_desc = os.getenv("GITHUB_REF")
else:
git_desc = (
subprocess.check_output(["git", "describe", "--dirty"]).decode("utf-8").strip()
)


VER_TPL = """
Expand Down Expand Up @@ -86,7 +90,7 @@ def replace_content(fd, new_content):
"#define ", "#define icon_"
)

tf.unlink()
# tf.unlink()

with open("./src/icons_xbm.h", "a+") as fd:
replace_content(fd, xbm_content)
Expand Down

0 comments on commit f917daa

Please sign in to comment.