This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys # import sys | |
sys.path.insert(1, "./lib") # add the lib folder to sys so python can find the libraries | |
import epd2in7b # import the display drivers | |
from PIL import Image,ImageDraw,ImageFont # import the image libraries | |
import time | |
from gpiozero import Button # import the Button control from gpiozero | |
btn1 = Button(5) # assign each button to a variable | |
btn2 = Button(6) # by passing in the pin number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Categories</h2> | |
<ul> | |
{% assign categories_list = site.categories %} | |
{% if categories_list.first[0] == null %} | |
{% for category in categories_list %} | |
<li><a href="#{{ category }}">{{ category | capitalize }} ({{ site.tags[category].size }})</a></li> | |
{% endfor %} | |
{% else %} | |
{% for category in categories_list %} | |
<li><a href="#{{ tag[0] }}">{{ category[0] | capitalize }} ({{ category[1].size }})</a></li> |