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
/* | |
Log sensors data (temperature, humidity & pressure) to Google Sheets using M5Stack ESP32. | |
Board: | |
- M5Stack Basic ESP32 Development Kit (M5Stack Core ESP32) https://my.cytron.io/p-m5stack-basic-esp32-development-kit | |
- M5Stack Environment Sensor Unit II https://my.cytron.io/p-m5stack-environment-sensor-unit-ii | |
ESP32 Board Manager URL: | |
- https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json |
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
# | |
# Maker Pi RP2040 Mobile Robot: Part 3 - Obstacle Detection | |
# | |
# Tutorial | |
# - https://tutorial.cytron.io/2021/08/10/maker-pi-rp2040-mobile-robot | |
# | |
# Raspberry Pi Pico | |
# - Maker Pi Pico https://my.cytron.io/p-maker-pi-pico?tracking=idris | |
# - LiPo 3.7V 1300mAH https://my.cytron.io/p-lipo-rechargeable-battery-3.7v-1300mah?tracking=idris | |
# - Maker Line https://my.cytron.io/p-maker-line-simplifying-line-sensor-for-beginner?tracking=idris |
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
# | |
# Maker Pi RP2040 Mobile Robot: Part 2 - Line Following | |
# | |
# Tutorial | |
# - https://tutorial.cytron.io/ | |
# | |
# Raspberry Pi Pico | |
# - Maker Pi Pico https://my.cytron.io/p-maker-pi-pico?tracking=idris | |
# - LiPo 3.7V 1300mAH https://my.cytron.io/p-lipo-rechargeable-battery-3.7v-1300mah?tracking=idris | |
# - Maker Line https://my.cytron.io/p-maker-line-simplifying-line-sensor-for-beginner?tracking=idris |
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
# | |
# Metronome Maker Pi Pico, programmed with CircuitPython | |
# | |
# Reference: | |
# - https://learn.adafruit.com/metronome-clue | |
# | |
# Tutorial | |
# - https://tutorial.cytron.io/ | |
# | |
# Raspberry Pi Pico |
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 Covid-19 Data Using Maker Pi Pico and CircuitPython | |
# | |
# Tutorial | |
# - https://tutorial.cytron.io/2021/07/27/display-covid-19-data-using-maker-pi-pico-and-circuitpython/ | |
# | |
# Raspberry Pi Pico | |
# - [Maker Pi Pico] https://my.cytron.io/p-maker-pi-pico?tracking=idris | |
# - Node32 Lite https://my.cytron.io/p-node32-lite-wifi-and-bluetooth-development-kit?tracking=idris | |
# - Grove 16x2 LCD https://my.cytron.io/p-grove-16-x-2-lcd-white-on-blue?tracking=idris |
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
# -*- coding: utf-8 -*- | |
# i2c bus (0 — original Pi, 1 — Rev 2 Pi) | |
I2CBUS = 1 | |
# LCD Address | |
ADDRESS = 0x27 | |
import smbus | |
from time import sleep |
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
''' | |
References: | |
- Adafruit MIDI Library | |
https://circuitpython.readthedocs.io/projects/midi/en/latest/ | |
- MatGyver DIY Electric MiDi Drum | |
https://matgyver.my/2021/06/29/diy-electric-midi-drum-piezo-electric/ | |
CircuitPython libraries bundle: https://circuitpython.org/libraries | |
Additional libraries: |
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
''' | |
References: | |
- CircuitPython HID Keyboard and Mouse | |
https://learn.adafruit.com/circuitpython-essentials/circuitpython-hid-keyboard-and-mouse | |
CircuitPython libraries bundle: https://circuitpython.org/libraries | |
Additional libraries: | |
- adafruit_hid |
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
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries | |
# SPDX-License-Identifier: MIT | |
import time | |
import board | |
import digitalio | |
import simpleio | |
import busio | |
import pwmio | |
from adafruit_motor import servo |
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 | |
import board | |
import digitalio | |
from audiomp3 import MP3Decoder | |
try: | |
from audioio import AudioOut | |
except ImportError: |