Skip to content

Instantly share code, notes, and snippets.

View yeffrimic's full-sized avatar

Yeffri J. Salazar yeffrimic

View GitHub Profile
=======================================================================
README-vnc
Linux for Tegra
Configuring VNC from the command-line
=======================================================================
A VNC server allows access to the graphical display of a Linux for Tegra system
over the network. This allows you to work physically remote from the Linux for
Tegra system, and avoids the need to connect an HDMI display, USB keyboard, or
mouse.
#!/bin/bash
set -e
RED='\033[0;31m'
YEL='\033[1;33m'
GRN='\033[0;32m'
BLU='\033[0;34m'
NC='\033[0m'
info() { echo -e "${BLU}[INFO]${NC} $*"; }
#include <Wire.h>
#include <RTClib.h>
#include <SD.h>
#include <SPI.h>
#define SD_CS_PIN 10
#define BUTTON_PIN 2
RTC_DS3231 rtc;
#include <AFMotor.h> // Librería Adafruit Motor Shield
#include <SoftwareSerial.h> // Librería Software Serial
// Definir los motores conectados a los puertos M1 y M2
AF_DCMotor motor_izquierdo(1); // Motor en M1
AF_DCMotor motor_derecho(2); // Motor en M2
// Configurar Software Serial en pines A0 (RX) y A1 (TX)
SoftwareSerial bluetooth(A0, A1); // RX, TX
import os
import pygame
import sys
import pyttsx3
# Inicializar Pygame
pygame.init()
# Inicializar pyttsx3
engine = pyttsx3.init()
#define salida1 5
#define salida2 4
#define pwm 7
#define distanciaPorPulso 0.72 //mm
float distanciaEnMM = 0;
const int channelPinA = 2;
int PPR = 20;
/**
* @file Read_Battery_Level.ino
* @author Bernd Giesecke (bernd.giesecke@rakwireless.com)
* @brief Read charging level from a battery connected to the RAK5005-O base board
* Setup and main loop
* @version 0.1
* @date 2020-08-21
*
* @copyright Copyright (c) 2020
*
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#include <PubSubClient.h> // https://github.com/knolleary/pubsubclient/
#define BUILTIN_LED 2
#define CONNECTION_TOPIC "/F-litter/connection/status"
#define MQTT_RECONNECTIO_MS_TIME 5000
WiFiClient espClient;
PubSubClient mqttClient(espClient);
[{"id":"a241677a.9d4738","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"179753f7.20760c","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"4a78ebf0.d15904","type":"tab","label":"Parqueo numero 1","disabled":false,"info":""},{"id":"99d0814b.e11998","type":"tab","label":"Parqueo numero 2","disabled":false,"info":""},{"id":"804cbfdd.656098","type":"tab","label":"Parqueo 4","disabled":false,"info":""},{"id":"7b263e23.89435","type":"tab","label":"Parqueo numero 5","disabled":false,"info":""},{"id":"86c345a4.6cf3","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"2d8659eb.6e387e","type":"mqtt-broker","z":"","name":"","broker":"broker.mqttdashboard.com","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"3170f1cb.a82eb6","type":"ui_tab","z":"","name":"Klappit 01","icon":"da
/*
* RFID wemos
*
* feb 2020
* Yeffrimic,Xibalba Hackerspace.
*
*/
#include <SPI.h>
#include <MFRC522.h>