Skip to content

Instantly share code, notes, and snippets.

Avatar

Lucas Paul L4grange

  • Greece
View GitHub Profile
@L4grange
L4grange / GPIO.java
Last active Sep 27, 2019 — forked from rosterloh/gpio.java
Android class for GPIO control
View GPIO.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
This class allows you to control GPIO pins form android, by abstracting the command line excecution into a java class.
IMPORTANT NOTE: Requires root to run, since it is required to write to GPIO ports in /sys/class/gpio/
*/
public class GPIO {
@L4grange
L4grange / FadeView.swift
Last active Aug 31, 2021
Fade a UIView in ios using Gradient (Swift Extension)
View FadeView.swift
//
// This program is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
// and/or modify it under the terms of the Do What The Fuck You Want
// To Public License, Version 2, as published by Sam Hocevar. See
//
// http://sam.zoy.org/wtfpl/COPYING
//
// for more details.
//