Initial Commit by po

This commit is contained in:
Torrie Fischer 2018-12-26 20:35:58 -08:00
commit dcf8ebd034
6 changed files with 109 additions and 0 deletions

54
.atom-build.yml Normal file
View File

@ -0,0 +1,54 @@
---
cmd: po
args:
- photon
- build
sh: false
targets:
Build:
atomCommandName: po:Build Particle Firmware Locally
sh: false
args:
- photon
- build
cmd: po
keymap: ctrl-alt-1
name: Build
Flash:
atomCommandName: po:Flash Particle Firmware Locally
sh: false
args:
- photon
- flash
cmd: po
keymap: ctrl-alt-2
name: Flash
Clean:
atomCommandName: po:Clean Particle Firmware Locally
sh: false
args:
- photon
- clean
cmd: po
keymap: ctrl-alt-3
name: Clean
DFU:
atomCommandName: po:Upload Particle Firmware Locally with DFU
sh: false
args:
- photon
- dfu
cmd: po
keymap: ctrl-alt-4
name: DFU
OTA:
atomCommandName: po:Upload Particle Firmware Locally with OTA
sh: false
args:
- photon
- ota
- --multi
cmd: po
keymap: ctrl-alt-5
name: OTA

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
bin/*
*.bin

10
.travis.yml Normal file
View File

@ -0,0 +1,10 @@
dist: trusty
sudo: required
language: generic
script:
- ci/travis.sh
cache:
directories:
- $HOME/.po-util

27
README.md Normal file
View File

@ -0,0 +1,27 @@
[![Built with po-util](https://rawgit.com/nrobinson2000/po-util/master/images/built-with-po-util.svg)](https://po-util.com)
# This repository is a [po-util](https://po-util.com) project
Po makes it easy to locally develop firmware for Particle devices, and supports the Particle Photon, P1, Electron, Core, Raspberry Pi, and Redbear Duo.
Your projects C++ files go in the `firmware/` directory, and the binary will appear in the `bin/` directory.
To compile code, run `po DEVICE_TYPE build`, substituting `DEVICE_TYPE` with `photon`, `P1`, `electron`, `core`, `pi`, or `duo`.
To compile and flash code, run `po DEVICE_TYPE flash`. Code is compiled and then flashed to your device over USB.
To clean the project, run `po DEVICE_TYPE clean`.
To flash a project over USB without rebuilding, run `po DEVICE_TYPE dfu`.
To upload a compiled project over the air run `po DEVICE ota DEVICE_NAME`, where `DEVICE_NAME` is the name of your device in the Particle cloud. **Note: You must be logged into particle-cli to use this feature. You can log into particle-cli with:**
```
particle login
```
For more help, run `man po`, or visit <https://docs.po-util.com/>
*By the way, po has tab completion. Try pressing [TAB] at any time to have arguments completed.*
Feel free to edit this README.md to make it more suitable for your project. **(I do ask that you please include the badge at the top though.)**

5
ci/travis.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
bash <(curl -sL https://raw.githubusercontent.com/nrobinson2000/po/master/ci/ci-install)
po lib clean . -f &> /dev/null
yes "no" | po lib setup # change to "yes" to prefer libraries from GitHub
po photon build

11
firmware/main.cpp Normal file
View File

@ -0,0 +1,11 @@
#include "Particle.h"
void setup() // Put setup code here to run once
{
}
void loop() // Put code here to loop forever
{
}