Skip to content

Commit 98e03b2

Browse files
authored
Merge pull request #32 from jef41/build-tools
get build files
2 parents bf480a7 + 3700c2f commit 98e03b2

File tree

5 files changed

+99
-19
lines changed

5 files changed

+99
-19
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ bridge/debug.lo*
1111
.DS_Store
1212
*test*.py
1313
.micropico
14+
*.csv
15+
*.log
1416

1517
# Keep pitch.json files in example dir
1618
!examples/**/pitch.json
@@ -133,7 +135,7 @@ __pycache__/
133135

134136
# Distribution / packaging
135137
.Python
136-
build/
138+
#build/
137139
develop-eggs/
138140
dist/
139141
downloads/
@@ -150,7 +152,7 @@ share/python-wheels/
150152
*.egg-info/
151153
.installed.cfg
152154
*.egg
153-
MANIFEST
155+
#MANIFEST
154156

155157
# PyInstaller
156158
# Usually these files are written by a python script from a template

build/makefile.cmake

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#include_directories(${CMAKE_CURRENT_LIST_DIR}/../../)
2+
include_directories(${CMAKE_CURRENT_LIST_DIR}/../../pimoroni-pico/)
3+
#message("directory, working at ${CMAKE_CURRENT_LIST_DIR}/../../")
4+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../pimoroni-pico/micropython/modules/")
5+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../pimoroni-pico/micropython/")
6+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../pimoroni-pico/")
7+
8+
set(CMAKE_C_STANDARD 11)
9+
set(CMAKE_CXX_STANDARD 17)
10+
11+
#include(micropython-common)
12+
13+
# C++ Magic Memory
14+
include(cppmem/micropython)
15+
16+
# Disable build-busting C++ exceptions
17+
include(micropython-disable-exceptions)
18+
19+
20+
21+
22+
23+
# Essential
24+
include(pimoroni_i2c/micropython)
25+
include(pimoroni_bus/micropython)
26+
27+
# Pico Graphics Essential
28+
include(hershey_fonts/micropython)
29+
#include(bitmap_fonts/micropython)
30+
include(picographics/micropython)
31+
32+
# Pico Graphics Extra
33+
#include(pngdec/micropython)
34+
#include(jpegdec/micropython)
35+
#include(picovector/micropython)
36+
#include(qrcode/micropython/micropython)
37+
38+
# Sensors & Breakouts
39+
#include(micropython-common-breakouts)
40+
41+
# Packs & Bases
42+
#include(pico_unicorn/micropython)
43+
#include(pico_scroll/micropython)
44+
#include(pico_rgb_keypad/micropython)
45+
#include(pico_explorer/micropython)
46+
47+
# LEDs & Matrices
48+
#include(plasma/micropython)
49+
#include(hub75/micropython)
50+
51+
# Servos & Motors
52+
#include(pwm/micropython)
53+
#include(servo/micropython)
54+
#include(encoder/micropython)
55+
#include(motor/micropython)
56+
57+
# Utility
58+
#include(adcfft/micropython)
59+
60+
# RTC (Badger 2040W, Enviro)
61+
#if(PICO_BOARD STREQUAL "pico_w")
62+
# include(pcf85063a/micropython)
63+
#endif()
64+
65+
include(modules_py/modules_py)
66+
67+
# Most board specific ports wont need all of these
68+
#copy_module(gfx_pack.py)
69+
copy_module(pimoroni.py)
70+
copy_module(boot.py)
71+
# copy_module(interstate75.py)
72+
# if(PICO_BOARD STREQUAL "pico_w")
73+
# copy_module(automation.py)
74+
# copy_module(inventor.py)
75+
# endif()
76+
77+
# Must call `enable_ulab()` to enable
78+
include(micropython-common-ulab)

build/manifest_RPI_PICO2_W.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Include the board's default manifest.
2+
include("$(MPY_DIR)/ports/rp2/boards/RPI_PICO2_W/manifest.py")
3+
# Add packages
4+
package("abstractions", base_path="../bridge/lib")
5+
package("configuration", base_path="../bridge/lib")
6+
package("logging", base_path="../bridge/lib")
7+
package("models", base_path="../bridge/lib")
8+
package("primitives", base_path="../bridge/lib")
9+
package("providers", base_path="../bridge/lib")
10+
package("threadsafe", base_path="../bridge/lib")
11+
# add modules
12+
module("async_urequests.py", base_path="../bridge/lib")
13+
module("bridge_main.py", base_path="../bridge/lib")
14+
module("indicator.py", base_path="../bridge/lib")
15+
module("time.py", base_path="../bridge/lib")
16+
module("wifi_client.py", base_path="../bridge/lib")
17+
module("main.py", base_path="../bridge")
File renamed without changes.

manifest_RPI_PICO2_W.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)