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:
#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;
#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 kivy.app import App
from kivy.properties import StringProperty
from kivy.clock import Clock, mainthread
kv = '''
BoxLayout:
orientation: 'vertical'
@pat1
pat1 / amqpconsumer
Last active September 10, 2020 15:18
pika bug
import logging
import pika
import time
LOG_FORMAT = ('%(levelname) -1s %(asctime)s %(name) -1s %(funcName) '
'-1s %(lineno) -5d: %(message)s')
LOGGER = logging.getLogger(__name__)
user="user"