Advanced Search
Search Results
111 total results found
Pi War 2024 Log
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
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
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)
Watch this video by Meta explaining the UI and different panels in Spark AR
Using a Joy-IT 1.3" 128x64 OLED display
... more flexible screens. If you want to use the display for animat ... level of 3.3V. If you use any classic Arduino (UNO and Leonardo) w ...th { font-weight: 600; } tr:last-child td { border-bottom: none ... Smartphones, premium TVs, smartwatches, VR headsets, foldable dev...
How to use a Heart Beat Sensor
... beat is detected unsigned long lastBeatTime = 0; // Time (ms) of ... the last beat float BPM = 0; ... signal crosses the threshold upward (beat detected) if (Signal ...gned long delta = currentTime - lastBeatTime; if (lastBeatTime...
Week 3 - Iteration, arrays, objects and pixel arrays
... is only performed once. If we want to perform a conditional oper ...riables can be used in the same way as you use any other variable. ... And therefore the index of the last item in the array would be one ...our own objects is a very handy way to encapsulate related functio...
How to use a Rotary Encoder Button
... rotary encoders rotate all the way around continuously and are di ...n = 4; // pushbutton pin int lastButtonState = LOW; // last button state int debounceDelay ...s changed: if (buttonState != lastButtonState) { // debounce ...r next time through the loop: lastButtonState = buttonState; ...
How to use IR Breakbeam Sensor
...frared; detects changes in long-wave IR (heat) in its field. ...PIN 4 int sensorState = 0; int lastState = 0; void setup( ...; } if (sensorState && !lastState) { Serial.println("Un ...n"); } if (!sensorState && lastState) { Serial.println("Br...
How to control Arduino without using delay()
...viousMillis = 0; // will store last time LED was updated // constants won't ch ...// between the current time and last time you blinked the LED is bi ... // the interval at which you want to blink the LED. unsigned ... >= interval) { // save the last time you blinked the LED p...
Week 2 - Animation, conditionals & random numbers
... 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 ...
Adding content - 3D model from the internet
...? Depending on the model you want you might need to look for it ...uses and this often affects the way in which the model has been pr ...l in your project. You might want to avoid - Models that have ...f the specifications of the hardware involved. You might need to t...
How to use a rotary encoder
...aft angle. This allows you to always know the exact position, even ... encoderValue = 0; volatile int lastEncoded = 0; void setup() { ...nto a single value int sum = (lastEncoded << 2) | encoded; // Com ...--; // Counter-clockwise } lastEncoded = encoded; // Store the...
How to connect a Push Button with Digital Input Pull-Up resistor
... how to use a button the normal way. Advantage of using a button t ...his way Fewer External Components No need for an external resistor—the internal pull-up does the job. Makes circuits simpler and saves space, especially on a breadboard. Stable Def...
Variables
... result of 2. However, you may want to use a certain value more t ... action, we'll keep things this way for now in order to better und ... 2 Traceback (most recent call last): File "/home/dolica/Pycharm ...he second path is the file that was run with this version of Pytho...
Radio Communication: How to use RFM69HCW Radio Data Module
... //while (!Serial) delay(1); // Wait for Serial Console (comment o ...oid loop() { delay(1000); // Wait 1 second between transmits, c ...t, strlen(radiopacket)); rf69.waitPacketSent(); // Now wait for a reply uint8_t buf[RH_ ... len = sizeof(buf); if (rf69.waitAvailableTimeout(500)) { /...
Unity for Beginners Workshop
... 1 - Installing Unity Task 2 - Watch and follow the video tutoria ... and prepare all the assets you want to use (Images and sound file ...nstalling Unity Task 2 - Please watch the Unity for Beginners vide ...le 3D objects for the floor and walls, we recommend creating a bas...