Skip to content

First "input" does not seem to work #17

@Mr-Coxall

Description

@Mr-Coxall

When using "input", the first instance does not seem to do anything for some reason.
It does work in Mu, not sure what is happening.
Might check baud rate?

This code is example:

np = None

from digitalio import *
import board
import time
import neopixel

some_var = input("Enter a variable")
print("Hello, World!")
print(some_var)
print("Bye, World!")

some_var2 = input("Enter a variable")
print("Hello, World!2")
print(some_var2)
print("Bye, World!2")

np = neopixel.NeoPixel(board.NEOPIXEL, 5, auto_write=False)
np[0] = (255, 0, 0)
np.show()
time.sleep(1)
np[0] = (0, 0, 128)
np.show()
time.sleep(1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions