Преглед изворни кода

Merge pull request #9 from m7i-org/feat/add-gpio-picture

Added bigger animated flipper
m7i пре 11 месеци
родитељ
комит
092bb33da0

+ 7 - 2
README.md

@@ -1,9 +1,9 @@
 # Longwave Clock
 
-![](screenshots/v0.1/animation.gif)
-
 This is a Flipper Zero app to receive and decode, or simulate, multiple time signal broadcasts with different protocols and time formats. For receiving via GPIO, an inexpensive receiver connected to a receiving pin is required.
 
+![](screenshots/v0.1/animation.gif)
+
 ## Protocol support
 
 ### DCF77 (Europe, Germany)
@@ -67,3 +67,8 @@ Please check with the manufacturer, as yours might be different and you may caus
 - **GND** / unlabeled: flipper pin 11 (GND)
 - **PON** / **P**: power on, asks for "logic low", using flipper pin 11 (GND)
 - **OUT** / **T**: the data signal, using flipper pin 16 (C0)
+
+## Picture credits
+
+- The [Font “HaxrCorp 4089”](https://fontstruct.com/fontstructions/show/192981) by “sahwar” is licensed under a CC-BY-SA license.
+- The picture of a flipper zero is (C) [Flipper Devices Inc](https://flipperzero.one/).

+ 12 - 4
screenshots/bin/10_to_gif.sh

@@ -1,13 +1,21 @@
 #!/bin/bash
 
+res="$(cd "$(dirname $0)"; pwd;)/../res"
 t=$(mktemp -d);
-mkdir $t/1 $t/2 $t/3
+mkdir $t/1 $t/2 $t/3 $t/4
 echo "Working in $t";
 
+n=0;
 for i in $(ls *.png | sort); do 
   convert $i -alpha remove +repage -crop 512x256+1120+626 +repage $t/1/$i;
-  convert $t/1/$i -resize 256x128 $t/2/$i;
-  convert $t/2/$i  $t/3/$i;
+  convert $t/1/$i -resize 250x125 $t/2/$i;
+  composite -geometry +225+417 $t/2/$i $res/gpio_simple.png $t/3/$i
+  composite -geometry +440+0 $res/wave_$((n%3+1)).png $t/3/$i $t/4/$i
+  n=$(($n+1));
 done;
 
-convert -delay 100 -loop 0 $t/3/*.png result.gif
+convert -delay 100 -loop 0 $t/4/*.png animation_big.gif
+# Open in GIMP
+# 1. Image>Mode>Indexed>Generate optimum palette
+# 2. Filters>Animation>Optimize (for GIF)
+# 3. File>Export As...

BIN
screenshots/res/gpio_simple.png


BIN
screenshots/res/wave_1.png


BIN
screenshots/res/wave_2.png


BIN
screenshots/res/wave_3.png


BIN
screenshots/v0.1/animation.gif