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
[IndexCounter] | |
addrindexcount = 0 |
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
# Import some funtions from TkInter | |
from tkinter import * | |
import tkinter.font | |
import tkinter.ttk | |
# Import some functions from Pillow | |
from PIL import ImageTk, Image | |
# Import the PyQRCode library | |
import pyqrcode |
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
# Import the httplib2 library and create a http object. | |
import httplib2 | |
http = httplib2.Http() | |
# Define URL's used when sending http requests | |
url_on = 'http://192.168.100.9/gpio/1' | |
url_off = 'http://192.168.100.9/gpio/0' | |
# Imports some Python Date/Time functions | |
import time |
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
/* | |
* This sketch demonstrates how to set up a simple HTTP-like server. | |
* The server will set a GPIO pin depending on the request | |
* http://server_ip/gpio/0 will set the GPIO2 low, | |
* http://server_ip/gpio/1 will set the GPIO2 high | |
* server_ip is the IP address of the ESP8266 Arduino module, will be | |
* printed to Serial when the module is connected. | |
*/ | |
// Include the ESP8266 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
# Imports some Python Date/Time functions | |
import time | |
import datetime | |
# Imports GPIO library | |
import RPi.GPIO as GPIO | |
# Imports the PyOTA library | |
from iota import Iota | |
from iota import Address |
NewerOlder