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
// Creado ChepeCarlos | |
// Tutorial Completo en https://nocheprogramacion.com | |
// Canal Youtube https://youtube.com/alswnet?sub_confirmation=1 | |
template<class T> inline Print &operator <<(Print &obj, T arg) { | |
obj.print(arg); | |
return obj; | |
} | |
#define EEPROM_SIZE 12 |
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
# Place your local configuration in /etc/mosquitto/conf.d/ | |
# | |
# A full description of the configuration file is at | |
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example | |
pid_file /var/run/mosquitto.pid | |
persistence true | |
persistence_location /var/lib/mosquitto/ |
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
template<class T> inline Print &operator <<(Print &obj, T arg) { | |
obj.print(arg); | |
return obj; | |
} | |
#include "CTBot.h" | |
CTBot miBot; | |
#include "token.h" |
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
#include <EEPROM.h> | |
#define CantidadLed 3 | |
int Led[CantidadLed] = {5, 4, 13}; | |
int Espera[CantidadLed] = {10, 8, 2}; | |
String ColorSemaforo[CantidadLed] = {"Rojo", "Verde", "Amarillo"}; | |
#define Rojo 0 | |
#define Verde 1 | |
#define Amarillo 2 |
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
int Siglo = 6, Anno_4 = 5, Anno_7 = 1; | |
int Suma, Modulo; | |
int Dia, Mes; | |
int clave; | |
const int EsperaLed = 3000; | |
#define CantidadLed 7 | |
const int claveMes[12] = {0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5}; | |
const int Led[CantidadLed] = {8, 7, 6, 5, 4, 3, 2}; | |
const String NombreDia[7] = {"Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sabado"}; |
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
//Bluetooth | |
#include "BluetoothSerial.h" | |
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED) | |
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it | |
#endif | |
BluetoothSerial SerialBT; | |
#define Apagado 0 | |
#define Encendido 1 | |
#define Interminente 2 | |
struct SuperLed { |
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
#include "BluetoothSerial.h" | |
#include "Wire.h" | |
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED) | |
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it | |
#endif | |
BluetoothSerial SerialBT; | |
const int MPU_ADDR = 0x68; |
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
import bpy, os | |
bl_info = { | |
"name": "pollo con papas", | |
"category": "Object", | |
} | |
def ShowMessageBox(message = "", title = "Message Box", icon = 'INFO'): | |
def draw(self, context): |
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
# base https://docs.blender.org/api/blender_python_api_2_65_5/info_tutorial_addon.html | |
bl_info = { | |
"name": "pollo con papas", | |
"category": "Object", | |
} | |
import bpy | |
class ObjectCursorArray(bpy.types.Operator): |
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
include <AFMotor.h> //libreria adafrit motor(shield) | |
#include <NewPing.h> //librería para sensor ultrasónico | |
#include <Servo.h> //libreria para servomotores | |
#define TRIG_PIN A0 //TRIG en pin A0 | |
#define ECHO_PIN A1 //ECO en pin A1 | |
#define MAX_DISTANCE 200 //distancia maxima de lectura | |
#define MAX_SPEED 190 //potencia mexima del motor | |
#define MAX_SPEED_OFFSET 20 | |
NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE); | |
AF_DCMotor motor1(1, MOTOR12_1KHZ); //motor conectado al conector 1 a frecuencia de 1 KHZ |
NewerOlder