Skip to content

Commit 6cd9948

Browse files
committed
Un-revert 'X' change and tidy repo
1 parent efc5085 commit 6cd9948

4 files changed

Lines changed: 19 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Project stuff
22
dc26-fur-scripts.tar.gz
3+
firmware.*
34

45
# Byte-compiled / optimized / DLL files
56
__pycache__/

animations/scroll.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"U": bytearray([0x0F, 0x10, 0x10, 0x0F, 0x00]),
2828
"V": bytearray([0x1F, 0x10, 0x08, 0x07, 0x00]),
2929
"W": bytearray([0x0F, 0x10, 0x1C, 0x10, 0x0F, 0x00]),
30-
"X": bytearray([0x1C, 0x04, 0x1F, 0x04, 0x07, 0x00]),
30+
'X': bytearray([0x11, 0x0A, 0x04, 0x0A, 0x11, 0x00]),
3131
"Y": bytearray([0x03, 0x04, 0x1C, 0x04, 0x03, 0x00]),
3232
"Z": bytearray([0x19, 0x15, 0x13, 0x11, 0x00]),
3333
"a": bytearray([0x18, 0x14, 0x1C, 0x00]),

firmware-f411.dfu

-327 KB
Binary file not shown.

firmware/README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,21 @@ yourself from:
1515

1616
Building Micropython
1717
--------------------
18-
Prior to building the Micropython firmware, we must first generate a tarball
19-
containing the initial filesystem. Use the script at `tools/dcfurs-mktar.sh`
20-
to generate this file.
2118

22-
After cloning the Micropython firmware, change directory into `firmware/micropython/ports/stm32`
23-
and run the command `make BOARD=DCFURS_F411 FLASH_TARBALL_FILE=../../../../dc26-fur-scripts.tar.gz`
19+
Setup:
20+
```
21+
export GNUARMEMB_TOOLCHAIN_PATH="<PATH TO TOOLCHAIN FOLDER>"
22+
export ZEPHYR_BASE="$(pwd)/firmware/zephyr"
23+
export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
24+
export PATH="$ZEPHYR_BASE/scripts:$GNUARMEMB_TOOLCHAIN_PATH/bin:$PATH"
25+
```
2426

27+
Old build tidy:
28+
```
29+
rm -rf firmware/micropython/ports/stm32/build-DCFURS_F411 dc26-fur-scripts.tar.gz
30+
```
31+
32+
Build:
2533
```
2634
tools/dcfurs-mktar.sh \
2735
&& ( \
@@ -31,6 +39,10 @@ tools/dcfurs-mktar.sh \
3139
)
3240
```
3341

42+
Flash:
43+
```
44+
sudo dfu-util -a 0 -d 0483:df11 -D firmware.dfu
45+
```
3446

3547
Preparing Zephyr
3648
----------------

0 commit comments

Comments
 (0)