Skip to content

Instantly share code, notes, and snippets.

View jasongao97's full-sized avatar

Yifei Gao jasongao97

View GitHub Profile
@jasongao97
jasongao97 / deploy.yml
Created October 1, 2024 12:55
Time Traveler Homu
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
/*
'Time Globe' - A lamp clock that shows time by the angle of its light
Midterm for 'Time' by Jason Gao
10/25/2021
*/
#include <Servo.h>
#include <Adafruit_NeoPixel.h>
#include <IRremote.h>
@jasongao97
jasongao97 / BalanceBall.ino
Last active November 5, 2020 12:31
Project Balance Ball - Arduino Part
/*
Balance Ball - Hand
Five vibration motor
Arranged from LSM6DS3 example by Riccardo Rizzo
*/
#include <Arduino_LSM6DS3.h>
const int motors[5] = {9, 6, 5, 3, 2};
@jasongao97
jasongao97 / BalanceBallWithTwoVib.ino
Last active November 5, 2020 12:30
Balance Ball game with two vibration motor
/*
Balancing Ball - Arduino part
More info: https://itp.jasongao.me/physical-computing/week-8-synchronous-serial
Arranged from LSM6DS3 example by Riccardo Rizzo
*/
#include <Arduino_LSM6DS3.h>
const int leftVibPin = 2;
const int rightVibPin = 3;
@jasongao97
jasongao97 / serial_flappy_bird.ino
Created October 19, 2020 11:57
Serial Flappy Bird
/**
* Flappy Bird Game by Jason Gao
*
* Debounce part is arranged from
* https://www.arduino.cc/en/Tutorial/BuiltInExamples/Debounce
*/
const int buttonPin = 2; // the number of the pushbutton pin
const int ledPin = 3;