diff --git a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap index 4bec5eeff..b1021ea93 100644 --- a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap +++ b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap @@ -17,22 +17,101 @@ exports[`GettingStartedPage component should render correctly 1`] = ` > Select a Device +
+ from adafruit_circuitplayground import cp ++ +
+ while True: ++
+ cp.red_led = True ++ +
+ while True: ++
+ if cp.button_a: ++
+ cp.red_led = True ++ +
+ cp.pixels[0] = (0, 0, 255) ++ +
- if button_a.is_pressed(): + if button_a.is_pressed():
- display.show(Image.HAPPY) + display.show(Image.HAPPY)
- if button_b.is_pressed(): + if button_b.is_pressed():
- display.show(Image.SAD) + display.show(Image.SAD)
- temp = temperature() + temp = temperature() ++
+ display.show(temp) ++ +
+ while True:
- display.show(temp) + display.show("Your name")
- from adafruit_circuitplayground import cp + from adafruit_clue import clue
+ clue_data = clue.simple_text_display(title="CLUE!", text_scale=2) +
while True:
- cp.red_led = True + clue_data[1].text = "Hello World!" ++
+ clue_data[3].text = "Temperature: + {} + ".format(clue.temperature) ++
+ if clue.button_a: ++
+ clue_data[5].text = "A is pressed!" ++
+ else: ++
+ clue_data[5].text = "A is not pressed!" ++
+ clue_data.show()
+ Make sure there are bitmap (.bmp) pictures of your choice in the same directory as the code file. +
- while True: + import board
- if cp.button_a: + from adafruit_slideshow import SlideShow
- cp.red_led = True + ++
+ slideshow = SlideShow(board.DISPLAY, auto_advance=True, dwell=3, fade_effect=True) ++
+ while slideshow.update(): ++
+ pass
- cp.pixels[0] = (0, 0, 255) + clue.pixel.fill(clue.GREEN) ++ +
+ import board ++
+ import displayio ++
+ from adafruit_display_shapes.rect import Rect ++
+ ++
+ splash = displayio.Group(max_size=20) ++
+ board.DISPLAY.show(splash) ++
+ ++
+ rect = Rect(80, 20, 41, 41, fill=0x0000FF) ++
+ splash.append(rect)
from adafruit_circuitplayground import cp+ +
while True:+
cp.red_led = True+ +
while True:+
if cp.button_a:+
cp.red_led = True+ +
cp.pixels[0] = (0, 0, 255)+ +
while True:-
if button_a.is_pressed():-
display.show(Image.HAPPY)-
if button_b.is_pressed():-
display.show(Image.SAD)+
if button_a.is_pressed():+
display.show(Image.HAPPY)+
if button_b.is_pressed():+
display.show(Image.SAD)-
while True:-
temp = temperature()-
display.show(temp)+
temp = temperature()+
display.show(temp)+ +
while True:+
display.show("Your name")
from adafruit_circuitplayground import cp+
from adafruit_clue import clue-
+ clue_data = clue.simple_text_display(title="CLUE!", text_scale=2) +
while True:-
cp.red_led = True+
clue_data[1].text = "Hello World!"+
clue_data[3].text = "Temperature: {"{}"}".format(clue.temperature)+
if clue.button_a:+
clue_data[5].text = "A is pressed!"+
else:+
clue_data[5].text = "A is not pressed!"+
clue_data.show()-
+ Make sure there are bitmap (.bmp) pictures of your choice in the same directory + as the code file. +
-while True:-
if cp.button_a:-
cp.red_led = True+
import board+
from adafruit_slideshow import SlideShow+
+
slideshow = SlideShow(board.DISPLAY, auto_advance=True, dwell=3, fade_effect=True) ++
while slideshow.update():+
pass-
cp.pixels[0] = (0, 0, 255)+
clue.pixel.fill(clue.GREEN)+ +
import board+
import displayio+
from adafruit_display_shapes.rect import Rect+
+
splash = displayio.Group(max_size=20)+
board.DISPLAY.show(splash)+
+
rect = Rect(80, 20, 41, 41, fill=0x0000FF)+
splash.append(rect)