Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ayapejian/micro-examples

Examples and snippets for microcontrollers
https://github.com/ayapejian/micro-examples

arduino esp32 esp8266 microcontroller platformio

Last synced: 26 days ago
JSON representation

Examples and snippets for microcontrollers

Awesome Lists containing this project

README

        

# Micro Examples

This repository is serving as a cheatsheet of sorts, taking from many sources and transposing into a collection of runnable examples using [platform.io](https://platformio.org) and mostly targetting esp8266 dev boards, although with platformio should be easily adaptable.

# Compiling / Running
1. Copy `_config/secrets.template.h` as `_config/secrets.h` and fill in with your credentials as needed.
* _NOTE: `secrets.h` is gitignored so this shouldn't be a problem if you fork the repo, just noting here as an FYI_
2. Each sub directory is a standalone platformio project, refer to the platformio docs for details (I'll add info around this here when I get a chance)

# Hardware
As mentioned most of the examples target the esp8266 type development boards. More specifically I tend to use the Witty Cloud boards like the [one found here](http://bit.ly/witty-esp8266) or the Wemos D1 mini as they are cheap and convenient for prototyping.

# PlatformIO CLI Commands
* `pio run` will build the project (run from within a sub directory)
* `pio run -t upload` to upload to board
* `pio run -t clean` to clean/prep for fresh build
* `pio device monitor` to open serial monitor

# References
* [PlatformIO Docs](http://docs.platformio.org/en/latest/)