Skip to content

Instantly share code, notes, and snippets.

View jaggedprospect's full-sized avatar

Nate jaggedprospect

View GitHub Profile
@jaggedprospect
jaggedprospect / blinking_led.py
Created October 1, 2020 15:27
A program written in Python to control an LED light from a Raspberry Pi.
#!/usr/bin/env python
#
# blinking_led.py
# @author Nate Heppard
# @date 1 October 2020
import RPi.GPIO as GPIO # Import RasPi GPIO library
from time import sleep # Import sleep function from time module
LED_PIN = 23 # Pin used to control LED
@jaggedprospect
jaggedprospect / Image.java
Last active June 1, 2022 23:57
Alternate Image class constructor that implements scaling. (For use in the 2D Java Game Engine series by Majoolwip)
//<insert_package_declaration>
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.IOException;
public class Image {
private int width, height;
private int[] pixels;