Skip to content

Instantly share code, notes, and snippets.

import dballe
import sys
importer = dballe.Importer("JSON")
exporter = dballe.Exporter("BUFR")
inputfile = sys.stdin
with importer.from_file(inputfile) as fp:
View Ventola_PWM_LCD.ino
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
# define pinPWM 11
# define pinTachimetrico 2
volatile int half_revolutions = 0;
int rpm = 0;
int PWM = 0;
int incrementoPWM = 5;
View Encoder_LCD_sensori.ino
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <SensorDriverb.h>
#include <PID_v1.h>
// pin relè SSR
#define MR_PWM 13
#define MR_EN 12
// pin encoder
from kivy.lang import Builder
from plyer import gps
from import App
from import StringProperty
from kivy.clock import Clock, mainthread
kv = '''
orientation: 'vertical'
pat1 / amqpconsumer
Last active September 10, 2020 15:18
pika bug
View amqpconsumer
import logging
import pika
import time
LOG_FORMAT = ('%(levelname) -1s %(asctime)s %(name) -1s %(funcName) '
'-1s %(lineno) -5d: %(message)s')
LOGGER = logging.getLogger(__name__)