Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

129 total results found

Pi War 2024 Log

Raspberry Pi

Documentation of Pi War 2024 Pi Wars is an international, challeng ...ight, and the other controls forward and backwards. Problems with batteries Thi ... print("Hello.") def right_forward(): motor1a.value(0) m ... motor2b.value(1) def left_forward(): motor2a.value(0) m...

How to use Waveshare E-Paper Display with Raspberry Pi

Raspberry Pi Tutorials

What is a Waveshare E-Paper Display? A Waveshare E-Paper Display is an el ... tutorial, we will be using the Waveshare model epd7in5V2, a Raspb ...ub git clone https://github.com/waveshare/e-Paper.git Go to the D ...minal or use a Python-based software such as Visual Studio or Thon...

How to Display Animation on Waveshare E-Paper Display

Raspberry Pi Tutorials

How to use Waveshare E-Paper Display? Please ...port logging import random from waveshare_epd import epd7in5_V2 import time from PIL import Image,ImageDraw,ImageFont import traceback logging.basicConfig(level=logging.DEBUG) try: logging.info("epd7in5_V2...

8th Wa...

Finding your way around Spark AR (UI Explainer)

Spark AR First Look at Spark AR

Watch this video by Meta explaining the UI and different panels in Spark AR

Week 2 - Animation, conditionals & random numbers

Creative Coding Workshop: Introduction to Creative Coding

... detail. A variable is simply a way of storing information in the ...tions. 5 - The value which we want to store in the computer's me ... and single (=) equals signs Always be sure to use the double equ ...he ball when it bounces off the wall Move up and down instead of ...

Arrays

Programming Tips and Tricks

...in an ellipse function var x = 100; var y = 100; function setup() { creat ... p5 Editor Now what if we wanted to have a lot of circles, l ...llipse: var x1 = 20; var y1 = 100; var x2 = 213; var y2 = 209; ... var x3 = 100; var y3 = 100; var x4 = 100; ...

Week 1 - Coordinates, shapes and colour

Creative Coding Workshop: Introduction to Creative Coding

...or expertise, you will almost always encounter bugs. Writing code ... code is meant to be doing. The way we do this is by adding commen ...s. Comments can be added in two ways: Single line commentUsing t ...he double forward slash (//) at the beginning o...

Week 3 - Iteration, arrays, objects and pixel arrays

Creative Coding Workshop: Introduction to Creative Coding

... is only performed once. If we want to perform a conditional oper ...se(50, 225, 20, 20); ellipse(100, 225, 20, 20); ellipse(150, ...riables can be used in the same way as you use any other variable. ...our own objects is a very handy way to encapsulate related functio...

Using NEMA17 Stepper motor with Big Easy Driver

Physical Computing Tutorials

...e code demonstrates 4 modes: forward, reverse, 1/16th microstep an ...ain loop void loop() { StepForwardDefault(); ReverseStepDe ...lt(); SmallStepMode(); ForwardBackwardStep(); } //Reset Easy Driver ...ostep mode function void StepForwardDefault(){ Serial.println("...

Using a Joy-IT 1.3" 128x64 OLED display

Physical Computing Tutorials

... more flexible screens. If you want to use the display for animat ...rder-collapse: collapse; width: 100%; max-width: 900px; margin: 0 a ....feature { display:block; width:100%; } table, thead, tbody, ... Smartphones, premium TVs, smartwatches, VR headsets, foldable dev...

How to control Arduino without using delay()

Physical Computing Tutorials

...nds) specified as a parameter. (1000 milliseconds = 1 second.) dela ...0; // will store last time LED was updated // constants won't ch ...ange: const long interval = 1000; // interval at which to blin ... // the interval at which you want to blink the LED. unsigned ...

Arduino Nano 33 Sense Rev2- IMU sensor

Physical Computing Tutorials

...x, y, z); if(x > 0.1){ x = 100*x; degreesX = map(x, 0, 97, ...; } if(x < -0.1){ x = 100*x; degreesX = map(x, 0, -100, 0, 90); Serial.print("Tilt ...); } if(y > 0.1){ y = 100*y; degreesY = map(y, 0, 97, ...; } if(y < -0.1){ y = 100*y; degreesY = map(y, 0, -10...

How to control Arduino without using delay()

Physical Computing Tutorials

...e the FireTimer with a delay of 1000 milliseconds ledTimer.begin(1000); } void loop() { // Check ...D ON duration) ledTimer.begin(1000); } void loop() { // Check ...== HIGH) { ledTimer.begin(1000); // LED is ON for 1 second ...tors, like giving each person a watch and ask them to action based...

Using a Joy-IT TFT LCD Display

Physical Computing Tutorials

...een(0x22ED); lcd.setCursor(20, 100); lcd.setTextColor(ST77XX_WHIT ...lude <Adafruit_ST7789.h> // Hardware-specific library for ST7789 # ...uere. ", ST77XX_WHITE); delay(1000); // tft print function! ...Serial.println("done"); delay(1000); } void loop() { tft.inver...

Combining codes & circuits

Physical Computing Workshop: Beginner Physical Computing

...ept one code at one time. If we want it to do multiple things at t ...s the distance value, and if we want to use the data, we will need ...if statement is the most common way to make a simple interaction b ...alWrite(led, HIGH); delay(100); }else{ digitalW...

How to connect a Push Button with Digital Input Pull-Up resistor

Physical Computing Tutorials

... the pin is not actively connected to anything (i.e. it’s “floating”). We have another tutorial showing how to use a button the normal way. Advantage of using a button t ...his way Fewer External Components N ...W when pressed (to GND) delay(100); }

Using built-in example code and Reading the hookup diagram

Physical Computing Workshop: Beginner Physical Computing

...choose HIGH, turn it on. delay(1000); delay means whatever you are ... there for this amount of time, 1000 is 1000 milliseconds, which is 1 secon ...is time LOW, turn it off. delay(1000); stays off for a second. Therefore, our orange light is blinking eve...