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 dballe | |
import sys | |
importer = dballe.Importer("JSON") | |
exporter = dballe.Exporter("BUFR") | |
inputfile = sys.stdin | |
with importer.from_file(inputfile) as fp: |
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 <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; |
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 <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 |
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
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' |
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 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" |