Skip to content

Instantly share code, notes, and snippets.

esmarr58

Block or report user

Report or block esmarr58

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
View Raspberry-bink-wiringpi.cpp
#include<wiringPi.h>
int contador = 0;
int main(){
wiringPiSetup();
pinMode(0, OUTPUT);
for(;;){
contador++;
View Arduino-Serial-Ejemplo1.ino
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Hola Mundo");
while(1);
}
View Servomotor-Arduino.ino
#include<Servo.h>
int angulo = 0;
Servo motor1; //Agregar un objeto servo
void setup() {
motor1.attach(3);
}
View funcion1-qt-opencv-findcontours-encontrar-contornos.cpp
void MainWindow::ftimer(){
//Paso # 1 - Procesar imagen anterior para filtro de ventana
if(!ImagenHSV.empty()){
int canal0Min = ui->barraCanal0Min->value();
int canal0Max = ui->barraCanal0Max->value();
int canal1Min = ui->barraCanal1Min->value();
int canal1Max = ui->barraCanal1Max->value();
int canal2Min = ui->barraCanal2Min->value();
View Arduino-atoi-atof.ino
/*
Autor: Dr. Rubén Estrada Marmolejo
ruben.estrada@hetpro.com.mx
hetpro-store.com/TUTORIALES
*/
#include<math.h>
double catetoOpuesto = 0.0; //Variable para guardar el valor del cateto opuesto
View QT-OpenCV-inRange-Filtro-color.cpp
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<opencv2/core/core.hpp>
#include<opencv2/ml/ml.hpp>
#include<opencv/cv.h>
#include<opencv2/imgproc/imgproc.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<opencv2/video/background_segm.hpp>
#include<opencv2/videoio.hpp>
#include<opencv2/imgcodecs.hpp>
View QT-Creator-OpenCV-inRange-Ejemplo.cpp
void MainWindow::on_pushButton_clicked()
{
QString nombreImagen = QFileDialog::getOpenFileName(this, tr("Abrir imagen"), "/home/", tr("Imagenes (*.png *.jpg *.bmp)"));
IMAGEN = imread(nombreImagen.toUtf8().constData());
//Paso # 1 - Adaptar la imagen a la etiqueta
cv::resize(IMAGEN,IMAGENchica,Size(150,150));
//Paso # 2 - Procesar la imagen chica para obtener un desenfoque
View OpenCV-GaussianBlur-con-QT-MainWindow.cpp
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<opencv2/core/core.hpp>
#include<opencv2/ml/ml.hpp>
#include<opencv/cv.h>
#include<opencv2/imgproc/imgproc.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<opencv2/video/background_segm.hpp>
#include<opencv2/videoio.hpp>
#include<opencv2/imgcodecs.hpp>
View Rotabit-Arduino-Millis.ino
int contador = 0;
int pin1 = 13;
int pin2 = 12;
int pin3 = 11;
int pin4 = 10;
void setup() {
pinMode(pin1, OUTPUT);
pinMode(pin2, OUTPUT);
pinMode(pin3, OUTPUT);
View Arduino-delay-ejemplo1.ino
int contador = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print("Cuenta: ");
Serial.println(contador);
You can’t perform that action at this time.