Does U8G2 set SPI clock pin (SCK)? #2236
Closed
Fishbone69
started this conversation in
General
Replies: 3 comments
-
U8g2 will just use the Arduino SPI subsystem without modification. So whatever is defines as SPI clock pin for your Arduino implementation on your board will be used by u8g2. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I figured but just wanted to be sure.Thanks!
-------- Original message --------From: olikraus ***@***.***> Date: 8/4/23 1:42 PM (GMT-06:00) To: olikraus/u8g2 ***@***.***> Cc: Fishbone69 ***@***.***>, Author ***@***.***> Subject: Re: [olikraus/u8g2] Does U8G2 set SPI clock pin (SCK)? (Discussion #2236)
U8g2 will just use the Arduino SPI subsystem without modification. So whatever is defines as SPI clock pin for your Arduino implementation on your board will be used by u8g2.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Per the pins_arduino.h - U8g2 is using the correct GPIO. CLOSED |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi:
The default SPI clock pin for esp32-C3 is GPIO6 according to the datasheet. However, when I checked this running an app with u8g2 it showed SPI clock was on GPIO2 (I havent run it without u8g2 - I plan to do that in a bit). I was wondering if the constructor where some of the pins are set also determines the clk pin?
I'm asking because I am learning about hardware vs software SPI and looking at the IO_MUX and GPIO matrix on esp32 and tring to understand the differences.
Beta Was this translation helpful? Give feedback.
All reactions