First pass at a BluePill Variant

The official STMicroelectronics Arduino core
User avatar
RogerClark
Posts: 5470
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: First pass at a BluePill Variant

Postby RogerClark » Mon Sep 19, 2016 8:28 am

How did you install the core ?

evge.05
Posts: 11
Joined: Sat Aug 20, 2016 1:46 pm
Location: Russia

Re: First pass at a BluePill Variant

Postby evge.05 » Mon Sep 19, 2016 9:45 am

like your core. Just copy files into /arduino/hardware/

User avatar
RogerClark
Posts: 5470
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: First pass at a BluePill Variant

Postby RogerClark » Mon Sep 19, 2016 10:01 am

OK

Can you confirm which URL you downloaded it from ?

evge.05
Posts: 11
Joined: Sat Aug 20, 2016 1:46 pm
Location: Russia

Re: First pass at a BluePill Variant

Postby evge.05 » Mon Sep 19, 2016 10:24 am


User avatar
RogerClark
Posts: 5470
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: First pass at a BluePill Variant

Postby RogerClark » Mon Sep 19, 2016 11:21 am

Um

Thats strange

I don't get that error

What version of the IDE are you running ?

evge.05
Posts: 11
Joined: Sat Aug 20, 2016 1:46 pm
Location: Russia

Re: First pass at a BluePill Variant

Postby evge.05 » Mon Sep 19, 2016 11:51 am

latest version 1.6.11

User avatar
Rick Kimball
Posts: 754
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: First pass at a BluePill Variant

Postby Rick Kimball » Mon Sep 19, 2016 12:05 pm

https://github.com/RickKimball/Arduino_ ... /variant.h
PC13 is in that file.

Did you select the blue pill board or the nucleo?
-rick

evge.05
Posts: 11
Joined: Sat Aug 20, 2016 1:46 pm
Location: Russia

Re: First pass at a BluePill Variant

Postby evge.05 » Mon Sep 19, 2016 12:08 pm

select a nucleo board

User avatar
Rick Kimball
Posts: 754
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: First pass at a BluePill Variant

Postby Rick Kimball » Mon Sep 19, 2016 12:09 pm

then you need to use whatever pin is for the led on that board in place of the PC13.
-rick

User avatar
Rick Kimball
Posts: 754
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: First pass at a BluePill Variant

Postby Rick Kimball » Mon Sep 19, 2016 12:16 pm

I guess i should have used the define LED_BUILTIN however the way I wrote the code it was specific to the blue pill as it turns the led on by setting it low for 100ms then turns it off for 900 ms by setting the pin high. If you try that on a nucleo board it will be mostly on 90% of the time.
-rick


Return to “STM Core”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest