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/perl | |
# | |
# blink_media_activity.pl | |
# Drives Arduino Nano to blink with media activity | |
# Version 1.1 5/7/18 15:57 | |
# Some refactoring - added SendWifiBeat | |
# | |
# Inspired by a script created by Ryan Babchishin | |
# Ryan Babchishin <rbabchishin@win2ix.ca> | |
# http://www.win2ix.ca |
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
/* | |
* Heartbeat File Meter | |
* by truckershitch | |
* | |
* Added blink limit to prevent runaway blinking on boot | |
* Cleaned up loop and variables | |
* 11/22/17 | |
* | |
* based on | |
* Numerical Echo |
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
/* | |
* Heartbeat File Meter | |
* by truckershitch | |
* | |
* Added blink limit to prevent runaway blinking on boot | |
* Cleaned up loop and variables | |
* 11/22/17 | |
* Appended Wifi code for esp8266 module | |
* 04/19/18 | |
* |
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 socket | |
import machine | |
import time | |
BLINK_ON = 0.25 | |
red_led = machine.Pin(16, machine.Pin.OUT) | |
blue_led = machine.Pin(2, machine.Pin.OUT) # 16 red, 2 blue | |
red_led.on() # turn off | |
blue_led.on() # turn off |
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
def do_connect(): | |
import network | |
sta_if = network.WLAN(network.STA_IF) | |
if not sta_if.isconnected(): | |
print('connecting to network...') | |
sta_if.active(True) | |
sta_if.connect('ssid', 'password') | |
while not sta_if.isconnected(): | |
pass | |
print('network config:', sta_if.ifconfig()) |
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
/* | |
Jig for GoSund WP3 Serial Flash | |
Version 3.0 | |
Created May 27, 2021 | |
Modified May 28, 2021 | |
NOTES: |
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
/* | |
ADXL345 Mounts for Ender-3v2 X and Y Axes | |
Inspired by: | |
https://www.thingiverse.com/thing:4882714 | |
This version mounts on the small space | |
to the left of the extruder. | |
To Use: |