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 <Bridge.h> | |
#include <Console.h> | |
#include <Process.h> | |
#include <DHT.h> | |
DHT dht; | |
#define Vref 4.95 | |
#define ARRAY_SIZE 4 |
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
/home/viciu/akd-sketchbook/not_ignored_void/tab2.ino: In function 'void setup()': | |
tab2:3: error: void value not ignored as it ought to be | |
Serial.println("2+2=4"); | |
^ | |
exit status 1 | |
void value not ignored as it ought to be |
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
//**************************************************************** | |
/* | |
Watchdog Sleep Example | |
Demonstrate the Watchdog and Sleep Functions | |
Photoresistor on analog0 Piezo Speaker on pin 10 | |
KHM 2008 / Lab3/ Martin Nawrath nawrath@khm.de | |
Kunsthochschule fuer Medien Koeln | |
Academy of Media Arts Cologne |
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO | |
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN takes care | |
of use the correct LED pin whatever is the board used. | |
If you want to know what pin the on-board LED is connected to on your Arduino model, check | |
the Technical Specs of your board at https://www.arduino.cc/en/Main/Products | |
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
/* | |
24-02-2017 http://nettigo.pl Fixes to get it working on current Arduino IDE based on work: | |
3-2-2011 Spark Fun Electronics 2011 Nathan Seidle | |
Not all options are working. For sure works: Hello World, change background black/white, | |
Dull boy,both barcode examples and bitmap. | |
To use this example code, attach | |
Arduino : Printer |
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
// -------------------------------------- | |
// i2c_scanner | |
// | |
// Version 1 | |
// This program (or code that looks like it) | |
// can be found in many places. | |
// For example on the Arduino.cc forum. | |
// The original author is not know. | |
// Version 2, Juni 2012, Using Arduino 1.0.1 | |
// Adapted to be as simple as possible by Arduino.cc user Krodal |
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 <Adafruit_NeoPixel.h> | |
#include <NewPing.h> | |
#define LED_PIN 6 // Pin, do którego podłączony jest "DIN" z NeoPixeli | |
#define LEDS_COUNT 8 // Ilość diod na pasku NeoPixel | |
#define BUZZER_PIN 9 // Pin buzzera | |
#define TRIGGER_PIN 12 // Pin "TRIG" czujnika odległości | |
#define ECHO_PIN 11 // Pin "ECHO" czujnika odległości | |
#define MAX_DISTANCE 200 // Maksymalny możliwy do zmierzenia dystans (200 dla HC-SR04) | |
#define TRIG_DISTANCE 100 // Dystans od którego zaczniemy informować o przeszkodzie |
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
/*************************************************************************** | |
Pogodełko - mini stacja pogodowa | |
https://nettigo.pl/products/pogodelko-twoja-pierwsza-stacja-pogodowa-z-wifi | |
v 1.0 | |
***************************************************************************/ | |
#include <Wire.h> | |
#include <SPI.h> | |
#include <Adafruit_Sensor.h> | |
#include <Adafruit_BMP280.h> |
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_PCF8574.h> | |
#include "PCF8574.h" | |
#define LCD_ADDR 0x27 // Adres I2C wyświetlacza LCD | |
#define BTN_ADDR 0x20 // Adres I2C macierzy przycisków | |
const int ROWS[] = {4, 5, 6, 7}; // Do których pinów expandera podłączone są wiersze macierzy? | |
const int COLS[] = {3, 2, 1, 0}; // Do których pinów expandera podłączone są kolumny macierzy? | |
const int NUM_ROWS = sizeof(ROWS)/sizeof(int); // Liczba wierszy (obliczana automatycznie) |
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
// Example testing sketch for various DHT humidity/temperature sensors | |
// Written by ladyada, public domain | |
#include "DHT.h" | |
#define DHTPIN D7 // what digital pin we're connected to | |
// Uncomment whatever type you're using! | |
//#define DHTTYPE DHT11 // DHT 11 | |
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321 |
OlderNewer