The TurtlePlotBot software was developed and tested using MicroPython version 1.12. The micropython directory contains two firmware .bin files that contain MicroPython as well as the TurtlePlotBot modules and other required modules.
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
#!/usr/bin/env python3 | |
""" | |
Download the first firmware from the webpage | |
requirements: | |
requests | |
bs4 | |
lxml | |
Install requirements if not installed: |
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
# Based on web example from https://RandomNerdTutorials.com | |
try: | |
import usocket as socket | |
except: | |
import socket | |
from machine import Pin, PWM, ADC, RTC | |
from time import sleep, time | |
import onewire, ds18x20 |
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 sys | |
from io import StringIO | |
def print_function() : | |
print( "Hello") | |
print ( "World") | |
print ( "New\nLine") | |
class Capturing(list): | |
def __enter__(self): |
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
""" | |
Quick and dirty web based temp and light sensor using ebay 8266 board. | |
described in this review https://blog.squix.org/2015/01/esp8266-test-board-review.html | |
Based on project from https://RandomNerdTutorials.com | |
""" | |
try: | |
import usocket as socket | |
except: | |
import socket |