Skip to content

Instantly share code, notes, and snippets.

View mistral_format_converter.py
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
View main.py
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'
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__)
user="user"