This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************************************* | |
Adafruit invests time and resources providing this open source code, | |
please support Adafruit and open-source hardware by purchasing | |
products from Adafruit! | |
MIT license, check LICENSE for more information | |
Copyright (c) 2019 Ha Thach for Adafruit Industries | |
All text above, and the splash screen below must be included in | |
any redistribution | |
*********************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTY AND SUPPORT | |
* IS APPLICABLE TO THIS SOFTWARE IN ANY FORM. CYTRON TECHNOLOGIES SHALL NOT, | |
* IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL | |
* DAMAGES, FOR ANY REASON WHATSOEVER. | |
******************************************************************************** | |
* DESCRIPTION: | |
* | |
* This example is for controlling Ikedo Mini V2 using PS2 controller. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTY AND SUPPORT | |
* IS APPLICABLE TO THIS SOFTWARE IN ANY FORM. CYTRON TECHNOLOGIES SHALL NOT, | |
* IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL | |
* DAMAGES, FOR ANY REASON WHATSOEVER. | |
******************************************************************************** | |
* DESCRIPTION: | |
* | |
* This example is for the Autonomous Sumo Robot with: | |
* - motor speed alignment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
''' | |
- Raspberry Pi Zero W | |
https://my.cytron.io/p-raspberry-pi-zero-w-and-bundles | |
- Raspberry Pi Camera Module 3 - 12MP with Auto Focus lens | |
https://my.cytron.io/p-raspberry-pi-camera-module-3-12mp-with-auto-focus-lens | |
- Raspberry Pi Zero/W/WH 15cm Camera Cable | |
https://my.cytron.io/p-raspberry-pi-zero-v1.3-camera-cable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
How it works: | |
- https://vt.tiktok.com/ZSLkkvWB7/ | |
''' | |
import time | |
import board | |
import digitalio | |
import pwmio | |
import analogio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Send '/picam3' to your Telegram bot to request photo | |
Devices: | |
- Raspberry Pi Zero W | |
https://my.cytron.io/p-raspberry-pi-zero-w-and-bundles | |
- Raspberry Pi Camera Module 3 | |
https://my.cytron.io/p-raspberry-pi-camera-module-3-12mp-with-auto-focus-lens | |
Install Telepot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from picamera2 import Picamera2, Preview | |
picam2 = Picamera2() | |
picam2.start_preview(Preview.QTGL) | |
preview_config = picam2.create_preview_configuration() | |
capture_config = picam2.create_still_configuration() | |
picam2.configure(preview_config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Video result: | |
# https://www.facebook.com/idriszmyblog/videos/6655806037765900 | |
import time | |
from gpiozero import Button | |
from picamera2 import Picamera2 | |
from picamera2.encoders import H264Encoder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define echoPin 12 | |
#define trigPin 13 | |
#define led1 14 | |
#define led2 15 | |
#define buzzer 22 // buzzer pin in Maker Nano RP2040 is 22 | |
// defines variables | |
long duration; // variable for the duration of sound wave travel | |
int distance; // variable for the distance measurement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Display bitmap file on SSD1315 OLED using Raspberry Pi Pico W and CircuitPython | |
# | |
# References and credit to | |
# - https://tutorial.cytron.io/2021/12/21/display-image-on-the-graphic-lcd-using-maker-nano-rp2040-and-circuitpython/ | |
# | |
# Raspberry Pi Pico W | |
# - [Maker Pi Pico Mini] https://my.cytron.io/p-maker-pi-pico-mini-simplifying-projects-with-raspberry-pi-pico | |
# Arduino Grove Sensor Kit for Beginner, OR | |
# - https://my.cytron.io/p-arduino-grove-sensor-kit-for-beginner |
NewerOlder