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
#define PARTICLE_PHOTON | |
#include "ThingSpeak/ThingSpeak.h" | |
#include "SHT1x/SHT1x.h" | |
//ThingSpeak.com configurations: | |
TCPClient client; | |
unsigned long myChannelNumber = REPLACE_WITH_YOUR_CHANNEL_NUMBER; | |
const char * myWriteAPIKey = "REPLACE_WITH_YOUR_API_KEY"; | |
// Channel 1 is Temperature (deg C) |
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
//Simple TCP Chat Client | |
//Taken from: http://www.tenouk.com/Module41a.html | |
//Using select() for I/O multiplexing | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <errno.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
//Simple TCP Chat Server | |
//Taken from: http://www.tenouk.com/Module41.html | |
//Using select() for I/O multiplexing | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <errno.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 <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
#include "DHT.h" | |
// Uncomment one of the lines below for whatever DHT sensor type you're using! | |
//#define DHTTYPE DHT11 // DHT 11 | |
//#define DHTTYPE DHT21 // DHT 21 (AM2301) | |
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321 |
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 <ESP8266WiFi.h> | |
#include "DHT.h" | |
////////////////////DHT11 | |
//Uncomment one of the lines below for whatever DHT sensor type you're using! | |
#define DHTTYPE DHT11 //DHT11 | |
//#define DHTTYPE DHT21 //DHT21 (AM2301) | |
//#define DHTTYPE DHT22 //DHT22 (AM2302), AM2321 |
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 "PinChangeInt.h" | |
#include "TimerOne.h" | |
//We always have to include the library | |
#include "LedControlAC.h" | |
#define NBR_MTX 4 | |
//LedControl(DataIn_Pin, Clock_Pin, Load_Pin, Number_of_Cascaded_Matrix_Displays); | |
LedControl lc = LedControl(2, 4, 3, NBR_MTX); |
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
#!/bin/bash | |
#sudo apt-get install jq imagemagick pngcrush nkf | |
#https://askubuntu.com/questions/403918/setting-cron-to-run-a-shell-script-random-wallpaper-from-a-webpage | |
# export DBUS_SESSION_BUS_ADDRESS environment variable | |
PID=$(pgrep gnome-session) | |
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-) | |
mkdir -p $HOME/Pictures/Elon_Tweets |
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 <stdio.h> | |
void hello(void) | |
{ | |
puts("Hello, I'm a shared library"); | |
} |
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
#ifndef libhello_h__ | |
#define libhello_h__ | |
extern void hello(void); | |
#endif // libhello_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 <stdio.h> | |
#include "libhello.h" | |
int main(void) | |
{ | |
puts("This is a shared library test..."); | |
hello(); | |
return 0; | |
} |
OlderNewer