kopia lustrzana https://github.com/pimoroni/pimoroni-pico
fix: [url] placekitten.com is down, someone created a drop in replacement, placecats.com
rodzic
24971349fc
commit
15bdeebb71
|
@ -34,7 +34,7 @@ graphics = PicoGraphics(DISPLAY)
|
||||||
|
|
||||||
WIDTH, HEIGHT = graphics.get_bounds()
|
WIDTH, HEIGHT = graphics.get_bounds()
|
||||||
FILENAME = "/sd/placekitten.jpg"
|
FILENAME = "/sd/placekitten.jpg"
|
||||||
ENDPOINT = "http://placekitten.com/{0}/{1}"
|
ENDPOINT = "http://placecats.com/{0}/{1}"
|
||||||
|
|
||||||
|
|
||||||
sd_spi = machine.SPI(0, sck=machine.Pin(18, machine.Pin.OUT), mosi=machine.Pin(19, machine.Pin.OUT), miso=machine.Pin(16, machine.Pin.OUT))
|
sd_spi = machine.SPI(0, sck=machine.Pin(18, machine.Pin.OUT), mosi=machine.Pin(19, machine.Pin.OUT), miso=machine.Pin(16, machine.Pin.OUT))
|
||||||
|
|
|
@ -20,7 +20,7 @@ graphics = i75.display
|
||||||
WIDTH = i75.width
|
WIDTH = i75.width
|
||||||
HEIGHT = i75.height
|
HEIGHT = i75.height
|
||||||
FILENAME = "placekitten.jpg"
|
FILENAME = "placekitten.jpg"
|
||||||
ENDPOINT = "http://placekitten.com/{0}/{1}"
|
ENDPOINT = "http://placecats.com/{0}/{1}"
|
||||||
|
|
||||||
# some colours to draw with
|
# some colours to draw with
|
||||||
WHITE = graphics.create_pen(255, 255, 255)
|
WHITE = graphics.create_pen(255, 255, 255)
|
||||||
|
|
|
@ -20,7 +20,7 @@ graphics = PicoGraphics(DISPLAY_INKY_PACK)
|
||||||
|
|
||||||
WIDTH, HEIGHT = graphics.get_bounds()
|
WIDTH, HEIGHT = graphics.get_bounds()
|
||||||
FILENAME = "placekitten.jpg"
|
FILENAME = "placekitten.jpg"
|
||||||
ENDPOINT = "http://placekitten.com/{0}/{1}"
|
ENDPOINT = "http://placecats.com/{0}/{1}"
|
||||||
|
|
||||||
|
|
||||||
def status_handler(mode, status, ip):
|
def status_handler(mode, status, ip):
|
||||||
|
|
Ładowanie…
Reference in New Issue