This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /opt/Espressif | |
git clone -b lx106-g++ https://github.com/jcmvbkbc/crosstool-NG.git | |
cd crosstool-NG | |
./bootstrap && ./configure --prefix=`pwd` && make && make install | |
./ct-ng xtensa-lx106-elf | |
./ct-ng build | |
export PATH=/opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin/:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Ejemplo usando entradas analógicas de Arduino como digitales | |
void setup() { | |
pinMode(0, OUTPUT); | |
pinMode(1, OUTPUT); | |
pinMode(2, OUTPUT); | |
pinMode(3, OUTPUT); | |
pinMode(4, OUTPUT); | |
pinMode(5, OUTPUT); | |
pinMode(6, OUTPUT); | |
pinMode(7, OUTPUT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Primero genere el valor de pi wolframalpha.com con el el mayor numero de decimales posibles y lo meti a este pequeño script en pyton | |
import math | |
a=0 | |
x=0 | |
comp=0 | |
valor='3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273724587006606315588174881520920962829254091715364367892590360011330530548820466521384146951941511609433057270365759591953092186117381932611793105118548074462379962749567351885752724891227938183011949129833673362440656643086021394946395224737190702179860943702770539217176293176752384674818467669405132000568127145263560827785771342757789609173637178721468440901224953430146549585371050792279689258923542019956112129021960864034418159813629774771309960518707211349999998372978049951059731732816096318595024459455346908302642522308253344685035261931188171 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# io.js on raspberry pi | |
installing io.js is now really easy thanks to the io.js and nvm team. | |
They provides prebuilt binaries for arm. | |
## get the system up to date | |
io.js require packages that are not available on the standard (Wheezy) need to change to Jessie. | |
Update your package url | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() | |
{ | |
for (int j=2; j<19; j++) | |
pinMode(j, OUTPUT); | |
} | |
void loop() | |
{ | |
for (int j=2; j<10; j++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
byte P[] = { 0x02, 0x44, 0x44, 0x78, 0x40, 0x40, 0x40, 0x40 }; | |
byte R[] = { 0x78, 0x44, 0x44, 0x78, 0x70, 0x58, 0x4C, 0x46 }; | |
byte O[] = { 0x3C, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x3C }; | |
byte M[] = { 0x66, 0x7E, 0x5A, 0x42, 0x42, 0x42, 0x42, 0x42 }; | |
byte E[] = { 0x7C, 0x40, 0x40, 0x78, 0x78, 0x40, 0x40, 0x7C }; | |
byte T[] = { 0x7E, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18 }; | |
byte C[] = { 0x7c, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x7C }; | |
byte N[] = { 0x42, 0x62, 0x72, 0x5A, 0x4E, 0x46, 0x42, 0x42 }; | |
byte dot[]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06 }; | |
byte sp[]= { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//sketch para cargar firmware a ESP8266 por medio de Arduino | |
//Esquematico en | |
int ch_pd = 3; | |
int io0 = 2; | |
void setup() { | |
pinMode(ch_pd, OUTPUT); | |
pinMode(io0, OUTPUT); | |
digitalWrite(io0,LOW); | |
digitalWrite(ch_pd, LOW); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
# -*- coding: utf-8 -*- | |
'''Módulo que permite hacer búsquedas mediante el API de twitter y realiza un análisis de las palabras más frecuentes.''' | |
#Elaborado por José Luis Chiquete y disponible bajo los términso de la licencia MIT | |
from twython import Twython | |
from matplotlib import pyplot as plt | |
import nltk | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Este es nuestro mundo ahora . . . | |
El mundo del electrón y el switch, la belleza del baudio. | |
Hacemos uso de un servicio que ya existe sin pagar, por que podría ser ridículamente barato, si no estuviera en manos de glotones hambrientos de ganancias, y ustedes nos llaman criminales. | |
Nosotros exploramos . . . | |
y ustedes nos llaman criminales. | |
Nosotros buscamos detrás del conocimiento . . . | |
y ustedes nos llaman criminales. | |
Nosotros existimos sin color, sin nacionalidad, sin prejuicios religiosos . . . | |
y ustedes nos llaman criminales. | |
Ustedes construyen bombas atómicas, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
''' | |
Desarrollar un programa que te pida una cadena de texto y regresar: | |
- el número de letras totales y, | |
- las palabras que contengan un número de letras que sea primo y la cadena sin vocales ni las posiciones que sean múltiplos de siete. | |
Tamaño máximo de cadena 100 caracteres, tienes que regresar el total de letras y el total de caracteres. | |
''' |
OlderNewer