Skip to content

Instantly share code, notes, and snippets.

View fxprime's full-sized avatar

ArduinoNa ขายอุปกรณ์ Arduino, เครื่องมือช่าง, raspberry pi, สอน ROS fxprime

View GitHub Profile
@fxprime
fxprime / hsv2rgb.ino
Created April 20, 2021 09:39 — forked from postspectacular/hsv2rgb.ino
Super compact HSV/RGB conversions for Arduino/C
int redPin = 6;
int greenPin = 5;
int bluePin = 9;
float col[3];
float hue = 0.0;
void setup() {
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
@fxprime
fxprime / hsvrgb-cpp
Created April 20, 2021 09:20 — forked from fairlight1337/hsvrgb-cpp
Simple RGB/HSV conversion in C++
// Copyright (c) 2014, Jan Winkler <[email protected]>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
/*************************************************************
* *
* Visual servoing control unit *
* (Manual mode) *
* *
************************************************************/
/* -------------------------------------------------------------------------- */
/* Library */
/*
* Project Adalight FastLED
* @author David Madison
* @link github.com/dmadison/Adalight-FastLED
* @license LGPL - Copyright (c) 2017 David Madison
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
#include <Arduino.h>
#include <Fsm.h>
#include <WiFi.h>
#include "macro.h"
#include "config.h"
#include "modules/siren.h"
#include "modules/switch_sensor.h"
#include "modules/smoke_sensor.h"
#include "modules/temp_humid.h"
/*
* Project Adalight FastLED
* @author David Madison
* @link github.com/dmadison/Adalight-FastLED
* @license LGPL - Copyright (c) 2017 David Madison
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
#include <Arduino.h>
/* -------------------------------------------------------------------------- */
/* PM2.5 Variable */
/* -------------------------------------------------------------------------- */
// Choose program options.
//#define PRINT_RAW_DATA //uncomet if you wont raw data displayed in serial monitor
/* -------------------------------------------------------------------------- */
/* 16 ch analog reading Mux vs TTGO display exam */
/* By www.ModuleMore.com */
/* -------------------------------------------------------------------------- */
#include <Arduino.h>
/* -------------------------------------------------------------------------- */
#include <Arduino.h>
void setup() {
Serial.begin(115200);
}
void loop() {
float pressure = 10013.0;
float temperature = 31;
#include <Arduino.h>
void setup() {
Serial.begin(115200);
}
void loop() {
float pressure = 10013.0;
float temperature = 31;