Added LCD characters and script for generating screen images.

pull/32/head
Holger Wirtz 5 years ago
parent c24bdb4cfd
commit af81199f74
  1. 68
      doc/bin/gen_lcd_screen.sh
  2. BIN
      doc/images/LCD_blue.png
  3. BIN
      doc/images/LCD_characters_green/0.png
  4. BIN
      doc/images/LCD_characters_green/1.png
  5. BIN
      doc/images/LCD_characters_green/2.png
  6. BIN
      doc/images/LCD_characters_green/3.png
  7. BIN
      doc/images/LCD_characters_green/4.png
  8. BIN
      doc/images/LCD_characters_green/5.png
  9. BIN
      doc/images/LCD_characters_green/6.png
  10. BIN
      doc/images/LCD_characters_green/7.png
  11. BIN
      doc/images/LCD_characters_green/8.png
  12. BIN
      doc/images/LCD_characters_green/9.png
  13. BIN
      doc/images/LCD_characters_green/A.png
  14. BIN
      doc/images/LCD_characters_green/B.png
  15. BIN
      doc/images/LCD_characters_green/C.png
  16. BIN
      doc/images/LCD_characters_green/D.png
  17. BIN
      doc/images/LCD_characters_green/E.png
  18. BIN
      doc/images/LCD_characters_green/F.png
  19. BIN
      doc/images/LCD_characters_green/G.png
  20. BIN
      doc/images/LCD_characters_green/H.png
  21. BIN
      doc/images/LCD_characters_green/I.png
  22. BIN
      doc/images/LCD_characters_green/J.png
  23. BIN
      doc/images/LCD_characters_green/K.png
  24. BIN
      doc/images/LCD_characters_green/L.png
  25. BIN
      doc/images/LCD_characters_green/M.png
  26. BIN
      doc/images/LCD_characters_green/N.png
  27. BIN
      doc/images/LCD_characters_green/O.png
  28. BIN
      doc/images/LCD_characters_green/P.png
  29. BIN
      doc/images/LCD_characters_green/Q.png
  30. BIN
      doc/images/LCD_characters_green/R.png
  31. BIN
      doc/images/LCD_characters_green/S.png
  32. BIN
      doc/images/LCD_characters_green/T.png
  33. BIN
      doc/images/LCD_characters_green/U.png
  34. BIN
      doc/images/LCD_characters_green/V.png
  35. BIN
      doc/images/LCD_characters_green/W.png
  36. BIN
      doc/images/LCD_characters_green/X.png
  37. BIN
      doc/images/LCD_characters_green/Y.png
  38. BIN
      doc/images/LCD_characters_green/Z.png
  39. BIN
      doc/images/LCD_characters_green/a.png
  40. BIN
      doc/images/LCD_characters_green/b.png
  41. BIN
      doc/images/LCD_characters_green/bar1.png
  42. BIN
      doc/images/LCD_characters_green/bar2.png
  43. BIN
      doc/images/LCD_characters_green/bar3.png
  44. BIN
      doc/images/LCD_characters_green/bar4.png
  45. BIN
      doc/images/LCD_characters_green/bar5.png
  46. BIN
      doc/images/LCD_characters_green/blank.png
  47. BIN
      doc/images/LCD_characters_green/block.png
  48. BIN
      doc/images/LCD_characters_green/bracket_close.png
  49. BIN
      doc/images/LCD_characters_green/bracket_open.png
  50. BIN
      doc/images/LCD_characters_green/c.png
  51. BIN
      doc/images/LCD_characters_green/d.png
  52. BIN
      doc/images/LCD_characters_green/dot.png
  53. BIN
      doc/images/LCD_characters_green/e.png
  54. BIN
      doc/images/LCD_characters_green/f.png
  55. 1
      doc/images/LCD_characters_green/full_bar_l0.png
  56. BIN
      doc/images/LCD_characters_green/full_bar_l2.png
  57. BIN
      doc/images/LCD_characters_green/full_bar_l3.png
  58. BIN
      doc/images/LCD_characters_green/full_bar_l4.png
  59. 1
      doc/images/LCD_characters_green/full_bar_l5.png
  60. 1
      doc/images/LCD_characters_green/full_bar_r0.png
  61. BIN
      doc/images/LCD_characters_green/full_bar_r2.png
  62. BIN
      doc/images/LCD_characters_green/full_bar_r3.png
  63. BIN
      doc/images/LCD_characters_green/full_bar_r4.png
  64. 1
      doc/images/LCD_characters_green/full_bar_r5.png
  65. BIN
      doc/images/LCD_characters_green/g.png
  66. BIN
      doc/images/LCD_characters_green/h.png
  67. BIN
      doc/images/LCD_characters_green/i.png
  68. BIN
      doc/images/LCD_characters_green/j.png
  69. BIN
      doc/images/LCD_characters_green/k.png
  70. BIN
      doc/images/LCD_characters_green/key.png
  71. BIN
      doc/images/LCD_characters_green/l.png
  72. BIN
      doc/images/LCD_characters_green/ladder0.png
  73. BIN
      doc/images/LCD_characters_green/ladder1.png
  74. BIN
      doc/images/LCD_characters_green/ladder2.png
  75. BIN
      doc/images/LCD_characters_green/ladder3.png
  76. BIN
      doc/images/LCD_characters_green/ladder4.png
  77. BIN
      doc/images/LCD_characters_green/ladder5.png
  78. BIN
      doc/images/LCD_characters_green/ladder6.png
  79. BIN
      doc/images/LCD_characters_green/ladder7.png
  80. BIN
      doc/images/LCD_characters_green/ladder8.png
  81. BIN
      doc/images/LCD_characters_green/ladder9.png
  82. BIN
      doc/images/LCD_characters_green/m.png
  83. BIN
      doc/images/LCD_characters_green/n.png
  84. BIN
      doc/images/LCD_characters_green/note.png
  85. BIN
      doc/images/LCD_characters_green/o.png
  86. BIN
      doc/images/LCD_characters_green/p.png
  87. BIN
      doc/images/LCD_characters_green/q.png
  88. BIN
      doc/images/LCD_characters_green/r.png
  89. BIN
      doc/images/LCD_characters_green/s.png
  90. BIN
      doc/images/LCD_characters_green/sign-arrow.png
  91. BIN
      doc/images/LCD_characters_green/sign-minus.png
  92. BIN
      doc/images/LCD_characters_green/sign-plus.png
  93. BIN
      doc/images/LCD_characters_green/small_1.png
  94. BIN
      doc/images/LCD_characters_green/small_1_inv.png
  95. BIN
      doc/images/LCD_characters_green/small_2.png
  96. BIN
      doc/images/LCD_characters_green/small_2_inv.png
  97. BIN
      doc/images/LCD_characters_green/small_3.png
  98. BIN
      doc/images/LCD_characters_green/small_4.png
  99. BIN
      doc/images/LCD_characters_green/small_5.png
  100. BIN
      doc/images/LCD_characters_green/small_6.png
  101. Some files were not shown because too many files have changed in this diff Show More

@ -0,0 +1,68 @@
#!/bin/bash
line[0]=$1
line[1]=$2
COLOR="green"
IMG_PATH="./images"
CHAR_PATH="${IMG_PATH}/LCD_characters_${COLOR}"
if [ ! -e ${IMG_PATH} ]
then
echo "Cannot find path for images \"${IMG_PATH}\""
exit 10
fi
if [ ! -e ${CHAR_PATH} ]
then
echo "Cannot find path for character-images \"${CHAR_PATH}\""
exit 11
fi
cp "${IMG_PATH}/LCD_${COLOR}.png" /tmp/LCD_$$.png
special_flag="false"
for (( n=0; n<2; n++ ))
do
y=$( bc -l <<<"50 + $n * 50" )
xpos=0
for (( i=0; i<${#line[$n]}; i++ ))
do
c=${line[${n}]:${i}:1}
if [[ "${c}" == "%" ]]
then
if [[ "${special_flag}" == "false" ]]
then
special_flag="true"
special=""
continue
else
special_flag="false"
if [ ! -e "${CHAR_PATH}/${special}.png" ]
then
echo "Cannot find \"${CHAR_PATH}/${special}.png\"."
c=" "
else
c=${special}
fi
fi
fi
if [[ "${special_flag}" == "true" ]]
then
special="${special}${c}"
continue
fi
xpos=$((xpos + 1))
if [[ "${c}" != " " ]]
then
if [[ ${c} == "." ]]
then
c="dot"
fi
x=$( bc -l <<<"230 + ${xpos} * 30" )
composite -gravity NorthWest -geometry "+${x}+${y}" "${CHAR_PATH}/${c}.png" /tmp/LCD_$$.png /tmp/LCD_$$.png
fi
done
done
mv /tmp/LCD_$$.png /tmp/LCD.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save