Skip to content

Commit cc79df6

Browse files
committed
Examples: adding header info
1 parent 63808c1 commit cc79df6

File tree

7 files changed

+28
-0
lines changed

7 files changed

+28
-0
lines changed

examples/agile_pricing_display.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# ICON [[(-20.0, 16.67), (-20.0, 12.22), (-15.56, 7.78), (-15.56, 16.67), (-20.0, 16.67)], [(-11.11, 16.67), (-11.11, 3.33), (-6.67, -1.11), (-6.67, 16.67), (-11.11, 16.67)], [(-2.22, 16.67), (-2.22, -1.11), (2.22, 3.39), (2.22, 16.67), (-2.22, 16.67)], [(6.67, 16.67), (6.67, 3.39), (11.11, -1.06), (11.11, 16.67), (6.67, 16.67)], [(15.56, 16.67), (15.56, -5.56), (20.0, -10.0), (20.0, 16.67), (15.56, 16.67)], [(-20.0, 5.17), (-20.0, -1.11), (-4.44, -16.67), (4.44, -7.78), (20.0, -23.33), (20.0, -17.06), (4.44, -1.5), (-4.44, -10.39), (-20.0, 5.17)]]
2+
# NAME Energy Price
3+
# DESC Shows last, current and next energy price.
4+
15
'''
26
A demo for the Pimoroni Presto.
37
Shows the current, next and last energy price for Octopus Energys Agile Price tarrif

examples/cheerlights_bulb.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# ICON [[(0.0, 24.0), (-1.93, 23.66), (-3.75, 22.51), (-4.42, 21.69), (-5.11, 20.23), (-5.33, 18.73), (5.33, 18.67), (4.91, 20.77), (4.06, 22.12), (3.34, 22.82), (2.1, 23.58), (0.07, 24.0)], [(-10.67, 16.0), (-10.67, 10.67), (10.67, 10.67), (10.67, 16.0), (-10.67, 16.0)], [(-10.0, 8.0), (-12.44, 6.31), (-15.06, 3.8), (-16.01, 2.64), (-17.3, 0.72), (-18.55, -1.82), (-19.23, -3.78), (-19.81, -6.5), (-20.0, -9.27), (-19.89, -11.51), (-19.37, -14.52), (-18.51, -17.1), (-17.78, -18.66), (-16.29, -21.03), (-14.06, -23.61), (-12.39, -25.08), (-10.53, -26.4), (-8.18, -27.66), (-6.51, -28.31), (-4.11, -28.95), (-2.22, -29.22), (0.14, -29.33), (1.92, -29.25), (4.76, -28.8), (6.5, -28.31), (8.89, -27.32), (10.67, -26.3), (12.4, -25.04), (13.76, -23.84), (15.55, -21.92), (17.31, -19.45), (18.36, -17.41), (18.97, -15.86), (19.6, -13.52), (19.94, -11.05), (20.0, -9.2), (19.79, -6.43), (19.48, -4.78), (18.72, -2.32), (17.93, -0.54), (16.56, 1.79), (15.4, 3.37), (13.36, 5.52), (11.65, 6.91), (10.06, 7.97), (-10.0, 8.0)], [(-8.4, 2.67), (8.4, 2.67), (10.02, 1.35), (10.94, 0.41), (12.14, -1.14), (13.64, -3.98), (14.23, -5.77), (14.51, -7.17), (14.67, -9.27), (14.51, -11.57), (14.19, -13.19), (13.44, -15.35), (12.77, -16.67), (11.72, -18.23), (10.81, -19.31), (9.38, -20.66), (7.64, -21.92), (6.27, -22.66), (4.72, -23.28), (2.72, -23.77), (0.53, -23.99), (-1.72, -23.91), (-3.36, -23.64), (-5.45, -23.01), (-7.77, -21.85), (-9.2, -20.82), (-10.81, -19.3), (-11.81, -18.11), (-12.99, -16.27), (-13.5, -15.21), (-14.28, -12.86), (-14.62, -10.59), (-14.65, -8.58), (-14.21, -5.65), (-13.82, -4.34), (-13.1, -2.66), (-11.6, -0.36), (-10.56, 0.82), (-8.45, 2.63)], [(0.0, 2.67), (0.0, 2.67)]]
2+
# NAME Bulb
3+
# DESC A cheerlight connected desk light.
4+
15
import time
26

37
import plasma

examples/cubes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# ICON [[(-2.22, 14.25), (-2.22, -0.97), (-15.56, -8.69), (-15.56, 6.53), (-2.22, 14.25)], [(2.22, 14.25), (15.56, 6.53), (15.56, -8.69), (2.22, -0.97), (2.22, 14.25)], [(0.0, -4.8), (13.17, -12.41), (0.0, -20.02), (-13.17, -12.41), (0.0, -4.8)], [(-17.78, 10.42), (-18.66, 9.77), (-19.42, 8.86), (-19.9, 7.58), (-20.0, 6.64), (-20.0, -11.08), (-19.9, -12.09), (-19.47, -13.25), (-18.77, -14.15), (-17.83, -14.88), (-2.22, -23.86), (-0.66, -24.42), (0.61, -24.42), (2.17, -23.89), (17.78, -14.91), (19.13, -13.71), (19.81, -12.36), (20.0, -11.13), (20.0, 6.59), (19.87, 7.68), (19.3, 8.95), (18.5, 9.91), (17.83, 10.39), (2.22, 19.37), (1.51, 19.7), (0.06, 19.98), (-1.15, 19.82), (-2.17, 19.39), (-17.78, 10.42)], [(0.0, -2.25), (0.0, -2.25)]]
2+
# NAME Flying Cubes
3+
# DESC Cubes that are flying!
4+
15
import math
26
import time
37
from random import randint, randrange

examples/image_gallery.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# ICON [[(-6.0, 2.0), (14.0, 2.0), (7.1, -7.0), (2.5, -1.0), (-0.6, -5.0), (-6.0, 2.0)], [(-8.0, 10.0), (-8.77, 9.93), (-10.0, 9.49), (-10.81, 8.88), (-11.53, 7.91), (-11.87, 7.04), (-12.0, 6.05), (-12.0, -18.0), (-11.72, -19.5), (-11.15, -20.47), (-10.47, -21.14), (-9.78, -21.58), (-8.86, -21.91), (-8.05, -22.0), (16.0, -22.0), (16.82, -21.92), (18.02, -21.44), (18.51, -21.07), (19.42, -20.05), (19.83, -19.17), (20.0, -18.05), (20.0, 6.0), (19.7, 7.54), (19.37, 8.16), (18.65, 8.99), (17.36, 9.77), (16.05, 10.0), (-8.0, 10.0)], [(-8.0, 6.0), (16.0, 6.0), (16.0, -18.0), (-8.0, -18.0), (-8.0, 6.0)], [(-16.0, 18.0), (-16.73, 17.94), (-17.83, 17.58), (-18.81, 16.88), (-19.26, 16.35), (-19.79, 15.31), (-20.0, 14.05), (-20.0, -14.0), (-16.0, -14.0), (-16.0, 14.0), (12.0, 14.0), (12.0, 18.0), (-16.0, 18.0)], [(-8.0, -18.0), (-8.0, -18.0)]]
2+
# NAME Photo Frame
3+
# DESC A touch enabled image gallery
4+
15
'''
26
An image gallery demo to turn your Pimoroni Presto into a desktop photo frame!
37

examples/random_maze.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# ICON [[(-11.56, 1.11), (0.0, 7.78), (11.56, 1.11), (2.22, -4.28), (2.22, 3.33), (-2.22, 3.33), (-2.22, -4.28), (-11.56, 1.11)], [(-2.22, -9.39), (-2.22, -10.34), (-3.3, -10.74), (-4.64, -11.51), (-5.8, -12.55), (-6.44, -13.37), (-7.24, -14.88), (-7.71, -16.74), (-7.72, -18.72), (-7.48, -19.97), (-6.64, -21.86), (-5.73, -23.04), (-5.01, -23.73), (-3.61, -24.69), (-1.71, -25.38), (-0.28, -25.55), (1.62, -25.39), (3.12, -24.93), (3.95, -24.5), (5.46, -23.32), (6.53, -22.02), (7.05, -21.11), (7.52, -19.84), (7.78, -17.89), (7.58, -15.97), (6.93, -14.19), (6.25, -13.1), (5.17, -11.94), (4.14, -11.19), (2.28, -10.35), (2.22, -9.39), (17.78, -0.45), (18.8, 0.37), (19.28, 1.03), (19.88, 2.42), (20.0, 3.39), (20.0, 7.66), (19.68, 9.34), (19.09, 10.4), (17.83, 11.52), (2.22, 20.5), (0.49, 21.08), (-0.5, 21.08), (-2.17, 20.53), (-17.78, 11.55), (-18.42, 11.11), (-19.42, 9.99), (-19.91, 8.59), (-20.0, 7.72), (-20.0, 3.44), (-19.95, 2.71), (-19.47, 1.27), (-18.95, 0.53), (-17.83, -0.42), (-2.22, -9.39)], [(-2.22, 11.61), (-15.56, 3.94), (-15.56, 7.66), (0.0, 16.66), (15.56, 7.66), (15.56, 3.94), (2.22, 11.61), (0.98, 12.11), (0.06, 12.22), (-1.26, 12.03), (-2.17, 11.64)], [(0.0, -14.45), (1.16, -14.64), (1.89, -15.01), (2.52, -15.6), (3.12, -16.6), (3.33, -17.73), (3.23, -18.6), (2.76, -19.63), (1.79, -20.58), (0.43, -21.09), (-0.91, -20.99), (-1.63, -20.69), (-2.61, -19.87), (-3.22, -18.68), (-3.33, -17.84), (-3.18, -16.75), (-2.43, -15.43), (-1.73, -14.9), (-0.75, -14.52), (-0.06, -14.45)], [(0.0, 16.66), (0.0, 16.66)]]
2+
# NAME Random Maze
3+
# DESC Escape the randomly generated mazes!
4+
15
import gc
26
import random
37
import time

examples/stop_watch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# ICON [[(-6.68, -21.11), (-6.68, -25.56), (6.65, -25.56), (6.65, -21.11), (-6.68, -21.11)], [(-2.24, 3.33), (2.21, 3.33), (2.21, -10.0), (-2.24, -10.0), (-2.24, 3.33)], [(-0.01, 21.11), (-1.81, 21.04), (-4.31, 20.66), (-6.31, 20.12), (-7.74, 19.58), (-9.01, 18.96), (-11.19, 17.66), (-13.09, 16.19), (-14.09, 15.26), (-15.63, 13.54), (-16.45, 12.45), (-17.69, 10.44), (-18.44, 8.94), (-19.27, 6.56), (-19.81, 4.04), (-19.98, 2.23), (-19.96, -0.37), (-19.74, -2.24), (-19.26, -4.37), (-18.84, -5.66), (-18.07, -7.44), (-17.05, -9.29), (-15.94, -10.92), (-14.5, -12.61), (-12.53, -14.43), (-11.26, -15.37), (-8.95, -16.74), (-7.69, -17.32), (-5.89, -17.99), (-4.53, -18.37), (-2.66, -18.71), (0.04, -18.89), (1.4, -18.84), (3.65, -18.56), (6.55, -17.8), (8.48, -17.01), (10.52, -15.93), (12.5, -14.59), (15.65, -17.67), (18.76, -14.56), (15.65, -11.44), (16.86, -9.69), (17.83, -7.96), (18.93, -5.34), (19.54, -3.11), (19.83, -1.43), (19.98, 0.78), (19.94, 2.46), (19.72, 4.37), (19.45, 5.71), (18.93, 7.47), (17.98, 9.76), (17.27, 11.08), (16.21, 12.74), (15.1, 14.15), (13.38, 15.9), (11.77, 17.21), (10.65, 17.99), (8.92, 18.98), (6.84, 19.9), (5.13, 20.45), (3.04, 20.88), (0.04, 21.11)], [(-0.01, 16.67), (2.64, 16.46), (4.57, 16.02), (6.73, 15.18), (8.41, 14.23), (9.35, 13.55), (11.26, 11.83), (12.39, 10.51), (13.25, 9.3), (14.08, 7.8), (14.79, 6.03), (15.25, 4.22), (15.54, 1.33), (15.39, -1.12), (14.81, -3.73), (14.22, -5.27), (13.69, -6.34), (12.58, -8.05), (11.48, -9.37), (10.3, -10.53), (8.13, -12.18), (6.44, -13.09), (4.91, -13.69), (2.83, -14.2), (1.19, -14.4), (-0.74, -14.43), (-2.3, -14.29), (-4.61, -13.79), (-7.19, -12.74), (-9.09, -11.55), (-11.13, -9.77), (-12.29, -8.46), (-13.7, -6.36), (-14.42, -4.87), (-15.1, -2.81), (-15.42, -1.16), (-15.57, 1.11), (-15.42, 3.35), (-14.88, 5.81), (-13.86, 8.28), (-12.89, 9.89), (-11.05, 12.07), (-9.71, 13.29), (-8.51, 14.17), (-6.09, 15.48), (-4.09, 16.16), (-2.86, 16.43), (-0.07, 16.67)], [(-0.01, 1.11)]]
2+
# NAME Stopwatch
3+
# DESC A simple stopwatch timer
4+
15
import datetime
26
import time
37

examples/word_clock.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# ICON [[(6.59, 7.4), (9.39, 4.6), (1.99, -2.8), (1.99, -12.0), (-2.01, -12.0), (-2.01, -1.2), (6.59, 7.4)], [(-0.01, 18.0), (-2.77, 17.82), (-5.22, 17.33), (-6.81, 16.84), (-9.0, 15.88), (-10.82, 14.83), (-12.37, 13.73), (-13.38, 12.88), (-14.8, 11.47), (-16.53, 9.28), (-17.71, 7.33), (-18.44, 5.84), (-18.93, 4.56), (-19.44, 2.82), (-19.69, 1.62), (-19.93, -0.24), (-19.98, -3.03), (-19.82, -4.82), (-19.36, -7.14), (-18.78, -8.99), (-18.18, -10.41), (-16.87, -12.77), (-15.61, -14.52), (-14.53, -15.77), (-13.03, -17.19), (-11.75, -18.19), (-9.49, -19.6), (-7.63, -20.48), (-5.31, -21.29), (-2.8, -21.81), (-1.17, -21.97), (0.56, -22.0), (2.17, -21.89), (4.17, -21.57), (5.78, -21.15), (6.98, -20.74), (8.54, -20.07), (10.61, -18.95), (12.5, -17.62), (14.56, -15.73), (15.71, -14.38), (16.82, -12.81), (18.11, -10.45), (18.75, -8.94), (19.3, -7.26), (19.84, -4.56), (19.98, -2.76), (19.98, -1.18), (19.8, 0.82), (19.39, 2.89), (18.67, 5.12), (17.97, 6.73), (16.56, 9.2), (15.45, 10.7), (13.58, 12.69), (11.88, 14.09), (10.45, 15.06), (9.16, 15.79), (6.7, 16.87), (5.01, 17.38), (2.25, 17.88), (0.04, 18.0)], [(-0.01, -2.0)], [(-0.01, 14.0), (1.87, 13.9), (3.1, 13.72), (4.92, 13.27), (6.57, 12.65), (7.85, 12.0), (9.95, 10.56), (11.26, 9.38), (12.07, 8.51), (13.65, 6.4), (14.66, 4.51), (15.18, 3.17), (15.75, 0.9), (15.93, -0.48), (15.99, -2.41), (15.75, -4.87), (15.46, -6.25), (14.87, -8.01), (14.31, -9.23), (13.28, -10.95), (12.42, -12.08), (11.05, -13.55), (9.91, -14.56), (8.05, -15.86), (6.45, -16.69), (4.54, -17.39), (3.36, -17.68), (1.71, -17.92), (0.44, -18.0), (-1.44, -17.94), (-2.97, -17.75), (-5.29, -17.16), (-6.71, -16.59), (-8.07, -15.88), (-10.05, -14.49), (-11.32, -13.34), (-12.48, -12.07), (-13.2, -11.12), (-14.1, -9.69), (-14.72, -8.44), (-15.33, -6.79), (-15.77, -4.91), (-15.98, -3.05), (-16.0, -1.85), (-15.9, -0.04), (-15.44, 2.39), (-14.95, 3.89), (-14.24, 5.45), (-13.24, 7.08), (-12.22, 8.41), (-11.39, 9.31), (-10.07, 10.49), (-8.57, 11.58), (-7.27, 12.32), (-5.83, 12.96), (-4.11, 13.51), (-1.72, 13.91), (-0.06, 14.0)]]
2+
# NAME Word Clock
3+
# DESC No hands!
4+
15
import time
26

37
import machine

0 commit comments

Comments
 (0)