This file contains hidden or 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
""" | |
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 |
This file contains hidden or 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
""" | |
DESCRIPTION: | |
This example code will uses: | |
EDU PICO to display animation on the OLED. | |
CONNECTION: | |
EDU PICO : OLED Display SSD1315 | |
GP4 - SDA | |
GP5 - SCL |
This file contains hidden or 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
""" | |
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: |
This file contains hidden or 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
""" | |
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 | |
""" |
This file contains hidden or 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
""" | |
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 | |
""" |
This file contains hidden or 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 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: |
This file contains hidden or 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 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 |
This file contains hidden or 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
print("Hello EDU PICO") |