Тёмный

Random Values and Non Repeating Randoms in CircuitPython 

Prof. John Gallaugher
Подписаться 8 тыс.
Просмотров 124
50% 1

In this lesson we explore the most useful functions in the Python random library, including randint, randrange, and choice. We'll use what we learn to randomly sparkle a CircuitPlayground using CircuitPython, and we'll then learn to use a while loop to prevent any values from being repeated. We'll end by showing how you can use the code you've just written to create a holiday ornament by adding just a few more low-cost parts.
Part of Prof. John Gallaugher's STEMEducation curricula in his University Course: Physical Computing: Art, Robotics, and Tech for Good. For full playlist see: bit.ly/circuit...

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@christopherlyons7613
@christopherlyons7613 Месяц назад
Do you know any way to allow CircuitPython programming on an iPad? Adafruit does have a doc talking about iPad use but that only deals with sending code to a connected device (CPE I believe in the doc). It doesn't address actually programming it nor getting access to the REPL. Are you aware of any IDEs that run on the iPad that would allow direct programming with REPL I/O (most interested in CPB use to start)?
@profgallaugher
@profgallaugher Месяц назад
It's possible to upload any file from an iPad to a CIRCUITPY board, but the problem as you say is getting a full IDE that can do things like code completion & error correction. There are web-based IDEs. You might try: urfdvw.github.io/circuitpython-online-ide-2/ which is a project by River Wang. There's also a beta of an Adafruit WebIDE but I haven't done anything with it: learn.adafruit.com/webide/overview I doubt anything will be as robust as you'd get with a computer-based IDE. Good luck!
Далее
True Random Numbers - Computerphile
12:16
Просмотров 125 тыс.
Самое неинтересное видео
00:32
Просмотров 1,4 млн
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Programmatic Navigation in SwiftUI explained
17:50
Просмотров 3,7 тыс.
Please Master These 10 Python Functions…
22:17
Просмотров 151 тыс.
Fast Inverse Square Root - A Quake III Algorithm
20:08
5 Useful F-String Tricks In Python
10:02
Просмотров 303 тыс.
2-Minute Rule to Learn Coding - Atomic Habits
7:58
Просмотров 1,1 млн
Generate random numbers in Python 🎲
8:03
Просмотров 60 тыс.
Самое неинтересное видео
00:32
Просмотров 1,4 млн