This file contains hidden or 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 cluster from "node:cluster"; | |
import { availableParallelism } from "node:os"; | |
export async function clustered({ | |
numWorkers = availableParallelism(), | |
primary, | |
worker, | |
recoverWorkers = true, | |
shutdownPrimary, | |
}: { |
This file contains hidden or 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
// ask_receiver.pde | |
// -*- mode: C++ -*- | |
#include <RH_ASK.h> | |
#ifdef RH_HAVE_HARDWARE_SPI | |
#include <SPI.h> // Not actually used but needed to compile | |
#endif | |
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> |