Skip to content

Instantly share code, notes, and snippets.

View luciancaetano's full-sized avatar
🎉
Inspired by new experiences.

Lucian Caetano luciancaetano

🎉
Inspired by new experiences.
  • São Paulo, Brasil
View GitHub Profile
@luciancaetano
luciancaetano / lirc-pi3.txt
Created May 6, 2019 15:24 — forked from prasanthj/lirc-pi3.txt
Getting lirc to work with Raspberry Pi 3 (Raspbian Stretch)
Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]).
The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch.
Following are the changes that I made to make it work.
$ sudo apt-get update
$ sudo apt-get install lirc
# Add the following lines to /etc/modules file
lirc_dev
lirc_rpi gpio_in_pin=18 gpio_out_pin=17
{*
The MIT License (MIT)
Copyright (c) 2015, Marcelo Camargo <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@luciancaetano
luciancaetano / resize_preview.html
Created October 6, 2016 19:03 — forked from mfyz/resize_preview.html
HTML5 FileReader + canvas resizer to resize & preview before upload an image using jquery.
<!DOCTYPE html>
<html>
<head>
<title>Angular HTML5 Preview, Crop And Upload</title>
<style>
body {
padding: 50px;
font: 16px Helvetica;
}