Skip to content

Commit c505e84

Browse files
committed
Merge branch 'release/v0.3.1'
2 parents 0729b7f + a3cb761 commit c505e84

File tree

25 files changed

+155
-108
lines changed

25 files changed

+155
-108
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
13+
python-version: ['3.8', '3.9', '3.10', '3.11']
1414

1515
steps:
1616
- uses: actions/checkout@v2

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install Python
2020
uses: actions/setup-python@v2
2121
with:
22-
python-version: '3.7'
22+
python-version: '3.8'
2323
architecture: 'x64'
2424

2525
- name: install-dependencies

.github/workflows/unit_test_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
13+
python-version: ['3.8', '3.9', '3.10', '3.11']
1414

1515
steps:
1616
- uses: actions/checkout@v2

.github/workflows/unit_test_ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
13+
python-version: ['3.8', '3.9', '3.10', '3.11']
1414

1515
steps:
1616
- uses: actions/checkout@v2

.github/workflows/unit_test_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
13+
python-version: ['3.8', '3.9', '3.10', '3.11']
1414

1515
steps:
1616
- uses: actions/checkout@v2

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ include README.md
77
include about.py
88

99
include requirements.txt
10+
include requirements-dev.txt
1011

1112
recursive-include modi_plus/assets *
1213
recursive-include modi_plus/task/ble_task *

examples/basic_usage_examples/display_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
pos = (20, 30)
1818

1919
for i in range(500):
20-
display.write_variable(0, pos[0], pos[1])
20+
display.write_variable_xy(pos[0], pos[1], 0)
2121
pos = (pos[0] + vel[0], pos[1] + vel[1])
2222
if pos[0] < 0 or pos[0] > 40:
2323
vel = (-vel[0], vel[1])

examples/basic_usage_examples/env_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313
while True:
1414
print(f"humidity(%): {env.humidity:<10} temperature(°C): {env.temperature:<10} "
15-
f"intensity(%): {env.intensity:<10} Volume(%): {env.volume:<10}", end="\r")
15+
f"illuminance(%): {env.illuminance:<10} Volume(%): {env.volume:<10}", end="\r")
1616
time.sleep(0.02)

examples/basic_usage_examples/imu_example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
imu = bundle.imus[0]
1212

1313
while True:
14-
print(f"Pitch: {imu.pitch:<10}"
15-
f"Roll: {imu.roll:<10}"
16-
f"Yaw: {imu.yaw:<10}"
14+
print(f"Angle_y: {imu.angle_y:<10}"
15+
f"Angle_x: {imu.angle_x:<10}"
16+
f"Angle_z: {imu.angle_z:<10}"
1717
f"Vel x: {imu.angular_vel_x:<10}"
1818
f"Vel y: {imu.angular_vel_y:<10}"
1919
f"Vel z: {imu.angular_vel_z:<10}"

examples/creation_examples/brush.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def setup(self):
1515

1616
def update(self):
1717
h, w = self.height // 2, self.width // 2
18-
self.cursor.y = h - h * sin(radians(-self.imu.roll))
19-
self.cursor.x = w - w * sin(radians(-self.imu.pitch))
18+
self.cursor.y = h - h * sin(radians(-self.imu.angle_x))
19+
self.cursor.x = w - w * sin(radians(-self.imu.angle_y))
2020
if self.button.pressed:
2121
self.add_object(Brush((self.cursor.x, self.cursor.y), "x"))
2222

0 commit comments

Comments
 (0)