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
/* | |
Neo Clock | |
*/ | |
#include <Adafruit_NeoPixel.h> | |
#include <TimeLib.h> | |
#include <Wire.h> | |
#include <DS1307RTC.h> |
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
#!/bin/sh | |
setterm -cursor off | |
VIDEOPATH="/home/pi/videoloop/" | |
SERVICE="omxplayer" | |
while true; do | |
if ps ax | grep -v grep | grep $SERVICE > /dev/null | |
then | |
sleep 1; |
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
Commands Description Type Reply Set/Execute Parameters Examples | |
AT generic cmd basic OK - - - | |
AT+RST Resets the mod basic Module info - - AT+RST | |
AT+GMR returns the current Fw version basic Fw Version - - - | |
AT+CWMODE Wifi Mode Set Wifi Mode SET AT+CWMODE=<Mode> Mode 1=Sta, 2=AP, 3=both AT+CWMODE=2 | |
AT+CWLAP Lists all available AP Wifi list of AP AT+CWLAP - AT+CWLAP | |
AT+CWJAP Joins an Access Point Wifi OK AT+CWJAP=<ssid>,<pwd> Your Wifi SSID and Password AT+CWJAP=<test>,<123456789> | |
AT+CWQAP Quits |
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
#include <Servo.h> | |
int ir; | |
Servo myservo; | |
void setup() | |
{ | |
ir = A1; //IR Connected to A1 | |
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
/* | |
* Copyright (C) 2008 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software< /span> |
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
#include <DHT.h>; | |
//Constants | |
#define DHTPIN A1 // what pin we're connected to | |
#define DHTTYPE DHT11 // DHT 22 (AM2302) | |
DHT dht(DHTPIN, DHTTYPE); //// Initialize DHT sensor for normal 16mhz Arduino | |
//Variables | |
int chk; |
NewerOlder