Comments (1)
When Using RP2040, it must using the hardware UART instead of software entity.
Doing so, you'll need to modify the pins_arduino.h, which you can edit locally.
according to the datasheet of pico, I modified as follow:
#pragma once
// Serial
#define PIN_SERIAL1_TX (16u)
#define PIN_SERIAL1_RX (17u)
//#define PIN_SERIAL2_TX (8u)
//#define PIN_SERIAL2_RX (9u)
#define PIN_SERIAL2_TX (20u)
#define PIN_SERIAL2_RX (21u)
// SPI
#define PIN_SPI0_MISO (0u)
#define PIN_SPI0_MOSI (3u)
#define PIN_SPI0_SCK (2u)
#define PIN_SPI0_SS (1u)
#define PIN_SPI1_MISO (12u)
#define PIN_SPI1_MOSI (11u)
#define PIN_SPI1_SCK (10u)
#define PIN_SPI1_SS (13u)
// Wire
#define PIN_WIRE0_SDA (20u)
#define PIN_WIRE0_SCL (21u)
#define PIN_WIRE1_SDA (26u)
#define PIN_WIRE1_SCL (27u)
#define SERIAL_HOWMANY (3u)
#define SPI_HOWMANY (2u)
#define WIRE_HOWMANY (2u)
#include "../generic/common.h"
Be attention of the WIRE0, as it connot be comment and I didn't change it. so if you want to use I2C, use WIRE1 instead.
wire.begin() // do not use it
wire1.begin() // yes
So, For Indicator, RP2040 connect to PC via USB2.0, Serial1 to inner ESP32 and Serial2 via grove(20,21).
Serial2 will support the high speed baud, as now it's harware configured.
from sensecap_indicator_esp32.
Related Issues (20)
- IDF Patch failed HOT 1
- Troubleshooting GPIO Compilation Errors with ESP-IDF 5.1 and Resolving Dependencies HOT 1
- IDF-SDK 5.1 cant compile HOT 3
- Patch release5.0_psram_octal_120m.patch fail HOT 5
- After flashin (ESP-IDF v5.1) the screen keeps flickering very fast (app is installed), can onyone help? HOT 1
- Build Error HOT 8
- Re-programming SenseCAP: not showing up as /dev/cu.usbserial-xxxx anymore HOT 4
- Timezone Issue HOT 3
- Still get static_assert about "FLASH and PSRAM Modeβ even with patch applied HOT 3
- esp-library problem HOT 3
- Patch failed with last version of IDF HOT 3
- Compile error: unknown type name 'time_t' HOT 4
- Photo Example
- MicroPython support HOT 1
- Customizable MQTT Topics for Multiple Device Support
- Connecting to the AWS IoT core MQTT broker HOT 6
- indicator_ha showing one hour less HOT 7
- Memory leaks cause system to crash and/or openAI requests to fail in indicator_openai example HOT 1
- Problem with flashing any example using wifi & screen HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sensecap_indicator_esp32.