-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with PA12 #14
Comments
No idea. Isn't PA12 used for USB (D+)?
Are you using the STM32L0 core here
<https://github.com/GrumpyOldPizza/ArduinoCore-stm32l0>?
…On Thu, Feb 14, 2019 at 4:18 PM Pak ***@***.***> wrote:
Hi there. I am having an issue using a B-L072Z-LRWAN1 board and wanted to
use PA12 as an output pin. I have checked variant cpp and added (in the
digital block - position 3) the line:
{ GPIOA, STM32L0_GPIO_PIN_MASK(STM32L0_GPIO_PIN_PA12),
STM32L0_GPIO_PIN_PA12, (PIN_ATTR_EXTI), PWM_INSTANCE_NONE,
PWM_CHANNEL_NONE, ADC_CHANNEL_NONE },
I have alse changed:
void initVariant()
{
//CMWX1ZZABZ_Initialize(STM32L0_GPIO_PIN_PA12, STM32L0_GPIO_PIN_PA11);
CMWX1ZZABZ_Initialize(STM32L0_GPIO_PIN_NONE, STM32L0_GPIO_PIN_PA11);
}
Then in variant.h I have added:
#define PIN_D3 (03ul)
but with no luck.
On the other hand, I have done the same for PA5 (as Analog1 - A1) and it
worked fine for that pin.
Is there anything I am missing?
Thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGY1qojmV-8rPzauGIJL8Y-TglkDy-0hks5vNfztgaJpZM4a8shV>
.
|
Yes, I am using that code. I don't know if USB is automatically enabled....but I think it shouldn't. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there. I am having an issue using a B-L072Z-LRWAN1 board and wanted to use PA12 as an output pin. I have checked variant cpp and added (in the digital block - position 3) the line:
{ GPIOA, STM32L0_GPIO_PIN_MASK(STM32L0_GPIO_PIN_PA12), STM32L0_GPIO_PIN_PA12, (PIN_ATTR_EXTI), PWM_INSTANCE_NONE, PWM_CHANNEL_NONE, ADC_CHANNEL_NONE },
I have alse changed:
Then in variant.h I have added:
#define PIN_D3 (03ul)
but with no luck.
On the other hand, I have done the same for PA5 (as Analog1 - A1) and it worked fine for that pin.
Is there anything I am missing?
Thank you
The text was updated successfully, but these errors were encountered: