Skip to content

Commit f9079e3

Browse files
authored
Merge pull request #2300 from arduino/karlsoderby/ble-sense
[PXCT-231] BLE Sense + small fixes to other articles
2 parents fa82087 + 5f4e3b7 commit f9079e3

File tree

12 files changed

+395
-26
lines changed

12 files changed

+395
-26
lines changed
379 KB
Loading
1.9 MB
Loading

content/micropython/03.micropython/04.board-examples/giga-r1-wifi/giga-r1-wifi.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: GIGA R1 WiFi
33
description: Learn how to use specific features on the GIGA R1 WiFi using MicroPython
44
---
5-
![GIGA R1 WiFi](./assets/giga-r1-wifi.png)
5+
![GIGA R1 WiFi](./assets/giga-r1.png)
66

77
In this guide, you will find information specific to the [GIGA R1 WiFi board](https://store.arduino.cc/products/giga-r1-wifi), such as supported serial protocols, built-in peripherals, and how to access the wireless features.
88

@@ -13,7 +13,7 @@ For installation instructions, please visit the link below:
1313

1414
The pinout for the GIGA R1 WiFi can be found in the image below.
1515

16-
![GIGA R1 WiFi Pinout](./assets/giga-r1-wifi-pinout.png)
16+
![GIGA R1 WiFi Pinout](./assets/ABX00063-pinout.png)
1717

1818
***For more details on this product, visit the [hardware product page](/hardware/giga-r1-wifi/).***
1919

@@ -36,7 +36,7 @@ The GIGA R1 WiFi features a Murata 1DX module that provides both **Wi-Fi®** and
3636

3737

3838

39-
### Dual-Core Programming
39+
## Dual-Core Programming
4040

4141
The GIGA R1 WiFi supports dual-core programming, where the Cortex-M7 and Cortex-M4 cores can execute separate tasks simultaneously. Below is an example of how to run MicroPython on one core while offloading specific tasks to the other:
4242

@@ -64,7 +64,7 @@ main_task()
6464
6565

6666

67-
### RGB LED
67+
## RGB LED
6868

6969
The GIGA R1 WiFi has a built-in RGB LED that can be easily controlled to turn on each color individually. The following example shows how to cycle through red, green, and blue, waiting a second between each, and then turning off all colors before looping back.
7070

@@ -101,7 +101,7 @@ while True:
101101
```
102102

103103

104-
### PWM on the GIGA R1 WiFi
104+
## PWM on the GIGA R1 WiFi
105105

106106
On STM32 boards like the Arduino GIGA R1 WiFi, PWM is handled differently than on typical MicroPython boards. Instead of directly using the `PWM` class, you need to use the `Timer` class in combination with the `Pin` class from the `pyb` module.
107107

@@ -136,7 +136,7 @@ ch.pulse_width_percent(25) # 25% duty cycle
136136
`ch.pulse_width_percent(25)` sets the duty cycle of the PWM signal to 25%. You can adjust this value between `0` and `100` to control the signal's ON time.
137137

138138

139-
### Using the RPC Library with MicroPython
139+
## RPC
140140

141141
The **msgpackrpc** library provides the same functionality as the Arduino RPC library for MicroPython, allowing seamless communication between the two cores (M7 and M4) on the GIGA R1 WiFi. This library enables binding of local functions or objects, starting the M4 core, and invoking remote calls from Python scripts.
142142

@@ -153,7 +153,6 @@ While powerful, the **msgpackrpc** library has some limitations:
153153
3. **Flash-based firmware** must use a 1.5MB M7 + 0.5MB M4 flash partitioning scheme.
154154

155155

156-
157156
#### Example
158157

159158
Here’s how to bind a function on the M7 core and call it from the M4 core:
@@ -191,9 +190,6 @@ print(result) # Outputs: Hello from M7!
191190
For a detailed explanation of the RPC library, including advanced use cases and configuration, visit the [RPC Library with MicroPython guide](https://docs.arduino.cc/tutorials/giga-r1-wifi/giga-dual-core/#using-the-rpc-library-with-micropython).
192191

193192

194-
195-
!Needs testing for CANBUS!
196-
197193
## Additional Features
198194

199195
The GIGA R1 WiFi includes other features that can be explored:
257 KB
Loading
1.06 MB
Loading

0 commit comments

Comments
 (0)