Skip to content

Instantly share code, notes, and snippets.

Luis Reis luismreis

Block or report user

Report or block luismreis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
luismreis / notes.txt
Last active Apr 13, 2018
Random Raspberry Pi TFT Notes
View notes.txt
2014-07-27 - Texy / Adafruit - 1.8" SPI TFT display, 160x128 18-bit color - ST7735R driver (LCD/TFT)
# - 1.8 TFT LCD add-on shield board
# - 1.8" TFT LCD Shield board v2
# - "switching the backlight on and off works!"
"I removed the connectors of pins 15 and 16 between the TFT board and the shield board, rewired pin 15 to the 3.3V rail, and pin 16 to collector in a standard NPN transistor. Base of this transistor is connected to a free GPIO out and emitter goes to GND."
# - LCD board pinout
# - Este tem os botões !!
luismreis / .gitignore
Last active Aug 29, 2015
D3 Moran Model Simulator
We couldn’t find that file to show.
View promisifyREPLServer.js
function promisify(server) {
var _eval = server.eval;
server.eval = function promisifiedEval(cmd, context, filename, callback) {
_eval(cmd, context, filename, function (err, result) {
if (err) {
Promise.resolve(result).then(function (result) {
luismreis /
Last active Jun 30, 2019
Install adafruit lcd drivers on texy's 1.8 tft display (raspberry pi)
## Install kernel modules
mkdir -p ~/work/share/lcd/adafruit-pitft-2.8
cd ~/work/share/lcd/adafruit-pitft-2.8
luismreis / install-texy-1.8.txt
Created Jul 29, 2014
Install texy's raspberry pi TFT 1.8 screen with current adafruit/notro drivers
View install-texy-1.8.txt
mkdir -p ~/work/share/adafruit-pitft-2.8
cd ~/work/share/adafruit-pitft-2.8
View check-dups.js
var known = [ 1, 6, 3, 9, 4 ];
var presented = [ 2, 5, 7, 4, 9, 4 ];
function done(missing, extraneous) {
console.log('Missing:', missing);
console.log('Extraneous:', extraneous);
check(known, presented, done);
luismreis / npm.log
Last active Dec 25, 2015
npm output installing hawk on raspberry pi
View npm.log
$ npm install --loglevel silly -g hawk
npm info it worked if it ends with ok
npm verb cli [ '/home/pi/work/share/node-official/node-v0.10.19-linux-arm-pi/bin/node',
npm verb cli '/home/pi/work/share/node-official/node-v0.10.19-linux-arm-pi/bin/npm',
npm verb cli 'install',
npm verb cli '--loglevel',
npm verb cli 'silly',
npm verb cli '-g',
npm verb cli 'hawk' ]
npm info using npm@1.3.11
luismreis / Gruntfile.js
Created Jul 5, 2013
How to delay responses on connect middleware, eg, to test timeouts, on a yeoman's generated gruntfile.
View Gruntfile.js
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
// ...
luismreis / nokia6100.ino
Last active Dec 15, 2015
arduino vs nokia 6100 test code
View nokia6100.ino
#include <ColorLCDShield.h>
#define SHIFT_TO_RED 8
#define SHIFT_TO_GREEN 4
#define SHIFT_TO_BLUE 0
#define BACKGROUND BLACK // room for growth, adjust the background color according to daylight
#define RGB(r,g,b) (((b) << SHIFT_TO_BLUE) + ((g) << SHIFT_TO_GREEN) + ((r) << SHIFT_TO_RED))
LCDShield lcd;
You can’t perform that action at this time.