Skip to content

STM32G030 with u8g2 library problem #2116

Closed Answered by fpistm
sunnyguhz asked this question in Libraries
Discussion options

You must be logged in to vote

By default generic G030C8 uses these pins for SPI instance:

#ifndef PIN_SPI_MOSI
#define PIN_SPI_MOSI PA2
#endif
#ifndef PIN_SPI_MISO
#define PIN_SPI_MISO PA6
#endif
#ifndef PIN_SPI_SCK
#define PIN_SPI_SCK PA1
#endif

Do you use them?
Else you can change them using setxxx api:
https://github.com/stm32duino/Arduino_Core_STM32/wiki/API#change-default-spi-instance-pins

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@sunnyguhz
Comment options

@sunnyguhz
Comment options

@fpistm
Comment options

@sunnyguhz
Comment options

@fpistm
Comment options

Answer selected by sunnyguhz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2115 on August 30, 2023 04:43.