Giter Site home page Giter Site logo

blue-pill-blink's Introduction

Blink for Blue Pill using Platformio & ST-Link

Why is this here

I created this repository to help quickly bootstrap a project using the Blue Pill with Platformio & ST-Link. It's meant to be used by those not familiar with the Blue Pill, ST-Link, Platformio or the platformio.ini settings and those migrating from the Arduino IDE to Platformio. Many times I get stuck on things like:

  • “what are the minimum platform settings I need to get a successful compile?”
  • “what’s the base code I can use to prove a valid compile and program execution?”
  • “do I use the pin number or other ID for accessing GPIO?”

This project is meant to provide confirmation of these basic things. That being said, to get better at working with new hardware, I would suggest you try and create a minimal “blinky” program yourself and refer to this only if you get stuck. Platformio has progressed to a level that most folks can get a new program running in a matter of minutes.

Prerequisites

How to use this repository

Just Clone this repository, open in VSCode with the Platformio IDE previously installed, connect your ST-Link to your Blue Pill, plug in your ST-Link to your PC via USB and upload. If you get errors, make sure you have the STM32 Platform installed in Platformio (STM32 4.6.0 used to compile and test on 2019-02-17)...see links above. You can DM me if you get stuck @PiercePrimm.

References

  • Blue Pill Board for Platformio
  • Blue Pill Board for STM32Duino - This page has most of the information you need to work with the Blue Pill. Note that, many times, the USB will not work because or the incorrect D+ resistor. I have not changed any of my boards because I just use the ST-Link and therefore I don't have to update the bootloader to work with Arduino.

blue-pill-blink's People

Contributors

pprimm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.