Skip to content

Commit

Permalink
Use platformio
Browse files Browse the repository at this point in the history
  • Loading branch information
jalr authored and Jakob Lechner committed Nov 20, 2019
1 parent 938d113 commit 4443860
Show file tree
Hide file tree
Showing 63 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.*.swp
*.o
.pio
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# WordClock
## Software
you have two options to build this software:
1. Using Arduino IDE
2. Using platformio

## Hardware
Take a look inside the [hardware](hardware/) directory.

## Arduino IDE

### Adding ESP8266 Board
If you want to use ESP8266 hardware you first need to do add it to Arduino.
* Install the current upstream Arduino IDE at the 1.8.7 level or later. The current version is on the [Arduino website](https://www.arduino.cc/en/main/software).
* Start Arduino and open the Preferences window.
* Enter ```https://arduino.esp8266.com/stable/package_esp8266com_index.json``` into the *Additional Board Manager URLs* field. You can add multiple URLs, separating them with commas.
* Open Boards Manager from Tools > Board menu and install *esp8266* platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).

### Installing the required libraries
Please refer to the [platformio configuration](platformio.ini) for a list of required libraries.

## platformio
* [Install platformio](https://docs.platformio.org/en/latest/installation.html)
* To build this project for your target, such as D1 Mini run:

```
pio run -e d1_mini
```

* To upload the firmware to your Word Clock, run:

```
pio run -e d1_mini -t upload
```
File renamed without changes
20 changes: 20 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[platformio]
src_dir = wordClock

[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = arduino
upload_speed = 115200

[env:uno]
platform = atmelavr
board = uno
framework = arduino

lib_deps =
Adafruit [email protected]
[email protected]
[email protected]
[email protected]

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4443860

Please sign in to comment.