Skip to content

Commit 744676c

Browse files
authored
Merge branch 'master' into master
2 parents 17b43c3 + 65320ca commit 744676c

File tree

53 files changed

+59491
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+59491
-9
lines changed

Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/SerialESPPassthrough.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ unsigned long baud = 115200;
2727
defined(ADAFRUIT_FEATHER_M0_EXPRESS) || \
2828
defined(ARDUINO_AVR_FEATHER32U4) || \
2929
defined(ARDUINO_NRF52840_FEATHER) || \
30-
defined(ADAFRUIT_ITSYBITSY_M0_EXPRESS) || \
30+
defined(ADAFRUIT_ITSYBITSY_M0) || \
3131
defined(ADAFRUIT_ITSYBITSY_M4_EXPRESS) || \
32-
defined(ARDUINO_AVR_ITSYBITSY32U4_3V)
32+
defined(ARDUINO_AVR_ITSYBITSY32U4_3V) || \
33+
defined(ARDUINO_NRF52_ITSYBITSY)
3334
// Configure the pins used for the ESP32 connection
3435
#define SerialESP32 Serial1
3536
#define SPIWIFI SPI // The SPI port
Binary file not shown.
Binary file not shown.

Astrophotography_Tracker/code.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import time
2+
import board
3+
import digitalio
4+
5+
worm_ratio = 40/1
6+
belt_ratio = 100/60
7+
gear_ratio = worm_ratio * belt_ratio
8+
9+
steps = 200 # Steps per revolution
10+
microsteps = 64 # Microstepping resolution
11+
total_steps = steps * microsteps # Total microsteps per revolution
12+
13+
wait = 1/ ((gear_ratio * total_steps) / 86400)
14+
15+
step = digitalio.DigitalInOut(board.D6)
16+
direct = digitalio.DigitalInOut(board.D5)
17+
18+
step.direction = digitalio.Direction.OUTPUT
19+
direct.direction = digitalio.Direction.OUTPUT
20+
21+
direct.value = True
22+
23+
while True:
24+
step.value = True
25+
time.sleep(0.001)
26+
step.value = False
27+
time.sleep(wait - 0.001)
218 KB
Loading

0 commit comments

Comments
 (0)