Status message is 7 bytes long and send to port 1.
Contains all information about device including measured temperature. This message is send after reset, button press or after request by sending downlink message Status request.
cd /cesta/k/novemu/node-red | |
# (1) Stáhne Node-RED do aktuálního adresáře | |
# všiměte si, že chybí parameter -g, instalujeme do lokálního adresáře | |
# parametr --save zafixuje verze (při spuštění přes npx už se nekontroluje jestli není nová verze, což trvá dlouho) | |
npm install --save node-red@next | |
# (2) Vytvořit settings.js | |
# Je možné přeskočit, pokud nechcete nic měnit v globální settings.js v uživatelském profilu | |
# kopie výchozího: |
# Simple Matrix style effect for Pico Scroll Pack board from Pimoroni and MicroPython on Raspbery Pi Pico | |
# see: https://twitter.com/horcicaa/status/1439327623843307523 | |
# doc: https://shop.pimoroni.com/products/pico-scroll-pack | |
# https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/modules/pico_scroll | |
import time | |
import random | |
import picoscroll as scroll |
[env:uno] | |
platform = atmelavr | |
board = uno | |
framework = arduino | |
lib_deps = | |
[email protected] |
using System.Globalization; | |
namespace ConsoleApp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var cultures = CultureInfo.GetCultures(CultureTypes.AllCultures); |
Status message is 7 bytes long and send to port 1.
Contains all information about device including measured temperature. This message is send after reset, button press or after request by sending downlink message Status request.
while true | |
do | |
t=$(cat /sys/class/thermal/thermal_zone0/temp) | |
t=$(($t/1000)) | |
echo Teplota CPU $t | |
mosquitto_pub -h mqtt.sh.cvut.cz -t linuxdays/raspberry/temperature -m "$t °C" | |
sleep 5 | |
done |
#include "arduino.h" | |
#include <VM_DBG.h> | |
unsigned long time; | |
bool output; | |
void setup() | |
{ | |
// MicroDebug setup | |
delay(2000); |
alert(typeof(f)); // --> function | |
function f() {} |
Test spojení |
#include <Bounce.h> | |
#define PEDAL_PIN 2 | |
Bounce pedal = Bounce(PEDAL_PIN, 50); | |
void setup() | |
{ | |
pinMode(PEDAL_PIN, INPUT_PULLUP); | |
Keyboard.begin(); |