Skip to content

Instantly share code, notes, and snippets.

@FaliqCytron
FaliqCytron / code.py
Created May 23, 2024 02:45
ALARM CLOCK WITH RGB LEDs
"""
DESCRIPTION:
This example code will demonstrate how to grab time from the internet
through Network Time Protocol (NTP) and display on OLED Display SS1306.
You can set the alarm time and snooze time.
RGB LEDs and buzzer ON when alarm triggered.
AUTHOR : Cytron Technologies Sdn Bhd.
WEBSITE : www.cytron.io
EMAIL : support@cytron.io
@FaliqCytron
FaliqCytron / code.py
Created May 23, 2024 02:19
Run Animation
"""
DESCRIPTION:
This example code will uses:
EDU PICO to display animation on the OLED.
CONNECTION:
EDU PICO : OLED Display SSD1315
GP4 - SDA
GP5 - SCL
@FaliqCytron
FaliqCytron / code.py
Created May 23, 2024 02:18
Convert Gif to BMP
"""
DESCRIPTION:
This example code will convert the GIF file to
BMP image by sorting each frames horizontally.
AUTHOR : Cytron Technologies Sdn Bhd
WEBSITE : www.cytron.io
EMAIL : support@cytron.io
REFERENCE:
@FaliqCytron
FaliqCytron / code.py
Created May 23, 2024 01:46
SMART USB RELAY
"""
DESCRIPTION:
This example code will control
the USB relay and RGB LEDs on EDU PICO
when the sound magnitude reached its threshold.
AUTHOR : Cytron Technologies Sdn Bhd
WEBSITE : www.cytron.io
EMAIL : support@cytron.io
"""
@FaliqCytron
FaliqCytron / code.py
Created May 23, 2024 01:32
MP3 PLAYER WITH GESTURES
"""
DESCRIPTION:
This example code will play the audio file from
Micro SD Card on EDU PICO and control the audio
using Gesture sensor APDS9960.
AUTHOR : Cytron Technologies Sdn Bhd
WEBSITE : www.cytron.io
EMAIL : support@cytron.io
"""
import board, digitalio, time, microcontroller, os
led = digitalio.DigitalInOut(board.LED)
led.switch_to_output()
file_name = "temperature.csv"
max_file_size = 400000 #400kB
with open(file_name, "a") as datalog:
while True:
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
boot.py file for Pico data logging example. If pin GP0 is connected to GND when
the pico starts up, make the filesystem writeable by CircuitPython.
"""
import board
import digitalio
print("Hello EDU PICO")