mpbuild 0.9__tar.gz → 0.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(python:*)",
5
+ "Bash(find:*)"
6
+ ],
7
+ "deny": []
8
+ }
9
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mpbuild
3
- Version: 0.9
3
+ Version: 0.9.1
4
4
  Summary: Build MicroPython firmware with ease!
5
5
  Author-email: Matt Trentini <matt.trentini@gmail.com>
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mpbuild"
3
- version = "0.9"
3
+ version = "0.9.1"
4
4
  description = "Build MicroPython firmware with ease!"
5
5
  authors = [
6
6
  { name = "Matt Trentini", email = "matt.trentini@gmail.com" }
Binary file
@@ -23,7 +23,7 @@ BUILD_CONTAINERS = {
23
23
  "renesas-ra": ARM_BUILD_CONTAINER,
24
24
  "samd": ARM_BUILD_CONTAINER,
25
25
  "psoc6": "ifxmakers/mpy-mtb-ci",
26
- "esp32": "espressif/idf:v5.4.1",
26
+ "esp32": "espressif/idf:v5.4.2",
27
27
  "esp8266": "larsks/esp-open-sdk",
28
28
  "unix": "gcc:12-bookworm", # Special, doesn't have boards
29
29
  }
@@ -182,7 +182,7 @@ def build_board(
182
182
  docker_interactive=sys.stdin.isatty(),
183
183
  )
184
184
 
185
- title = "Build" if do_clean else "Clean"
185
+ title = "Clean" if do_clean else "Build"
186
186
  title += f" {port}/{board}" + (f" ({variant})" if variant else "")
187
187
  print(Panel(build_cmd, title=title, title_align="left", padding=1))
188
188
 
@@ -50,6 +50,32 @@ class BoardDetails(Static):
50
50
  if self.board.url:
51
51
  content += f"\n**URL:** {self.board.url}\n"
52
52
 
53
+ # Add pins information
54
+ pins = self.board.pins
55
+ if pins:
56
+ content += f"\n**Pins:** ({len(pins)} pins)\n"
57
+
58
+ # Group pins by type for better display
59
+ cpu_pins = [p for p in pins if not p.functional_name or p.functional_name == p.mcu_pin]
60
+ board_pins = [p for p in pins if p.functional_name and p.functional_name != p.mcu_pin]
61
+
62
+ if board_pins:
63
+ content += "\n*Board Pins:*\n"
64
+ for pin in sorted(board_pins, key=lambda p: p.functional_name):
65
+ content += f"- {pin.functional_name} → {pin.mcu_pin}\n"
66
+
67
+ if cpu_pins:
68
+ content += "\n*CPU Pins:*\n"
69
+ # Show only first 20 CPU pins to avoid overwhelming the display
70
+ displayed_pins = sorted(cpu_pins, key=lambda p: p.mcu_pin)[:20]
71
+ for pin in displayed_pins:
72
+ content += f"- {pin.mcu_pin}\n"
73
+
74
+ if len(cpu_pins) > 20:
75
+ content += f"... and {len(cpu_pins) - 20} more CPU pins\n"
76
+ else:
77
+ content += f"\n**Pins:** No pins.csv file found\n"
78
+
53
79
  self.update(content)
54
80
 
55
81
  def compose(self) -> ComposeResult:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes