From 9e82ab240be6469865fd9a66dbfe407490db280b Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 Apr 2020 15:41:57 -0700 Subject: [PATCH 01/12] first commit --- src/view/pages/gettingStarted.tsx | 113 +++++++++++++++++++++++------- 1 file changed, 88 insertions(+), 25 deletions(-) diff --git a/src/view/pages/gettingStarted.tsx b/src/view/pages/gettingStarted.tsx index 693a6710c..476ad2895 100644 --- a/src/view/pages/gettingStarted.tsx +++ b/src/view/pages/gettingStarted.tsx @@ -35,14 +35,51 @@ export class GettingStartedPage extends React.Component { + - +

Copy these snippets of code to a .py file and run the simulator

-
+
+

Tutorial for Circuit Playground Express

+

+ 1. Import the micro:bit library to use it (This is + required) +

+ +
from adafruit_circuitplayground import cp
+
+

2. Turn on the little red LED

+ +
while True:
+
    cp.red_led = True
+
+

3. Turn up red LED when button A is clicked

+ +
while True:
+
    if cp.button_a:
+
        cp.red_led = True
+
+

4. Light up the first neopixel blue

+ +
cp.pixels[0] = (0, 0, 255)
+
+

And much more! These links have more tutorials:

+

+ + Getting started with CPX and CircuitPython + +

+

+ + More example code + +

+
+

Tutorial for micro:bit

1. Import the micro:bit library to use it (This is @@ -64,16 +101,21 @@ export class GettingStartedPage extends React.Component {

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)
-

4. Read then display the temperature.

+

4. Read then display the temperature

while True:
-
 temp = temperature()
-
 display.show(temp)
+
    temp = temperature()
+
    display.show(temp)
+
+

5. Display your name with the scroll functionality

+ +
while True:
+
    display.show("Your name")

And much more! These links have more tutorials:

@@ -87,38 +129,59 @@ export class GettingStartedPage extends React.Component {

-
-

Tutorial for CPX

+
+

Tutorial for CLUE

- 1. Import the micro:bit library to use it (This is - required) + 1. Import the the main CLUE library (This is required)

-
from adafruit_circuitplayground import cp
+
from adafruit_clue import clue # Required
-

2. Turn on the little red LED

+

2. Display text on the CLUE and change the text when a button is pressed

+
clue_data = clue.simple_text_display(title="CLUE!", title_scale=2, 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()
-

3. Turn up red LED when button A is clicked

+

3. Create a slide show on the CLUE

+

There must be some .bmp photos 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)
+
while slideshow.update():
+
     pass
-

4. Light up the first neopixel blue

+

4. Light up the back neopixel green

-
cp.pixels[0] = (0, 0, 255)
+
clue.pixel.fill(clue.GREEN)
+
+

5. Draw a rectangle on the screen

+ +
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=0x0)
+
splash.append(rect)
+
splash.draw(show=True)

And much more! These links have more tutorials:

- - Getting started with CPX and CircuitPython + + Getting started with CLUE and CircuitPython

- + More example code

From a4699fecd25194854e0ae7d99d9d1bf7e4812cc0 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 Apr 2020 15:44:25 -0700 Subject: [PATCH 02/12] removed comment --- src/view/pages/gettingStarted.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/pages/gettingStarted.tsx b/src/view/pages/gettingStarted.tsx index 476ad2895..8d4a6144b 100644 --- a/src/view/pages/gettingStarted.tsx +++ b/src/view/pages/gettingStarted.tsx @@ -135,7 +135,7 @@ export class GettingStartedPage extends React.Component { 1. Import the the main CLUE library (This is required) -
from adafruit_clue import clue # Required
+
from adafruit_clue import clue

2. Display text on the CLUE and change the text when a button is pressed

From c118efa6658af345a6942ef4e6cfcd1672c927ea Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 Apr 2020 15:55:17 -0700 Subject: [PATCH 03/12] Updated some text in the getting started --- src/view/pages/gettingStarted.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/view/pages/gettingStarted.tsx b/src/view/pages/gettingStarted.tsx index 8d4a6144b..327f02876 100644 --- a/src/view/pages/gettingStarted.tsx +++ b/src/view/pages/gettingStarted.tsx @@ -139,7 +139,7 @@ export class GettingStartedPage extends React.Component {

2. Display text on the CLUE and change the text when a button is pressed

-
clue_data = clue.simple_text_display(title="CLUE!", title_scale=2, text_scale=2)
+
clue_data = clue.simple_text_display(title="CLUE!", text_scale=2)
while True:
    clue_data[1].text = "Hello World!"
    clue_data[3].text = "Temperature: {}".format(clue.temperature)
@@ -150,11 +150,11 @@ export class GettingStartedPage extends React.Component {
    clue_data.show()

3. Create a slide show on the CLUE

-

There must be some .bmp photos in the same directory as the code file

+

There must be some .bmp photos in the same directory as the code file

import board
from adafruit_slideshow import SlideShow
- +
 
slideshow = SlideShow(board.DISPLAY, auto_advance=True)
while slideshow.update():
     pass
@@ -163,16 +163,17 @@ export class GettingStartedPage extends React.Component {
clue.pixel.fill(clue.GREEN)
-

5. Draw a rectangle on the screen

+

5. Draw a blue rectangle on the screen

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=0x0)
+
 
+
rect = Rect(80, 20, 41, 41, fill=0x0000FF)
splash.append(rect)
-
splash.draw(show=True)

And much more! These links have more tutorials:

From 0ef85533fcbbabd49f2980b5bd4ddc064edce758 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 Apr 2020 16:08:11 -0700 Subject: [PATCH 04/12] formatted --- src/view/pages/gettingStarted.tsx | 78 ++++++++++++++++++++----------- 1 file changed, 52 insertions(+), 26 deletions(-) diff --git a/src/view/pages/gettingStarted.tsx b/src/view/pages/gettingStarted.tsx index 327f02876..3335d047a 100644 --- a/src/view/pages/gettingStarted.tsx +++ b/src/view/pages/gettingStarted.tsx @@ -55,13 +55,13 @@ export class GettingStartedPage extends React.Component {

2. Turn on the little red LED

while True:
-
    cp.red_led = True
+
 cp.red_led = True

3. Turn up red LED when button A is clicked

while True:
-
    if cp.button_a:
-
        cp.red_led = True
+
 if cp.button_a:
+
 cp.red_led = True

4. Light up the first neopixel blue

@@ -101,21 +101,24 @@ export class GettingStartedPage extends React.Component {

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)

4. Read then display the temperature

while True:
-
    temp = temperature()
-
    display.show(temp)
+
 temp = temperature()
+
 display.show(temp)
-

5. Display your name with the scroll functionality

+

+ {" "} + 5. Display your name with the scroll functionality +

while True:
-
    display.show("Your name")
+
 display.show("Your name")

And much more! These links have more tutorials:

@@ -132,32 +135,51 @@ export class GettingStartedPage extends React.Component {

Tutorial for CLUE

- 1. Import the the main CLUE library (This is required) + 1. Import the the main CLUE library (This is + required)

from adafruit_clue import clue
-

2. Display text on the CLUE and change the text when a button is pressed

+

+ {" "} + 2. Display text on the CLUE and change the text when + a button is pressed +

-
clue_data = clue.simple_text_display(title="CLUE!", text_scale=2)
+
+                                clue_data =
+                                clue.simple_text_display(title="CLUE!",
+                                text_scale=2)
+                            
while 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()
+
 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()

3. Create a slide show on the CLUE

-

There must be some .bmp photos in the same directory as the code file

+

+ There must be some .bmp photos in the same directory + as the code file +

import board
from adafruit_slideshow import SlideShow
 
-
slideshow = SlideShow(board.DISPLAY, auto_advance=True)
+
+                                slideshow = SlideShow(board.DISPLAY,
+                                auto_advance=True)
+                            
while slideshow.update():
-
     pass
+
 pass

4. Light up the back neopixel green

@@ -167,12 +189,16 @@ export class GettingStartedPage extends React.Component {
import board
import displayio
-
from adafruit_display_shapes.rect import Rect
+
+                                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)
+
+                                rect = Rect(80, 20, 41, 41, fill=0x0000FF)
+                            
splash.append(rect)

And much more! These links have more tutorials:

From 42a26961dc30f96d9f167013b1de6ca250a20a42 Mon Sep 17 00:00:00 2001 From: xnkevinnguyen Date: Thu, 2 Apr 2020 17:50:08 -0700 Subject: [PATCH 05/12] Update ui tests --- .../gettingStarted.spec.tsx.snap | 201 ++++++++++++++++-- 1 file changed, 182 insertions(+), 19 deletions(-) diff --git a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap index 4bec5eeff..361cf25e9 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 +

Copy these snippets of code to a .py file and run the simulator

+

+ Tutorial for Circuit Playground Express +

+

+ 1. Import the micro:bit library to use it (This is required) +

+ +
+        from adafruit_circuitplayground import cp
+      
+
+

+ 2. Turn on the little red LED +

+ +
+        while True:
+      
+
+         cp.red_led = True
+      
+
+

+ 3. Turn up red LED when button A is clicked +

+ +
+        while True:
+      
+
+         if cp.button_a:
+      
+
+         cp.red_led = True
+      
+
+

+ 4. Light up the first neopixel blue +

+ +
+        cp.pixels[0] = (0, 0, 255)
+      
+
+

+ And much more! These links have more tutorials: +

+

+ + Getting started with CPX and CircuitPython + +

+

+ + More example code + +

+
+

@@ -81,7 +160,7 @@ exports[`GettingStartedPage component should render correctly 1`] = `

- 4. Read then display the temperature. + 4. Read then display the temperature

+

+ + 5. Display your name with the scroll functionality +

+ +
+        while True:
+      
+
+         display.show("Your name")
+      
+

And much more! These links have more tutorials:

@@ -116,58 +209,128 @@ exports[`GettingStartedPage component should render correctly 1`] = `

- Tutorial for CPX + Tutorial for CLUE

- 1. Import the micro:bit library to use it (This is required) + 1. Import the the main CLUE library (This is required)

-        from adafruit_circuitplayground import cp
+        from adafruit_clue import clue
       

- 2. Turn on the little red LED + + 2. Display text on the CLUE and change the text when a button is pressed

+
+        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()
       

- 3. Turn up red LED when button A is clicked + 3. Create a slide show on the CLUE

+

+ There must be some .bmp photos 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)
+      
+
+        while slideshow.update():
+      
+
+         pass
       

- 4. Light up the first neopixel blue + 4. Light up the back neopixel green

-        cp.pixels[0] = (0, 0, 255)
+        clue.pixel.fill(clue.GREEN)
+      
+
+

+ 5. Draw a blue rectangle on the screen +

+ +
+        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)
       

@@ -175,14 +338,14 @@ exports[`GettingStartedPage component should render correctly 1`] = `

- Getting started with CPX and CircuitPython + Getting started with CLUE and CircuitPython

More example code From ac7d9223c4e5e88624ce5d1626b00da8d89d411f Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 Apr 2020 18:40:26 -0700 Subject: [PATCH 06/12] removed prettier formatting and fixed what it formatted --- src/view/pages/gettingStarted.tsx | 63 +++++++++++++------------------ 1 file changed, 26 insertions(+), 37 deletions(-) diff --git a/src/view/pages/gettingStarted.tsx b/src/view/pages/gettingStarted.tsx index 3335d047a..255c3c794 100644 --- a/src/view/pages/gettingStarted.tsx +++ b/src/view/pages/gettingStarted.tsx @@ -43,6 +43,7 @@ export class GettingStartedPage extends React.Component { Copy these snippets of code to a .py file and run the simulator

+ {/* prettier-ignore */}

Tutorial for Circuit Playground Express

@@ -55,13 +56,13 @@ export class GettingStartedPage extends React.Component {

2. Turn on the little red LED

while True:
-
 cp.red_led = True
+
    cp.red_led = True

3. Turn up red LED when button A is clicked

while True:
-
 if cp.button_a:
-
 cp.red_led = True
+
    if cp.button_a:
+
        cp.red_led = True

4. Light up the first neopixel blue

@@ -79,6 +80,7 @@ export class GettingStartedPage extends React.Component {

+ {/* prettier-ignore */}

Tutorial for micro:bit

@@ -101,24 +103,23 @@ export class GettingStartedPage extends React.Component {

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)

4. Read then display the temperature

while True:
-
 temp = temperature()
-
 display.show(temp)
+
    temp = temperature()
+
    display.show(temp)

- {" "} 5. Display your name with the scroll functionality

while True:
-
 display.show("Your name")
+
    display.show("Your name")

And much more! These links have more tutorials:

@@ -132,6 +133,7 @@ export class GettingStartedPage extends React.Component {

+ {/* prettier-ignore */}

Tutorial for CLUE

@@ -142,44 +144,35 @@ export class GettingStartedPage extends React.Component {
from adafruit_clue import clue

- {" "} 2. Display text on the CLUE and change the text when a button is pressed

-                                clue_data =
-                                clue.simple_text_display(title="CLUE!",
-                                text_scale=2)
+                                clue_data = clue.simple_text_display(title="CLUE!", text_scale=2)
                             
while 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()
+
    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()

3. Create a slide show on the CLUE

There must be some .bmp photos in the same directory - as the code file + as the code file.5

import board
from adafruit_slideshow import SlideShow
 
-
-                                slideshow = SlideShow(board.DISPLAY,
-                                auto_advance=True)
+                            
slideshow = SlideShow(board.DISPLAY, auto_advance=True)
                             
while slideshow.update():
-
 pass
+
    pass

4. Light up the back neopixel green

@@ -189,16 +182,12 @@ export class GettingStartedPage extends React.Component {
import board
import displayio
-
-                                from adafruit_display_shapes.rect import Rect
-                            
+
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)
-                            
+
rect = Rect(80, 20, 41, 41, fill=0x0000FF)
splash.append(rect)

And much more! These links have more tutorials:

From bfdc0d82577eba8b60b761870c390d686bb39f16 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 Apr 2020 19:03:18 -0700 Subject: [PATCH 07/12] updated jest tests --- .../gettingStarted.spec.tsx.snap | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap index 361cf25e9..e3e058e83 100644 --- a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap +++ b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap @@ -63,7 +63,7 @@ exports[`GettingStartedPage component should render correctly 1`] = ` while True:
-         cp.red_led = True
+            cp.red_led = True
       

@@ -76,10 +76,10 @@ exports[`GettingStartedPage component should render correctly 1`] = ` while True:
-         if cp.button_a:
+            if cp.button_a:
       
-         cp.red_led = True
+                cp.red_led = True
       

@@ -147,16 +147,16 @@ exports[`GettingStartedPage component should render correctly 1`] = ` while True:
-         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)
       

@@ -169,10 +169,10 @@ exports[`GettingStartedPage component should render correctly 1`] = ` while True:
-         temp = temperature()
+            temp = temperature()
       
-         display.show(temp)
+            display.show(temp)
       

@@ -186,7 +186,7 @@ exports[`GettingStartedPage component should render correctly 1`] = ` while True:
-         display.show("Your name")
+            display.show("Your name")
       

@@ -238,27 +238,25 @@ exports[`GettingStartedPage component should render correctly 1`] = ` while True:
-         clue_data[1].text = "Hello World!"
+            clue_data[1].text = "Hello World!"
       
-         
-        clue_data[3].text = "Temperature: 
-        ".format(clue.temperature)
+            clue_data[3].text = "Temperature: {}".format(clue.temperature)
       
-         if clue.button_a:
+            if clue.button_a:
       
-         clue_data[5].text = "A is pressed!"
+                clue_data[5].text = "A is pressed!"
       
-         else:
+            else:
       
-         clue_data[5].text = "A is not pressed!"
+                clue_data[5].text = "A is not pressed!"
       
-         clue_data.show()
+            clue_data.show()
       

@@ -286,7 +284,7 @@ exports[`GettingStartedPage component should render correctly 1`] = ` while slideshow.update():
-         pass
+            pass
       

From 5536c74f9d6e7a027e3598faef79675e62b05ab2 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 Apr 2020 19:13:29 -0700 Subject: [PATCH 08/12] updated jest tests again --- .../pages/__snapshots__/gettingStarted.spec.tsx.snap | 10 +++++----- src/view/pages/gettingStarted.tsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap index e3e058e83..3b08be17c 100644 --- a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap +++ b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap @@ -150,7 +150,7 @@ exports[`GettingStartedPage component should render correctly 1`] = ` if button_a.is_pressed():
-            display.show(Image.HAPPY)
+                display.show(Image.HAPPY)
       
             if button_b.is_pressed():
@@ -176,7 +176,6 @@ exports[`GettingStartedPage component  should render correctly 1`] = `
       

- 5. Display your name with the scroll functionality

- 2. Display text on the CLUE and change the text when a button is pressed

-            clue_data[3].text = "Temperature: {}".format(clue.temperature)
+            clue_data[3].text = "Temperature: 
+            {}
+            ".format(clue.temperature)
       
             if clue.button_a:
@@ -263,7 +263,7 @@ exports[`GettingStartedPage component  should render correctly 1`] = `
        3. Create a slide show on the CLUE
     

- There must be some .bmp photos in the same directory as the code file + There must be some .bmp photos in the same directory as the code file.

3. Create a slide show on the CLUE

There must be some .bmp photos in the same directory - as the code file.5 + as the code file.

import board
From d2932ab1068e2e5810babb90c7bb20162eec3209 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 Apr 2020 19:18:48 -0700 Subject: [PATCH 09/12] updated jest tests again --- src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap index 3b08be17c..e9b1336d1 100644 --- a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap +++ b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap @@ -240,8 +240,8 @@ exports[`GettingStartedPage component should render correctly 1`] = `
             clue_data[3].text = "Temperature: 
-            {}
-            ".format(clue.temperature)
+        {}
+        ".format(clue.temperature)
       
             if clue.button_a:

From 65c8a8ff0f17229e764cbe62d5d668b3771e22d9 Mon Sep 17 00:00:00 2001
From: unknown 
Date: Fri, 3 Apr 2020 11:54:59 -0700
Subject: [PATCH 10/12] address pr comments

---
 src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap | 4 ++--
 src/view/pages/gettingStarted.tsx                         | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap
index e9b1336d1..e8b41958f 100644
--- a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap
+++ b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap
@@ -278,7 +278,7 @@ exports[`GettingStartedPage component  should render correctly 1`] = `
          
       
-        slideshow = SlideShow(board.DISPLAY, auto_advance=True)
+        slideshow = SlideShow(board.DISPLAY, auto_advance=True, dwell=3, fade_effect=True)
       
         while slideshow.update():
@@ -288,7 +288,7 @@ exports[`GettingStartedPage component  should render correctly 1`] = `
       

- 4. Light up the back neopixel green + 4. Light up the neopixel green

import board
from adafruit_slideshow import SlideShow
 
-
slideshow = SlideShow(board.DISPLAY, auto_advance=True)
+                            
slideshow = SlideShow(board.DISPLAY, auto_advance=True, dwell=3, fade_effect=True)
                             
while slideshow.update():
    pass
-

4. Light up the back neopixel green

+

4. Light up the neopixel green

clue.pixel.fill(clue.GREEN)
From efab84a2072d47b2dd37200ef205aa81af0b5e71 Mon Sep 17 00:00:00 2001 From: Vandy Liu <33995460+vandyliu@users.noreply.github.com> Date: Mon, 6 Apr 2020 11:07:29 -0700 Subject: [PATCH 11/12] Changed text for bitmap images warning Co-Authored-By: Isadora Sophia --- src/view/pages/gettingStarted.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/pages/gettingStarted.tsx b/src/view/pages/gettingStarted.tsx index 13b8627f9..358f9a6a6 100644 --- a/src/view/pages/gettingStarted.tsx +++ b/src/view/pages/gettingStarted.tsx @@ -162,7 +162,7 @@ export class GettingStartedPage extends React.Component {

3. Create a slide show on the CLUE

- There must be some .bmp photos in the same directory + Make sure there are bitmap (.bmp) pictures of your choice in the same directory as the code file.

From 5d52d7bd6a6e474505962f4b02e86300d9281fb4 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 6 Apr 2020 11:56:16 -0700 Subject: [PATCH 12/12] fixed snapshot test --- src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap index e8b41958f..b1021ea93 100644 --- a/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap +++ b/src/view/pages/__snapshots__/gettingStarted.spec.tsx.snap @@ -263,7 +263,7 @@ exports[`GettingStartedPage component should render correctly 1`] = ` 3. Create a slide show on the CLUE

- There must be some .bmp photos in the same directory as the code file. + Make sure there are bitmap (.bmp) pictures of your choice in the same directory as the code file.